Wiselib
Public Types | Public Member Functions
wiselib::ControlledMotion< OsModel_P, Robot_P, Odometer_P, Math_P, MAX_RECEIVERS > Class Template Reference

#include <controlled_motion.h>

List of all members.

Public Types

enum  ErrorCodes { SUCCESS = OsModel::SUCCESS, ERR_UNSPEC = OsModel::ERR_UNSPEC }
typedef OsModel_P OsModel
typedef Robot_P Robot
typedef Odometer_P Odometer
typedef Math_P Math
typedef ControlledMotion
< OsModel, Robot, Odometer,
Math, MAX_RECEIVERS > 
self_type
typedef self_typeself_pointer_t
typedef Odometer::distance_t distance_t
typedef Odometer::angle_t angle_t
typedef Robot::velocity_t velocity_t
typedef Robot::angular_velocity_t angular_velocity_t
typedef delegate0< void > stopped_delegate_t
typedef vector_static< OsModel,
stopped_delegate_t,
MAX_RECEIVERS > 
stopped_delegates_t

Public Member Functions

int init ()
int init (Robot &)
int init (Robot &, Odometer &)
int destruct ()
int move_distance (distance_t d, velocity_t v=Robot::PRECISE_VELOCITY)
int turn_about (angle_t a, angular_velocity_t v=Robot::PRECISE_ANGULAR_VELOCITY)
int turn_to (angle_t a, angular_velocity_t v=Robot::PRECISE_ANGULAR_VELOCITY)
void on_state_change (int)
template<typename T , void(T::*)(void) TMethod>
int reg_stopped_callback (T *)
int unreg_stopped_callback (typename OsModel::size_t)
Robotrobot ()

Detailed Description

template<typename OsModel_P, typename Robot_P, typename Odometer_P = Robot_P, typename Math_P = StandaloneMath<OsModel_P>, typename OsModel_P::size_t MAX_RECEIVERS = 16>
class wiselib::ControlledMotion< OsModel_P, Robot_P, Odometer_P, Math_P, MAX_RECEIVERS >

Template Parameters:
Robot_PShould implement TurnWalkMotion_concept

Member Typedef Documentation

template<typename OsModel_P, typename Robot_P, typename Odometer_P = Robot_P, typename Math_P = StandaloneMath<OsModel_P>, typename OsModel_P::size_t MAX_RECEIVERS = 16>
typedef Odometer::angle_t wiselib::ControlledMotion< OsModel_P, Robot_P, Odometer_P, Math_P, MAX_RECEIVERS >::angle_t
template<typename OsModel_P, typename Robot_P, typename Odometer_P = Robot_P, typename Math_P = StandaloneMath<OsModel_P>, typename OsModel_P::size_t MAX_RECEIVERS = 16>
typedef Robot::angular_velocity_t wiselib::ControlledMotion< OsModel_P, Robot_P, Odometer_P, Math_P, MAX_RECEIVERS >::angular_velocity_t
template<typename OsModel_P, typename Robot_P, typename Odometer_P = Robot_P, typename Math_P = StandaloneMath<OsModel_P>, typename OsModel_P::size_t MAX_RECEIVERS = 16>
typedef Odometer::distance_t wiselib::ControlledMotion< OsModel_P, Robot_P, Odometer_P, Math_P, MAX_RECEIVERS >::distance_t
template<typename OsModel_P, typename Robot_P, typename Odometer_P = Robot_P, typename Math_P = StandaloneMath<OsModel_P>, typename OsModel_P::size_t MAX_RECEIVERS = 16>
typedef Math_P wiselib::ControlledMotion< OsModel_P, Robot_P, Odometer_P, Math_P, MAX_RECEIVERS >::Math
template<typename OsModel_P, typename Robot_P, typename Odometer_P = Robot_P, typename Math_P = StandaloneMath<OsModel_P>, typename OsModel_P::size_t MAX_RECEIVERS = 16>
typedef Odometer_P wiselib::ControlledMotion< OsModel_P, Robot_P, Odometer_P, Math_P, MAX_RECEIVERS >::Odometer
template<typename OsModel_P, typename Robot_P, typename Odometer_P = Robot_P, typename Math_P = StandaloneMath<OsModel_P>, typename OsModel_P::size_t MAX_RECEIVERS = 16>
typedef OsModel_P wiselib::ControlledMotion< OsModel_P, Robot_P, Odometer_P, Math_P, MAX_RECEIVERS >::OsModel
template<typename OsModel_P, typename Robot_P, typename Odometer_P = Robot_P, typename Math_P = StandaloneMath<OsModel_P>, typename OsModel_P::size_t MAX_RECEIVERS = 16>
typedef Robot_P wiselib::ControlledMotion< OsModel_P, Robot_P, Odometer_P, Math_P, MAX_RECEIVERS >::Robot
template<typename OsModel_P, typename Robot_P, typename Odometer_P = Robot_P, typename Math_P = StandaloneMath<OsModel_P>, typename OsModel_P::size_t MAX_RECEIVERS = 16>
typedef self_type* wiselib::ControlledMotion< OsModel_P, Robot_P, Odometer_P, Math_P, MAX_RECEIVERS >::self_pointer_t
template<typename OsModel_P, typename Robot_P, typename Odometer_P = Robot_P, typename Math_P = StandaloneMath<OsModel_P>, typename OsModel_P::size_t MAX_RECEIVERS = 16>
typedef ControlledMotion<OsModel, Robot, Odometer, Math, MAX_RECEIVERS> wiselib::ControlledMotion< OsModel_P, Robot_P, Odometer_P, Math_P, MAX_RECEIVERS >::self_type
template<typename OsModel_P, typename Robot_P, typename Odometer_P = Robot_P, typename Math_P = StandaloneMath<OsModel_P>, typename OsModel_P::size_t MAX_RECEIVERS = 16>
typedef delegate0<void> wiselib::ControlledMotion< OsModel_P, Robot_P, Odometer_P, Math_P, MAX_RECEIVERS >::stopped_delegate_t
template<typename OsModel_P, typename Robot_P, typename Odometer_P = Robot_P, typename Math_P = StandaloneMath<OsModel_P>, typename OsModel_P::size_t MAX_RECEIVERS = 16>
typedef vector_static<OsModel, stopped_delegate_t, MAX_RECEIVERS> wiselib::ControlledMotion< OsModel_P, Robot_P, Odometer_P, Math_P, MAX_RECEIVERS >::stopped_delegates_t
template<typename OsModel_P, typename Robot_P, typename Odometer_P = Robot_P, typename Math_P = StandaloneMath<OsModel_P>, typename OsModel_P::size_t MAX_RECEIVERS = 16>
typedef Robot::velocity_t wiselib::ControlledMotion< OsModel_P, Robot_P, Odometer_P, Math_P, MAX_RECEIVERS >::velocity_t

