15 std::ostream& log_str) {
20 const iSeeML::rob::OrPtConfig& goal_config = goal.
configuration(),
22 const iSeeML::geom::Vector v
23 = goal_config.position() - config.position();
24 const double dist = v.length(), dir = v.orientation(),
26 angle_diff = iSeeML::Object::mod2pi( dir + goal_config.orientation()
27 - config.orientation() ),
43 trans_acc, rot_acc, time_step);
double integr_dist
Integrated distance.
double trans_deriv_coef
Translation derivative coefficient.
const State & getGoal() const
Get the state which is aimed.
const double & rotationVelocity() const
Gives the rotation velocity of the state.
const double time_step
The time step of the controller.
double rot_integ_coef
Rotation integration coefficient.
const iSeeML::rob::OrPtConfig & configuration() const
Gives the configuration of the state.
double moving_velocity
Translation velocity desired for the robot.
State state
The state of the robot.
State goal
The state which is aimed.
void updateVelocities(double &trans_vel, double &rot_vel)
Update the velocities from the fields and send the update signal.
double rot_prop_coef
Rotation proportional coefficient.
const MotionModel & motion_model
The model of the motion.
void applyAccelerations(double &trans_vel, double &rot_vel, const double &trans_acc, const double &rot_acc, const double &time_step) const
Modify translation and rotation given velocities, applying the given accelerations during the given t...
const double & translationVelocity() const
Gives the translation velocity of the state.
double trans_integ_coef
Translation integration coefficient.
This class defines a state, i.e. a configuration and its (translation and rotation) velocities...
double rot_deriv_coef
Rotation derivative coefficient.
double turning_velocity
Rotation velocity desired for the robot.
PID controller reaching an oriented point.
void chooseVelocities(double &trans_vel, double &rot_vel, std::ostream &)
Computes new velocities for ROS node.
double trans_prop_coef
Translation proportional coefficient.
double integr_angle_diff
Integrated angle difference.