28 const char* input_file_name,
29 const iSeeML::rob::OrPtConfig& init_config)
30 :
FileCtrl(model, ts, input_file_name), nb_states(0),
33 double t, x, y, th, v, om;
35 std::getline(*
input, endLine);
37 *
input >> t >> x >> y >> th >> v >> om;
39 iSeeML::rob::OrPtConfig q = init_config.projection
40 ( iSeeML::rob::OrPtConfig(iSeeML::geom::Point(x, y), th) );
43 std::getline(*
input, endLine);
bool inputEnded() const
Is the input stream at its end?
std::list< State * >::const_iterator goal
The trajectory's state which is aimed.
Path following controller abstract class.
bool inputOK() const
Is the input stream OK for reading?
int nb_states
The number of states in the followed trajectory.
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.
std::ifstream * input
The input stream, if any.
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...