Fixed typedefs in BearingRangeFactor

release/4.3a0
Richard Roberts 2013-07-30 14:32:09 +00:00
parent 69a9d75dd6
commit 5b51538204
1 changed files with 7 additions and 5 deletions

View File

@ -29,16 +29,18 @@ namespace gtsam {
* @addtogroup SLAM
*/
template<class POSE, class POINT, class ROTATION = typename POSE::Rotation>
class BearingRangeFactor: public NoiseModelFactor2<POSE, POINT> {
private:
class BearingRangeFactor: public NoiseModelFactor2<POSE, POINT>
{
public:
typedef BearingRangeFactor<POSE, POINT> This;
typedef NoiseModelFactor2<POSE, POINT> Base;
typedef boost::shared_ptr<This> shared_ptr;
private:
typedef POSE Pose;
typedef ROTATION Rot;
typedef POINT Point;
typedef BearingRangeFactor<POSE, POINT> This;
typedef NoiseModelFactor2<POSE, POINT> Base;
// the measurement
Rot measuredBearing_;
double measuredRange_;