Stg::Pose Class Reference
#include <stage.hh>
Inheritance diagram for Stg::Pose:

Public Member Functions | |
meters_t | Distance (const Pose &other) const |
bool | IsZero () const |
Pose & | Load (Worldfile *wf, int section, const char *keyword) |
bool | operator!= (const Pose &other) const |
Pose | operator+ (const Pose &p) const |
bool | operator< (const Pose &p) const |
a < b iff a is closer to the origin than b More... | |
bool | operator== (const Pose &other) const |
Pose () | |
Pose (meters_t x, meters_t y, meters_t z, radians_t a) | |
virtual void | Print (const char *prefix) const |
void | Save (Worldfile *wf, int section, const char *keyword) |
std::string | String () const |
void | Zero () |
virtual | ~Pose () |
Static Public Member Functions | |
static Pose | Random (meters_t xmin, meters_t xmax, meters_t ymin, meters_t ymax) |
Public Attributes | |
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 3 axis position, in x, y and heading.
Constructor & Destructor Documentation
◆ Pose() [1/2]
◆ Pose() [2/2]
|
inline |
◆ ~Pose()
|
inlinevirtual |
Member Function Documentation
◆ Distance()
◆ IsZero()
|
inline |
Returns true iff all components of the velocity are zero.
◆ Load()
◆ operator!=()
|
inline |
◆ operator+()
◆ operator<()
|
inline |
a < b iff a is closer to the origin than b
◆ operator==()
|
inline |
◆ Print()
|
inlinevirtual |
Print pose in human-readable format on stdout
- Parameters
-
prefix Character string to prepend to pose output
Reimplemented in Stg::Velocity.
◆ Random()
|
inlinestatic |
return a random pose within the bounding rectangle, with z=0 and angle random
◆ Save()
void Pose::Save | ( | Worldfile * | wf, |
int | section, | ||
const char * | keyword | ||
) |
◆ String()
|
inline |
◆ Zero()
|
inline |
Set the pose to zero [0,0,0,0]
Member Data Documentation
◆ a
radians_t Stg::Pose::a |
rotation about the z axis.
◆ x
meters_t Stg::Pose::x |
◆ y
meters_t Stg::Pose::y |
◆ z
meters_t Stg::Pose::z |
location in 3 axes
The documentation for this class was generated from the following files:
Generated on Wed Jan 27 2021 00:00:00 for Stage by