13 using namespace mvsim;
19 setpoint_lin_speed(0),
20 setpoint_ang_speed(0),
47 const vec3 vehVelOdo =
m_veh.getVelocityLocalOdoEstimate();
48 const double act_vel_l =
50 const double act_vel_r =
54 for (
int i = 0; i < 2; i++)
71 std::map<std::string, TParamEntry> params;
118 "] Teleop keys: w/s=forward/backward. a/d=left/right. spacebar=stop.\n";
double KD
PID controller parameters.
virtual void teleop_interface(const TeleopInput &in, TeleopOutput &out) override
void parse_xmlnode_children_as_param(const rapidxml::xml_node< char > &xml_node, const std::map< std::string, TParamEntry > ¶ms, const char *function_name_context="")
virtual void control_step(const DynamicsDifferential::TControllerInput &ci, DynamicsDifferential::TControllerOutput &co)
double max_out
For clamping (0=no clamp)
double compute(double err, double dt)
ControllerTwistPID(DynamicsDifferential &veh)
static const char * class_name()
std::string append_gui_lines
double max_torque
Maximum abs. value torque (for clamp) [Nm].
virtual void teleop_interface(const TeleopInput &in, TeleopOutput &out)
double setpoint_ang_speed
desired velocities (m/s) and (rad/s)
virtual void load_config(const rapidxml::xml_node< char > &node)
double setpoint_lin_speed