13 using namespace mvsim;
19 setpoint_lin_speed(0),
20 setpoint_ang_speed(0),
56 const double vel_act =
m_veh.getVelocityLocalOdoEstimate().vals[0];
67 std::map<std::string, TParamEntry> params;
113 "] Teleop keys: w/s=incr/decr lin speed. " 114 "a/d=left/right steering. spacebar=stop.\n";
double setpoint_lin_speed
double KD
PID controller parameters.
double max_torque
Maximum abs. value torque (for clamp) [Nm].
double setpoint_ang_speed
desired velocities (m/s) and (rad/s)
virtual void teleop_interface(const TeleopInput &in, TeleopOutput &out)
virtual void load_config(const rapidxml::xml_node< char > &node)
ControllerTwistFrontSteerPID(DynamicsAckermannDrivetrain &veh)
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="")
static const char * class_name()
double steer_ang
Equivalent ackerman steering angle.
double max_out
For clamping (0=no clamp)
double compute(double err, double dt)
std::string append_gui_lines
virtual void control_step(const DynamicsAckermannDrivetrain::TControllerInput &ci, DynamicsAckermannDrivetrain::TControllerOutput &co)