#include <VehicleAckermann_Drivetrain.h>
Public Member Functions | |
virtual void | control_step (const DynamicsAckermannDrivetrain::TControllerInput &ci, DynamicsAckermannDrivetrain::TControllerOutput &co) override |
ControllerTwistFrontSteerPID (DynamicsAckermannDrivetrain &veh) | |
virtual void | load_config (const rapidxml::xml_node< char > &node) override |
virtual bool | setTwistCommand (const mrpt::math::TTwist2D &t) override |
virtual void | teleop_interface (const TeleopInput &in, TeleopOutput &out) override |
![]() | |
virtual void | clearLogs () |
virtual void | control_step (const typename VEH_DYNAMICS::TControllerInput &ci, typename VEH_DYNAMICS::TControllerOutput &co)=0 |
ControllerBaseTempl (VEH_DYNAMICS &veh) | |
virtual void | load_config ([[maybe_unused]] const rapidxml::xml_node< char > &node) |
virtual void | newLogSession () |
virtual void | on_post_step ([[maybe_unused]] const TSimulContext &context) |
virtual void | setLogRecording (bool recording) |
virtual | ~ControllerBaseTempl () |
![]() | |
virtual bool | setTwistCommand ([[maybe_unused]] const mrpt::math::TTwist2D &t) |
virtual void | teleop_interface ([[maybe_unused]] const TeleopInput &in, [[maybe_unused]] TeleopOutput &out) |
Static Public Member Functions | |
static const char * | class_name () |
Public Attributes | |
double | KD |
PID controller parameters. More... | |
double | KI |
double | KP |
double | max_torque |
Maximum abs. value torque (for clamp) [Nm]. More... | |
double | setpoint_ang_speed |
desired velocities (m/s) and (rad/s) More... | |
double | setpoint_lin_speed |
Private Attributes | |
double | dist_fWheels_ |
PID_Controller | PID_ |
double | r2f_L_ |
Additional Inherited Members | |
![]() | |
using | Ptr = std::shared_ptr< ControllerBaseTempl< VEH_DYNAMICS > > |
![]() | |
VEH_DYNAMICS & | veh_ |
PID controller that controls the vehicle with front traction & steering from Twist commands
Definition at line 93 of file VehicleAckermann_Drivetrain.h.
DynamicsAckermannDrivetrain::ControllerTwistFrontSteerPID::ControllerTwistFrontSteerPID | ( | DynamicsAckermannDrivetrain & | veh | ) |
Definition at line 18 of file Vehicleackermann_Drivetrain_ControllerTwistFrontSteerPID.cpp.
|
inlinestatic |
Directly set these values to tell the controller the desired setpoints
Definition at line 97 of file VehicleAckermann_Drivetrain.h.
|
overridevirtual |
Definition at line 36 of file Vehicleackermann_Drivetrain_ControllerTwistFrontSteerPID.cpp.
|
overridevirtual |
Definition at line 64 of file Vehicleackermann_Drivetrain_ControllerTwistFrontSteerPID.cpp.
|
inlineoverridevirtual |
Definition at line 113 of file VehicleAckermann_Drivetrain.h.
|
overridevirtual |
This is to handle basic need of all the controllers.
Reimplemented from mvsim::ControllerBaseTempl< VEH_DYNAMICS >.
Definition at line 81 of file Vehicleackermann_Drivetrain_ControllerTwistFrontSteerPID.cpp.
|
private |
Definition at line 121 of file VehicleAckermann_Drivetrain.h.
double mvsim::DynamicsAckermannDrivetrain::ControllerTwistFrontSteerPID::KD |
PID controller parameters.
Definition at line 109 of file VehicleAckermann_Drivetrain.h.
double mvsim::DynamicsAckermannDrivetrain::ControllerTwistFrontSteerPID::KI |
Definition at line 109 of file VehicleAckermann_Drivetrain.h.
double mvsim::DynamicsAckermannDrivetrain::ControllerTwistFrontSteerPID::KP |
Definition at line 109 of file VehicleAckermann_Drivetrain.h.
double mvsim::DynamicsAckermannDrivetrain::ControllerTwistFrontSteerPID::max_torque |
Maximum abs. value torque (for clamp) [Nm].
Definition at line 110 of file VehicleAckermann_Drivetrain.h.
|
private |
Definition at line 122 of file VehicleAckermann_Drivetrain.h.
|
private |
Definition at line 121 of file VehicleAckermann_Drivetrain.h.
double mvsim::DynamicsAckermannDrivetrain::ControllerTwistFrontSteerPID::setpoint_ang_speed |
desired velocities (m/s) and (rad/s)
Definition at line 100 of file VehicleAckermann_Drivetrain.h.
double mvsim::DynamicsAckermannDrivetrain::ControllerTwistFrontSteerPID::setpoint_lin_speed |
Definition at line 100 of file VehicleAckermann_Drivetrain.h.