Skip to content

Commit

Permalink
fix python wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
varunagrawal committed Sep 15, 2024
1 parent ccea104 commit 6b9fb5b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions gtsam/hybrid/hybrid.i
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ class HybridGaussianFactor : gtsam::HybridFactor {
HybridGaussianFactor(
const gtsam::KeyVector& continuousKeys,
const gtsam::DiscreteKeys& discreteKeys,
const std::vector<gtsam::GaussianFactor::shared_ptr>& factorsList);
const std::vector<std::pair<gtsam::GaussianFactor::shared_ptr, double>>&
factorsList);

void print(string s = "HybridGaussianFactor\n",
const gtsam::KeyFormatter& keyFormatter =
Expand Down Expand Up @@ -242,14 +243,14 @@ class HybridNonlinearFactorGraph {
class HybridNonlinearFactor : gtsam::HybridFactor {
HybridNonlinearFactor(
const gtsam::KeyVector& keys, const gtsam::DiscreteKeys& discreteKeys,
const gtsam::DecisionTree<gtsam::Key, gtsam::NonlinearFactor*>& factors,
const gtsam::DecisionTree<
gtsam::Key, std::pair<gtsam::NonlinearFactor*, double>>& factors,
bool normalized = false);

template <FACTOR = {gtsam::NonlinearFactor}>
HybridNonlinearFactor(const gtsam::KeyVector& keys,
const gtsam::DiscreteKeys& discreteKeys,
const std::vector<FACTOR*>& factors,
bool normalized = false);
HybridNonlinearFactor(
const gtsam::KeyVector& keys, const gtsam::DiscreteKeys& discreteKeys,
const std::vector<std::pair<gtsam::NonlinearFactor*, double>>& factors,
bool normalized = false);

double error(const gtsam::Values& continuousValues,
const gtsam::DiscreteValues& discreteValues) const;
Expand Down

0 comments on commit 6b9fb5b

Please sign in to comment.