Stg::Velocity Class Reference

#include <stage.hh>

Inheritance diagram for Stg::Velocity:

Public Member Functions

VelocityLoad (Worldfile *wf, int section, const char *keyword)
 
virtual void Print (const char *prefix) const
 
 Velocity (double x, double y, double z, double a)
 
 Velocity ()
 
- Public Member Functions inherited from Stg::Pose
meters_t Distance2D (const Pose &other) const
 
bool IsZero () const
 
PoseLoad (Worldfile *wf, int section, const char *keyword)
 
bool operator!= (const Pose &other) const
 
Pose operator+ (const Pose &p) const
 
bool operator< (const Pose &other) const
 
bool operator== (const Pose &other) const
 
 Pose (meters_t x, meters_t y, meters_t z, radians_t a)
 
 Pose ()
 
void Save (Worldfile *wf, int section, const char *keyword)
 
std::string String () const
 
void Zero ()
 
virtual ~Pose ()
 

Additional Inherited Members

- Static Public Member Functions inherited from Stg::Pose
static Pose Random (meters_t xmin, meters_t xmax, meters_t ymin, meters_t ymax)
 
- Public Attributes inherited from Stg::Pose
radians_t a
 rotation about the z axis. More...
 
meters_t x
 
meters_t y
 
meters_t z
 location in 3 axes More...
 

Detailed Description

Specify a 4 axis velocity: 3D vector in [x, y, z], plus rotation about Z (yaw).

Constructor & Destructor Documentation

◆ Velocity() [1/2]

Stg::Velocity::Velocity ( double  x,
double  y,
double  z,
double  a 
)
inline
Parameters
xvelocity vector component along X axis (forward speed), in meters per second.
yvelocity vector component along Y axis (sideways speed), in meters per second.
zvelocity vector component along Z axis (vertical speed), in meters per second.
arotational velocity around Z axis (yaw), in radians per second.

◆ Velocity() [2/2]

Stg::Velocity::Velocity ( )
inline

Member Function Documentation

◆ Load()

Velocity& Stg::Velocity::Load ( Worldfile wf,
int  section,
const char *  keyword 
)
inline

Print velocity in human-readable format on stdout, with a prefix string

Parameters
prefixCharacter string to prepend to output, or NULL.

◆ Print()

virtual void Stg::Velocity::Print ( const char *  prefix) const
inlinevirtual

Print pose in human-readable format on stdout

Parameters
prefixCharacter string to prepend to pose output

Reimplemented from Stg::Pose.


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