Member Enumeration Documentation

template<typename OsModel_P, typename Robot_P, typename Odometer_P = Robot_P, typename Math_P = StandaloneMath<OsModel_P>, typename OsModel_P::size_t MAX_RECEIVERS = 16>
enum wiselib::ControlledMotion::ErrorCodes
Enumerator:
SUCCESS 
ERR_UNSPEC 

Member Function Documentation

template<typename OsModel_P , typename Robot_P , typename Odometer_P , typename Math_P , typename OsModel_P::size_t MAX_RECEIVERS>
int wiselib::ControlledMotion< OsModel_P, Robot_P, Odometer_P, Math_P, MAX_RECEIVERS >::destruct ( void  ) [inline]
template<typename OsModel_P , typename Robot_P , typename Odometer_P , typename Math_P , typename OsModel_P::size_t MAX_RECEIVERS>
int wiselib::ControlledMotion< OsModel_P, Robot_P, Odometer_P, Math_P, MAX_RECEIVERS >::init ( void  ) [inline]
template<typename OsModel_P , typename Robot_P , typename Odometer_P , typename Math_P , typename OsModel_P::size_t MAX_RECEIVERS>
int wiselib::ControlledMotion< OsModel_P, Robot_P, Odometer_P, Math_P, MAX_RECEIVERS >::init ( Robot robot) [inline]
template<typename OsModel_P , typename Robot_P , typename Odometer_P , typename Math_P , typename OsModel_P::size_t MAX_RECEIVERS>
int wiselib::ControlledMotion< OsModel_P, Robot_P, Odometer_P, Math_P, MAX_RECEIVERS >::init ( Robot robot,
Odometer odometer 
) [inline]
template<typename OsModel_P, typename Robot_P, typename Odometer_P = Robot_P, typename Math_P = StandaloneMath<OsModel_P>, typename OsModel_P::size_t MAX_RECEIVERS = 16>
int wiselib::ControlledMotion< OsModel_P, Robot_P, Odometer_P, Math_P, MAX_RECEIVERS >::move_distance ( distance_t  d,
velocity_t  v = Robot::PRECISE_VELOCITY 
) [inline]
template<typename OsModel_P , typename Robot_P , typename Odometer_P , typename Math_P , typename OsModel_P::size_t MAX_RECEIVERS>
void wiselib::ControlledMotion< OsModel_P, Robot_P, Odometer_P, Math_P, MAX_RECEIVERS >::on_state_change ( int  state)
template<typename OsModel_P , typename Robot_P , typename Odometer_P , typename Math_P , typename OsModel_P::size_t MAX_RECEIVERS>
template<typename T , void(T::*)(void) TMethod>
int wiselib::ControlledMotion< OsModel_P, Robot_P, Odometer_P, Math_P, MAX_RECEIVERS >::reg_stopped_callback ( T *  obj) [inline]
template<typename OsModel_P, typename Robot_P, typename Odometer_P = Robot_P, typename Math_P = StandaloneMath<OsModel_P>, typename OsModel_P::size_t MAX_RECEIVERS = 16>
Robot& wiselib::ControlledMotion< OsModel_P, Robot_P, Odometer_P, Math_P, MAX_RECEIVERS >::robot ( ) [inline]
template<typename OsModel_P, typename Robot_P, typename Odometer_P = Robot_P, typename Math_P = StandaloneMath<OsModel_P>, typename OsModel_P::size_t MAX_RECEIVERS = 16>
int wiselib::ControlledMotion< OsModel_P, Robot_P, Odometer_P, Math_P, MAX_RECEIVERS >::turn_about ( angle_t  a,
angular_velocity_t  v = Robot::PRECISE_ANGULAR_VELOCITY 
) [inline]
template<typename OsModel_P, typename Robot_P, typename Odometer_P = Robot_P, typename Math_P = StandaloneMath<OsModel_P>, typename OsModel_P::size_t MAX_RECEIVERS = 16>
int wiselib::ControlledMotion< OsModel_P, Robot_P, Odometer_P, Math_P, MAX_RECEIVERS >::turn_to ( angle_t  a,
angular_velocity_t  v = Robot::PRECISE_ANGULAR_VELOCITY 
) [inline]
template<typename OsModel_P, typename Robot_P, typename Odometer_P = Robot_P, typename Math_P = StandaloneMath<OsModel_P>, typename OsModel_P::size_t MAX_RECEIVERS = 16>
int wiselib::ControlledMotion< OsModel_P, Robot_P, Odometer_P, Math_P, MAX_RECEIVERS >::unreg_stopped_callback ( typename OsModel::size_t  ) [inline]

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