|
|
| Rot2 () |
| | default constructor, zero rotation
|
| |
|
| Rot2 (double theta) |
| | Constructor from angle in radians == exponential map at identity.
|
| |
|
static Rot2 | fromAngle (double theta) |
| | Named constructor from angle in radians.
|
| |
|
static Rot2 | fromDegrees (double theta) |
| | Named constructor from angle in degrees.
|
| |
|
static Rot2 | fromCosSin (double c, double s) |
| | Named constructor from cos(theta),sin(theta) pair, will not normalize!
|
| |
| static Rot2 | relativeBearing (const Point2 &d, boost::optional< Matrix & > H=boost::none) |
| | Named constructor with derivative Calculate relative bearing to a landmark in local coordinate frame. More...
|
| |
|
static Rot2 | atan2 (double y, double x) |
| | Named constructor that behaves as atan2, i.e., y,x order (!) and normalizes.
|
| |
|
|
|
void | print (const std::string &s="theta") const |
| | print
|
| |
|
bool | equals (const Rot2 &R, double tol=1e-9) const |
| | equals with an tolerance
|
| |
|
|
Point2 | rotate (const Point2 &p, boost::optional< Matrix & > H1=boost::none, boost::optional< Matrix & > H2=boost::none) const |
| | rotate point from rotated coordinate frame to world \( p^w = R_c^w p^c \)
|
| |
|
Point2 | operator* (const Point2 &p) const |
| | syntactic sugar for rotate
|
| |
|
Point2 | unrotate (const Point2 &p, boost::optional< Matrix & > H1=boost::none, boost::optional< Matrix & > H2=boost::none) const |
| | rotate point from world to rotated frame \( p^c = (R_c^w)^T p^w \)
|
| |
|
|
Point2 | unit () const |
| | Creates a unit vector as a Point2.
|
| |
|
double | theta () const |
| | return angle (RADIANS)
|
| |
|
double | degrees () const |
| | return angle (DEGREES)
|
| |
|
double | c () const |
| | return cos
|
| |
|
double | s () const |
| | return sin
|
| |
|
Matrix | matrix () const |
| | return 2*2 rotation matrix
|
| |
|
Matrix | transpose () const |
| | return 2*2 transpose (inverse) rotation matrix
|
| |
| virtual Value * | clone_ () const |
| | Create a duplicate object returned as a pointer to the generic Value interface. More...
|
| |
|
virtual void | deallocate_ () const |
| | Destroy and deallocate this object, only if it was originally allocated using clone_().
|
| |
|
virtual boost::shared_ptr< Value > | clone () const |
| | Clone this value (normal clone on the heap, delete with 'delete' operator)
|
| |
|
virtual bool | equals_ (const Value &p, double tol=1e-9) const |
| | equals implementing generic Value interface
|
| |
|
virtual Value * | retract_ (const Vector &delta) const |
| | Generic Value interface version of retract.
|
| |
|
virtual Vector | localCoordinates_ (const Value &value2) const |
| | Generic Value interface version of localCoordinates.
|
| |
|
virtual Value & | operator= (const Value &rhs) |
| | Assignment operator.
|
| |
|
| operator const Rot2 & () const |
| | Conversion to the derived class.
|
| |
|
| operator Rot2 & () |
| | Conversion to the derived class.
|
| |
|
virtual | ~Value () |
| | Virutal destructor.
|
| |