gtsam 4.2
gtsam
Loading...
Searching...
No Matches
gtsam::InvDepthCamera3< CALIBRATION > Class Template Reference

Detailed Description

template<class CALIBRATION>
class gtsam::InvDepthCamera3< CALIBRATION >

A pinhole camera class that has a Pose3 and a Calibration.

Advanced Interface

class boost::serialization::access
 Serialization function.

Standard Constructors

 InvDepthCamera3 ()
 default constructor
 InvDepthCamera3 (const Pose3 &pose, const boost::shared_ptr< CALIBRATION > &k)
 constructor with pose and calibration

Standard Interface

Pose3pose ()
 return pose
const boost::shared_ptr< CALIBRATION > & calibration () const
 return calibration
void print (const std::string &s="") const
 print
gtsam::Point2 project (const Vector5 &pw, double rho, boost::optional< gtsam::Matrix & > H1=boost::none, boost::optional< gtsam::Matrix & > H2=boost::none, boost::optional< gtsam::Matrix & > H3=boost::none) const
 project a point from world InvDepth parameterization to the image
std::pair< Vector5, double > backproject (const gtsam::Point2 &pi, const double depth) const
 backproject a 2-dimensional point to an Inverse Depth landmark useful for point initialization
static gtsam::Point3 invDepthTo3D (const Vector5 &pw, double rho)
 Convert an inverse depth landmark to cartesian Point3.

Member Function Documentation

◆ invDepthTo3D()

template<class CALIBRATION>
gtsam::Point3 gtsam::InvDepthCamera3< CALIBRATION >::invDepthTo3D ( const Vector5 & pw,
double rho )
inlinestatic

Convert an inverse depth landmark to cartesian Point3.

Parameters
pwfirst five parameters (x,y,z,theta,phi) of inv depth landmark
invinverse depth
Returns
Point3

◆ project()

template<class CALIBRATION>
gtsam::Point2 gtsam::InvDepthCamera3< CALIBRATION >::project ( const Vector5 & pw,
double rho,
boost::optional< gtsam::Matrix & > H1 = boost::none,
boost::optional< gtsam::Matrix & > H2 = boost::none,
boost::optional< gtsam::Matrix & > H3 = boost::none ) const
inline

project a point from world InvDepth parameterization to the image

Parameters
pwis a point in the world coordinate
H1is the jacobian w.r.t. [pose3 calibration]
H2is the jacobian w.r.t. inv_depth_landmark

The documentation for this class was generated from the following file: