15 #include <mrpt/math/lightweight_geom_data.h> 55 : ControllerBase(veh),
56 setpoint_wheel_torque_l(0),
57 setpoint_wheel_torque_r(0)
64 virtual void control_step(
68 virtual void teleop_interface(
83 virtual void control_step(
87 virtual void load_config(
89 virtual void teleop_interface(
97 setpoint_lin_speed = vx;
98 setpoint_ang_speed = wz;
double setpoint_wheel_torque_r
virtual bool setTwistCommand(const double vx, const double wz)
const ControllerBasePtr & getController() const
virtual void invoke_motor_controllers(const TSimulContext &context, std::vector< double > &out_force_per_wheel)
DynamicsDifferential(World *parent)
static const char * class_name()
ControllerBaseTempl< DynamicsDifferential > ControllerBase
virtual vec3 getVelocityLocalOdoEstimate() const
std::shared_ptr< ControllerBase > ControllerBasePtr
virtual void dynamics_load_params_from_xml(const rapidxml::xml_node< char > *xml_node)
ControllerRawForces(DynamicsDifferential &veh)
#define DECLARES_REGISTER_VEHICLE_DYNAMICS(CLASS_NAME)
virtual ControllerBaseInterface * getControllerInterface()
ControllerBasePtr m_controller
The installed controller.
static const char * class_name()
double max_torque
Maximum abs. value torque (for clamp) [Nm].
ControllerBasePtr & getController()
double setpoint_lin_speed