Class SimpleTransmission
Defined in File simple_transmission.hpp
Inheritance Relationships
Base Type
public transmission_interface::Transmission
(Class Transmission)
Class Documentation
-
class SimpleTransmission : public transmission_interface::Transmission
Public Functions
-
inline explicit SimpleTransmission(const double joint_to_actuator_reduction, const double joint_offset = 0.0)
- Parameters:
joint_to_actuator_reduction – [in] Joint to actuator reduction ratio.
joint_offset – [in] Joint position offset used in the position mappings.
- Pre:
Nonzero reduction value.
-
inline virtual void configure(const std::vector<JointHandle> &joint_handles, const std::vector<ActuatorHandle> &actuator_handles) override
Set up the data the transmission operates on.
- Parameters:
joint_handles – [in] Vector of interface handles of one joint
actuator_handles – [in] Vector of interface handles of one actuator
- Pre:
Vectors are nonzero.
- Pre:
Joint handles share the same joint name and actuator handles share the same actuator name.
-
inline virtual void actuator_to_joint() override
Transform variables from actuator to joint space.
This method operates on the handles provided when configuring the transmission. To call this method it is not required that all supported interface types are provided, e.g. one can supply only velocity handles
-
inline virtual void joint_to_actuator() override
Transform variables from joint to actuator space.
This method operates on the handles provided when configuring the transmission. To call this method it is not required that all supported interface types are provided, e.g. one can supply only velocity handles
-
inline virtual std::size_t num_actuators() const override
- Returns:
Number of actuators managed by transmission, ie. the dimension of the actuator space.
-
inline virtual std::size_t num_joints() const override
- Returns:
Number of joints managed by transmission, ie. the dimension of the joint space.
-
inline double get_actuator_reduction() const
-
inline double get_joint_offset() const
Protected Attributes
-
double reduction_
-
double jnt_offset_
-
JointHandle joint_position_ = {"", "", nullptr}
-
JointHandle joint_velocity_ = {"", "", nullptr}
-
JointHandle joint_effort_ = {"", "", nullptr}
-
JointHandle joint_torque_ = {"", "", nullptr}
-
JointHandle joint_absolute_position_ = {"", "", nullptr}
-
ActuatorHandle actuator_position_ = {"", "", nullptr}
-
ActuatorHandle actuator_velocity_ = {"", "", nullptr}
-
ActuatorHandle actuator_effort_ = {"", "", nullptr}
-
ActuatorHandle actuator_torque_ = {"", "", nullptr}
-
ActuatorHandle actuator_absolute_position_ = {"", "", nullptr}
-
inline explicit SimpleTransmission(const double joint_to_actuator_reduction, const double joint_offset = 0.0)