gtsam  4.0.0
gtsam
gtsam::OrientedPlane3 Class Reference

Detailed Description

Represents an infinite plane in 3D, which is composed of a planar normal and its perpendicular distance to the origin.

Currently it provides a transform of the plane, and a norm 1 differencing of two planes. Refer to Trevor12iros for more math details.

Public Member Functions

OrientedPlane3 transform (const Pose3 &xr, OptionalJacobian< 3, 3 > Hp=boost::none, OptionalJacobian< 3, 6 > Hr=boost::none) const
 Transforms a plane to the specified pose. More...
 
Vector3 error (const OrientedPlane3 &plane) const
 Computes the error between two planes. More...
 
Vector3 errorVector (const OrientedPlane3 &other, OptionalJacobian< 3, 3 > H1=boost::none, OptionalJacobian< 3, 3 > H2=boost::none) const
 Computes the error between the two planes, with derivatives. More...
 
size_t dim () const
 Dimensionality of tangent space = 3 DOF.
 
OrientedPlane3 retract (const Vector3 &v, OptionalJacobian< 3, 3 > H=boost::none) const
 The retract function.
 
Vector3 localCoordinates (const OrientedPlane3 &s) const
 The local coordinates function.
 
Vector4 planeCoefficients () const
 Returns the plane coefficients.
 
Unit3 normal () const
 Return the normal.
 
double distance () const
 Return the perpendicular distance to the origin.
 
Constructors
 OrientedPlane3 ()
 Default constructor.
 
 OrientedPlane3 (const Unit3 &s, double d)
 Construct from a Unit3 and a distance.
 
 OrientedPlane3 (const Vector4 &vec)
 Construct from a vector of plane coefficients.
 
 OrientedPlane3 (double a, double b, double c, double d)
 Construct from four numbers of plane coeffcients (a, b, c, d)
 
Testable
void print (const std::string &s=std::string()) const
 The print function.
 
bool equals (const OrientedPlane3 &s, double tol=1e-9) const
 The equals function with tolerance.
 

Static Public Member Functions

static OrientedPlane3 Transform (const OrientedPlane3 &plane, const Pose3 &xr, OptionalJacobian< 3, 6 > Hr=boost::none, OptionalJacobian< 3, 3 > Hp=boost::none)
 
static size_t Dim ()
 Dimensionality of tangent space = 3 DOF.
 

Public Types

enum  { dimension = 3 }
 

Member Function Documentation

◆ error()

Vector3 gtsam::OrientedPlane3::error ( const OrientedPlane3 plane) const

Computes the error between two planes.

The error is a norm 1 difference in tangent space.

Parameters
theother plane

◆ errorVector()

Vector3 gtsam::OrientedPlane3::errorVector ( const OrientedPlane3 other,
OptionalJacobian< 3, 3 >  H1 = boost::none,
OptionalJacobian< 3, 3 >  H2 = boost::none 
) const

Computes the error between the two planes, with derivatives.

This uses Unit3::errorVector, as opposed to the other .error() in this class, which uses Unit3::localCoordinates. This one has correct derivatives. NOTE(hayk): The derivatives are zero when normals are exactly orthogonal.

Parameters
theother plane

◆ transform()

OrientedPlane3 gtsam::OrientedPlane3::transform ( const Pose3 xr,
OptionalJacobian< 3, 3 >  Hp = boost::none,
OptionalJacobian< 3, 6 >  Hr = boost::none 
) const

Transforms a plane to the specified pose.

Parameters
xra transformation in current coordiante
Hpoptional Jacobian wrpt the destination plane
Hroptional jacobian wrpt the pose transformation
Returns
the transformed plane

◆ Transform()

static OrientedPlane3 gtsam::OrientedPlane3::Transform ( const OrientedPlane3 plane,
const Pose3 xr,
OptionalJacobian< 3, 6 >  Hr = boost::none,
OptionalJacobian< 3, 3 >  Hp = boost::none 
)
inlinestatic
Deprecated:
the static method has wrong Jacobian order, please use the member method transform()
Parameters
Theraw plane
xra transformation in current coordiante
Hroptional jacobian wrpt the pose transformation
Hpoptional Jacobian wrpt the destination plane
Returns
the transformed plane

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