Wiselib
Public Types | Public Member Functions
wiselib::DirectMotion< OsModel_P, Position_P, ControlledMotion_P, Math_P > Class Template Reference

Implements the "Motion" concept. More...

#include <direct_motion.h>

List of all members.

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_typeself_pointer_t

Public Member Functions

int init ()
int init (Position &, ControlledMotion &)
int destruct ()
int move_to (const position_t &)

Detailed Description

template<typename OsModel_P, typename Position_P, typename ControlledMotion_P, typename Math_P = StandaloneMath<OsModel_P>>
class wiselib::DirectMotion< OsModel_P, Position_P, ControlledMotion_P, Math_P >

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.

Template Parameters:
Position_Pshould implement the Position concept
ControlledMotion_Pshould implement the ControlledMotion concept
Math_Pshould implement the Math concept

Member Typedef Documentation

template<typename OsModel_P , typename Position_P , typename ControlledMotion_P , typename Math_P = StandaloneMath<OsModel_P>>
typedef ControlledMotion_P wiselib::DirectMotion< OsModel_P, Position_P, ControlledMotion_P, Math_P >::ControlledMotion
template<typename OsModel_P , typename Position_P , typename ControlledMotion_P , typename Math_P = StandaloneMath<OsModel_P>>
typedef Math_P wiselib::DirectMotion< OsModel_P, Position_P, ControlledMotion_P, Math_P >::Math
template<typename OsModel_P , typename Position_P , typename ControlledMotion_P , typename Math_P = StandaloneMath<OsModel_P>>
typedef OsModel_P wiselib::DirectMotion< OsModel_P, Position_P, ControlledMotion_P, Math_P >::OsModel
template<typename OsModel_P , typename Position_P , typename ControlledMotion_P , typename Math_P = StandaloneMath<OsModel_P>>
typedef Position_P wiselib::DirectMotion< OsModel_P, Position_P, ControlledMotion_P, Math_P >::Position
template<typename OsModel_P , typename Position_P , typename ControlledMotion_P , typename Math_P = StandaloneMath<OsModel_P>>
typedef Position::position_t wiselib::DirectMotion< OsModel_P, Position_P, ControlledMotion_P, Math_P >::position_t
template<typename OsModel_P , typename Position_P , typename ControlledMotion_P , typename Math_P = StandaloneMath<OsModel_P>>
typedef self_type* wiselib::DirectMotion< OsModel_P, Position_P, ControlledMotion_P, Math_P >::self_pointer_t
template<typename OsModel_P , typename Position_P , typename ControlledMotion_P , typename Math_P = StandaloneMath<OsModel_P>>
typedef DirectMotion<OsModel, Position, ControlledMotion, Math> wiselib::DirectMotion< OsModel_P, Position_P, ControlledMotion_P, Math_P >::self_type

Member Enumeration Documentation

template<typename OsModel_P , typename Position_P , typename ControlledMotion_P , typename Math_P = StandaloneMath<OsModel_P>>
enum wiselib::DirectMotion::ErrorCodes
Enumerator:
SUCCESS 
ERR_UNSPEC 

Member Function Documentation

template<typename OsModel_P , typename Position_P , typename ControlledMotion_P , typename Math_P >
int wiselib::DirectMotion< OsModel_P, Position_P, ControlledMotion_P, Math_P >::destruct ( void  ) [inline]
template<typename OsModel_P , typename Position_P , typename ControlledMotion_P , typename Math_P >
int wiselib::DirectMotion< OsModel_P, Position_P, ControlledMotion_P, Math_P >::init ( Position position,
ControlledMotion cm 
) [inline]
template<typename OsModel_P , typename Position_P , typename ControlledMotion_P , typename Math_P >
int wiselib::DirectMotion< OsModel_P, Position_P, ControlledMotion_P, Math_P >::init ( void  ) [inline]
template<typename OsModel_P , typename Position_P , typename ControlledMotion_P , typename Math_P >
int wiselib::DirectMotion< OsModel_P, Position_P, ControlledMotion_P, Math_P >::move_to ( const position_t target) [inline]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines