dcsam
Factored inference for discrete-continuous smoothing and mapping
SmartSemanticBearingRangeFactor.h
Go to the documentation of this file.
1 
9 #pragma once
10 
11 #include <vector>
12 
14 
15 namespace dcsam {
16 
24  public:
26 
28 
29  SmartSemanticBearingRangeFactor(const gtsam::DiscreteKey& dk,
30  const std::vector<double> probs)
31  : Base(dk, probs) {}
32 
33  void updateProbs(const std::vector<double>& probs) {
34  assert(probs.size() == probs_.size());
35  probs_ = probs;
36  }
37 };
38 
39 } // namespace dcsam
Bearing-range factor that incorporates semantic classes.
gtsam::Factor Base
Definition: DCFactor.h:39
Factor that represents bearing and range measurements that incorporate a semantic class measurement.
Definition: SemanticBearingRangeFactor.h:39
Implementation of a "smart" updateable semantic bearing-range factor.
Definition: SmartSemanticBearingRangeFactor.h:23
void updateProbs(const std::vector< double > &probs)
Definition: SmartSemanticBearingRangeFactor.h:33
SmartSemanticBearingRangeFactor(const gtsam::DiscreteKey &dk, const std::vector< double > probs)
Definition: SmartSemanticBearingRangeFactor.h:29
Definition: DCContinuousFactor.h:24