#include <VehicleDifferential.h>
Public Member Functions | |
void | control_step (const DynamicsDifferential::TControllerInput &ci, DynamicsDifferential::TControllerOutput &co) override |
ControllerTwistIdeal (DynamicsDifferential &veh) | |
void | on_post_step (const TSimulContext &context) override |
mrpt::math::TTwist2D | setpoint () const |
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 () |
Private Attributes | |
double | distWheels_ = 0 |
mrpt::math::TTwist2D | setpoint_ {0, 0, 0} |
"vx" and "omega" only More... | |
std::mutex | setpointMtx_ |
Additional Inherited Members | |
![]() | |
using | Ptr = std::shared_ptr< ControllerBaseTempl< VEH_DYNAMICS > > |
![]() | |
VEH_DYNAMICS & | veh_ |
Ideal ("fake") controller, which perfectly and instantaneously sets the vehicle twist setpoint as vehicle twist.
Definition at line 156 of file VehicleDifferential.h.
DynamicsDifferential::ControllerTwistIdeal::ControllerTwistIdeal | ( | DynamicsDifferential & | veh | ) |
Definition at line 14 of file VehicleDifferential_ControllerTwistIdeal.cpp.
|
inlinestatic |
Definition at line 160 of file VehicleDifferential.h.
|
override |
Definition at line 25 of file VehicleDifferential_ControllerTwistIdeal.cpp.
|
override |
Definition at line 33 of file VehicleDifferential_ControllerTwistIdeal.cpp.
|
inline |
Returns the current setpoint of the controller
Definition at line 180 of file VehicleDifferential.h.
|
inlineoverride |
Definition at line 171 of file VehicleDifferential.h.
|
overridevirtual |
This is to handle basic need of all the controllers.
Reimplemented from mvsim::ControllerBaseTempl< VEH_DYNAMICS >.
Definition at line 41 of file VehicleDifferential_ControllerTwistIdeal.cpp.
|
private |
Definition at line 189 of file VehicleDifferential.h.
|
private |
"vx" and "omega" only
Definition at line 190 of file VehicleDifferential.h.
|
mutableprivate |
Definition at line 191 of file VehicleDifferential.h.