Aria  2.8.0
ArPoseWithTime Class Reference

A subclass of ArPose that also stores a timestamp (ArTime) More...

#include <ariaUtil.h>

Inherits ArPose.

Public Member Functions

 ArPoseWithTime (double x=0, double y=0, double th=0, ArTime thisTime=ArTime())
 
 ArPoseWithTime (const ArPose &pose)
 Copy Constructor.
 
ArTime getTime (void) const
 
void setTime (ArTime newTime)
 
void setTimeToNow (void)
 
- Public Member Functions inherited from ArPose
 ArPose (double x=0, double y=0, double th=0)
 Constructor, with optional initial values. More...
 
 ArPose (const ArPose &pose)
 Copy Constructor.
 
virtual double findAngleTo (ArPose position) const
 Finds the angle between this position and the given position. More...
 
virtual double findDistanceTo (ArPose position) const
 Finds the distance from this position to the given position. More...
 
void getPose (double *x, double *y, double *th=NULL) const
 Gets the whole position in one function call. More...
 
double getTh (void) const
 Gets the heading.
 
double getThRad (void) const
 Gets the heading, in radians.
 
double getX (void) const
 Gets the x position.
 
double getY (void) const
 Gets the y position.
 
virtual void log (void) const
 Logs the coordinates using ArLog.
 
virtual bool operator!= (const ArPose &other) const
 
virtual ArPose operator+ (const ArPose &other) const
 Add the other pose's X, Y and theta to this pose's X, Y, and theta (sum in theta will be normalized to (-180,180)), and return the result.
 
ArPoseoperator+= (const ArPose &other)
 Adds the given pose to this one. More...
 
virtual ArPose operator- (const ArPose &other) const
 Substract the other pose's X, Y, and theta from this pose's X, Y, and theta (difference in theta will be normalized to (-180,180)), and return the result.
 
ArPoseoperator-= (const ArPose &other)
 Subtracts the given pose from this one. More...
 
virtual bool operator< (const ArPose &other) const
 Less than operator (for sets)
 
virtual bool operator== (const ArPose &other) const
 Equality operator (for sets)
 
virtual void setPose (double x, double y, double th=0)
 Sets the position to the given values. More...
 
virtual void setPose (ArPose position)
 Sets the position equal to the given position. More...
 
void setTh (double th)
 Sets the heading.
 
void setThRad (double th)
 Sets the heading, using radians.
 
void setX (double x)
 Sets the x position.
 
void setY (double y)
 Sets the y position.
 
virtual double squaredFindDistanceTo (ArPose position) const
 Finds the square distance from this position to the given position. More...
 
virtual ~ArPose ()
 Destructor.
 

Protected Attributes

ArTime myTime
 
- Protected Attributes inherited from ArPose
double myTh
 
double myX
 
double myY
 

Additional Inherited Members

- Static Public Member Functions inherited from ArPose
static double distanceBetween (ArPose pose1, ArPose pose2)
 Finds the distance between two poses (static function, uses no data from any instance and shouldn't be able to be called on an instance) More...
 

Detailed Description

A subclass of ArPose that also stores a timestamp (ArTime)


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