Headers and timing
parent
724bcdb6a0
commit
83487370ab
|
|
@ -17,15 +17,17 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <utility>
|
#include <gtsam/symbolic/SymbolicFactor.h>
|
||||||
|
#include <gtsam/symbolic/SymbolicConditional.h>
|
||||||
|
#include <gtsam/inference/Factor.h>
|
||||||
|
#include <gtsam/inference/Key.h>
|
||||||
|
#include <gtsam/base/timing.h>
|
||||||
|
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/shared_ptr.hpp>
|
||||||
#include <boost/foreach.hpp>
|
#include <boost/foreach.hpp>
|
||||||
#include <boost/make_shared.hpp>
|
#include <boost/make_shared.hpp>
|
||||||
|
|
||||||
#include <gtsam/inference/Factor.h>
|
#include <utility>
|
||||||
#include <gtsam/inference/Key.h>
|
|
||||||
#include <gtsam/symbolic/SymbolicFactor.h>
|
|
||||||
#include <gtsam/symbolic/SymbolicConditional.h>
|
|
||||||
|
|
||||||
namespace gtsam
|
namespace gtsam
|
||||||
{
|
{
|
||||||
|
|
@ -37,6 +39,8 @@ namespace gtsam
|
||||||
std::pair<boost::shared_ptr<SymbolicConditional>, boost::shared_ptr<SymbolicFactor> >
|
std::pair<boost::shared_ptr<SymbolicConditional>, boost::shared_ptr<SymbolicFactor> >
|
||||||
EliminateSymbolic(const FactorGraph<FACTOR>& factors, const Ordering& keys)
|
EliminateSymbolic(const FactorGraph<FACTOR>& factors, const Ordering& keys)
|
||||||
{
|
{
|
||||||
|
gttic(EliminateSymbolic);
|
||||||
|
|
||||||
// Gather all keys
|
// Gather all keys
|
||||||
KeySet allKeys;
|
KeySet allKeys;
|
||||||
BOOST_FOREACH(const boost::shared_ptr<FACTOR>& factor, factors) {
|
BOOST_FOREACH(const boost::shared_ptr<FACTOR>& factor, factors) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue