Stg::ModelPosition Class Reference
ModelPosition class More...
#include <stage.hh>
Inherits Stg::Model.
Classes | |
class | PoseVis |
class | WaypointVis |
Public Types | |
enum | ControlMode { STG_POSITION_CONTROL_VELOCITY, STG_POSITION_CONTROL_POSITION } |
enum | DriveMode { STG_POSITION_DRIVE_DIFFERENTIAL, STG_POSITION_DRIVE_OMNI, STG_POSITION_DRIVE_CAR } |
enum | LocalizationMode { STG_POSITION_LOCALIZATION_GPS, STG_POSITION_LOCALIZATION_ODOM } |
Public Member Functions | |
void | GoTo (Pose pose) |
void | GoTo (double x, double y, double a) |
virtual void | Load () |
ModelPosition (World *world, Model *parent) | |
void | SetOdom (Pose odom) |
void | SetSpeed (Velocity vel) |
void | SetSpeed (double x, double y, double a) |
void | SetTurnSpeed (double a) |
Waypoint * | SetWaypoints (Waypoint *wps, uint32_t count) |
void | SetXSpeed (double x) |
void | SetYSpeed (double y) |
void | SetZSpeed (double z) |
virtual void | Shutdown () |
virtual void | Startup () |
void | Stop () |
virtual void | Update () |
~ModelPosition () | |
Static Public Member Functions | |
static Model * | Create (World *world, Model *parent) |
Public Attributes | |
Pose | est_origin |
global origin of the local coordinate system | |
Pose | est_pose |
position estimate in local coordinates | |
Pose | est_pose_error |
estimated error in position estimate | |
PoseVis | posevis |
WaypointVis | wpvis |
Detailed Description
ModelPosition classMember Enumeration Documentation
Constructor & Destructor Documentation
ModelPosition::~ModelPosition | ( | void | ) |
Member Function Documentation
Every class derived from Stg::Model must provide a "named constructor" for its class, like this.
Reimplemented from Stg::Model.
void ModelPosition::GoTo | ( | Pose | pose | ) |
void ModelPosition::GoTo | ( | double | x, | |
double | y, | |||
double | a | |||
) |
Sets the control mode to CONTROL_POSITION and sets the goal pose
void ModelPosition::Load | ( | void | ) | [virtual] |
configure a model by reading from the current world file
Reimplemented from Stg::Model.
void ModelPosition::SetOdom | ( | Pose | odom | ) |
Set the current pose estimate.
Set the current odometry estimate
void ModelPosition::SetSpeed | ( | Velocity | vel | ) |
void ModelPosition::SetSpeed | ( | double | x, | |
double | y, | |||
double | a | |||
) |
Sets the control_mode to CONTROL_VELOCITY and sets the goal velocity.
void ModelPosition::SetTurnSpeed | ( | double | a | ) |
Set the waypoint array pointer. Returns the old pointer, in case you need to free/delete[] it
void ModelPosition::SetXSpeed | ( | double | x | ) |
void ModelPosition::SetYSpeed | ( | double | y | ) |
void ModelPosition::SetZSpeed | ( | double | z | ) |
void ModelPosition::Shutdown | ( | void | ) | [virtual] |
Reimplemented from Stg::Model.
void ModelPosition::Startup | ( | void | ) | [virtual] |
Reimplemented from Stg::Model.
void ModelPosition::Stop | ( | ) |
Set velocity along all axes to to zero.
void ModelPosition::Update | ( | void | ) | [virtual] |
Reimplemented from Stg::Model.
Member Data Documentation
global origin of the local coordinate system
position estimate in local coordinates
estimated error in position estimate
The documentation for this class was generated from the following files:
Generated on Wed Jul 22 11:51:05 2009 for Stage by 1.5.9