Wiselib
|
Implements the "Motion" concept. More...
#include <direct_motion.h>
Public Types | |
enum | ErrorCodes { SUCCESS = OsModel::SUCCESS, ERR_UNSPEC = OsModel::ERR_UNSPEC } |
typedef OsModel_P | OsModel |
typedef Position_P | Position |
typedef ControlledMotion_P | ControlledMotion |
typedef Math_P | Math |
typedef Position::position_t | position_t |
typedef DirectMotion< OsModel, Position, ControlledMotion, Math > | self_type |
typedef self_type * | self_pointer_t |
Public Member Functions | |
int | init () |
int | init (Position &, ControlledMotion &) |
int | destruct () |
int | move_to (const position_t &) |
Implements the "Motion" concept.
Given a target position, this will rotate the robot and let it move the appropriate distance in order to reach that position.
Position_P | should implement the Position concept |
ControlledMotion_P | should implement the ControlledMotion concept |
Math_P | should implement the Math concept |
typedef ControlledMotion_P wiselib::DirectMotion< OsModel_P, Position_P, ControlledMotion_P, Math_P >::ControlledMotion |
typedef Math_P wiselib::DirectMotion< OsModel_P, Position_P, ControlledMotion_P, Math_P >::Math |
typedef OsModel_P wiselib::DirectMotion< OsModel_P, Position_P, ControlledMotion_P, Math_P >::OsModel |
typedef Position_P wiselib::DirectMotion< OsModel_P, Position_P, ControlledMotion_P, Math_P >::Position |
typedef Position::position_t wiselib::DirectMotion< OsModel_P, Position_P, ControlledMotion_P, Math_P >::position_t |
typedef self_type* wiselib::DirectMotion< OsModel_P, Position_P, ControlledMotion_P, Math_P >::self_pointer_t |
typedef DirectMotion<OsModel, Position, ControlledMotion, Math> wiselib::DirectMotion< OsModel_P, Position_P, ControlledMotion_P, Math_P >::self_type |
enum wiselib::DirectMotion::ErrorCodes |
int wiselib::DirectMotion< OsModel_P, Position_P, ControlledMotion_P, Math_P >::destruct | ( | void | ) | [inline] |
int wiselib::DirectMotion< OsModel_P, Position_P, ControlledMotion_P, Math_P >::init | ( | Position & | position, |
ControlledMotion & | cm | ||
) | [inline] |
int wiselib::DirectMotion< OsModel_P, Position_P, ControlledMotion_P, Math_P >::init | ( | void | ) | [inline] |
int wiselib::DirectMotion< OsModel_P, Position_P, ControlledMotion_P, Math_P >::move_to | ( | const position_t & | target | ) | [inline] |