NonlinearFactorGraph::linearize returns GaussianFactorGraph instead of FactorGraph<GaussianFactor>
parent
c120ee93f6
commit
e1c984f2b4
|
|
@ -125,11 +125,11 @@ namespace gtsam {
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
template<class VALUES>
|
template<class VALUES>
|
||||||
typename FactorGraph<GaussianFactor>::shared_ptr NonlinearFactorGraph<VALUES>::linearize(
|
typename GaussianFactorGraph::shared_ptr NonlinearFactorGraph<VALUES>::linearize(
|
||||||
const VALUES& config, const Ordering& ordering) const {
|
const VALUES& config, const Ordering& ordering) const {
|
||||||
|
|
||||||
// create an empty linear FG
|
// create an empty linear FG
|
||||||
typename FactorGraph<GaussianFactor>::shared_ptr linearFG(new FactorGraph<GaussianFactor>);
|
typename GaussianFactorGraph::shared_ptr linearFG(new GaussianFactorGraph);
|
||||||
linearFG->reserve(this->size());
|
linearFG->reserve(this->size());
|
||||||
|
|
||||||
// linearize all factors
|
// linearize all factors
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ namespace gtsam {
|
||||||
/**
|
/**
|
||||||
* linearize a nonlinear factor graph
|
* linearize a nonlinear factor graph
|
||||||
*/
|
*/
|
||||||
boost::shared_ptr<FactorGraph<GaussianFactor> >
|
boost::shared_ptr<GaussianFactorGraph >
|
||||||
linearize(const VALUES& config, const Ordering& ordering) const;
|
linearize(const VALUES& config, const Ordering& ordering) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue