10 #ifndef QTCTRL_TRACK_CTRL 11 #define QTCTRL_TRACK_CTRL 30 std::list<State*>::const_iterator
goal;
39 while ( ( goal != traject.end() )
40 && ( (*goal)->date() < state.
date() + forwardTime ) )
42 if ( goal == traject.end() ) goal--;
63 const char* input_file_name,
64 const iSeeML::rob::OrPtConfig& init_config);
79 #endif // QTCTRL_TRACK_CTRL void searchGoal(const double &forwardTime=0)
Moves the goal forward until it gets after the robot's date plus a given amount of time...
State state
The current state of the robot.
virtual ~TrackingCtrl()
The destructor needs to be explicitely redefined.
std::list< State * >::const_iterator goal
The trajectory's state which is aimed.
State class, i.e. configuration and velocities.
File controller (teleoperation) class.
TrackingCtrl aims at following a trajectory with the robot.
int nb_states
The number of states in the followed trajectory.
const double & date() const
Gives the configuration of the state.
virtual void newState(const State &state)
Handles new state of the robot.
This class defines a state, i.e. a configuration and its (translation and rotation) velocities...
std::list< State * > traject
The trajectory which should be followed.
This class defines a motion model, with the motion limits.
FileCtrl allows to control the robot from a file.
virtual void newState(const State &state)
Handles new state of the robot.
const std::list< State * > & trajectory() const
Gives the tracked trajectory.
TrackingCtrl(const MotionModel &model, const double &ts, const char *input_file_name, const iSeeML::rob::OrPtConfig &init_config)
The constructor needs a motion model, a time step, a file name giving the path to track and an initia...