Go to the documentation of this file.
183 for (
const auto& ptr : data)
185 if (!ptr) {
return false;}
383 template <
class HandleType>
395 catch(
const std::logic_error& e)
408 resource_name_and_handle.second.propagate();
virtual bool hasActuatorToJointAbsolutePosition() const
Handle for propagating joint efforts to actuator efforts for a given transmission.
virtual void jointToActuatorVelocity(const JointData &jnt_data, ActuatorData &act_data)=0
Transform velocity variables from joint to actuator space.
ActuatorToJointPositionHandle(const std::string &name, Transmission *transmission, const ActuatorData &actuator_data, const JointData &joint_data)
virtual std::size_t numActuators() const =0
Handle for propagating joint positions to actuator positions for a given transmission.
std::vector< double * > velocity
Handle for propagating actuator state (position, velocity and effort) to joint state for a given tran...
ActuatorToJointStateHandle(const std::string &name, Transmission *transmission, const ActuatorData &actuator_data, const JointData &joint_data)
Handle for propagating joint velocities to actuator velocities for a given transmission.
void propagate()
Propagate the transmission maps of all managed handles.
JointToActuatorStateHandle(const std::string &name, Transmission *transmission, const ActuatorData &actuator_data, const JointData &joint_data)
virtual void actuatorToJointPosition(const ActuatorData &act_data, JointData &jnt_data)=0
Transform position variables from actuator to joint space.
Handle for propagating joint state (position, velocity and effort) to actuator state for a given tran...
void propagate()
Propagate actuator positions to joint positions for the stored transmission.
JointToActuatorPositionHandle(const std::string &name, Transmission *transmission, const ActuatorData &actuator_data, const JointData &joint_data)
ActuatorData actuator_data_
ActuatorToJointVelocityHandle(const std::string &name, Transmission *transmission, const ActuatorData &actuator_data, const JointData &joint_data)
TransmissionHandle(const std::string &name, Transmission *transmission, const ActuatorData &actuator_data, const JointData &joint_data)
virtual std::size_t numJoints() const =0
Transmission * transmission_
void propagate()
Propagate actuator velocities to joint velocities for the stored transmission.
virtual bool hasActuatorToJointTorqueSensor() const
void propagate()
Propagate joint velocities to actuator velocities for the stored transmission.
JointToActuatorVelocityHandle(const std::string &name, Transmission *transmission, const ActuatorData &actuator_data, const JointData &joint_data)
std::vector< double * > position
void propagate()
Propagate joint positions to actuator positions for the stored transmission.
HandleType getHandle(const std::string &name)
static bool hasValidPointers(const std::vector< double * > &data)
void propagate()
Propagate joint efforts to actuator efforts for the stored transmission.
Contains pointers to raw data representing the position, velocity and acceleration of a transmission'...
void propagate()
Propagate actuator state to joint state for the stored transmission.
std::vector< double * > torque_sensor
virtual void jointToActuatorEffort(const JointData &jnt_data, ActuatorData &act_data)=0
Transform effort variables from joint to actuator space.
std::vector< double * > effort
Handle for propagating actuator velocities to joint velocities for a given transmission.
Abstract base class for representing mechanical transmissions.
virtual void actuatorToJointEffort(const ActuatorData &act_data, JointData &jnt_data)=0
Transform effort variables from actuator to joint space.
std::vector< double * > position
std::vector< double * > absolute_position
Handle for propagating actuator positions to joint positions for a given transmission.
std::string getName() const
std::vector< double * > effort
std::vector< double * > torque_sensor
ActuatorToJointEffortHandle(const std::string &name, Transmission *transmission, const ActuatorData &actuator_data, const JointData &joint_data)
Interface for propagating a given map on a set of transmissions.
std::vector< double * > velocity
virtual void jointToActuatorPosition(const JointData &jnt_data, ActuatorData &act_data)=0
Transform position variables from joint to actuator space.
ResourceHandle getHandle(const std::string &name)
Handle for propagating a single map (position, velocity, or effort) on a single transmission (eg....
Handle for propagating actuator efforts to joint efforts for a given transmission.
std::vector< double * > absolute_position
virtual void actuatorToJointTorqueSensor(const ActuatorData &, JointData &)
Contains pointers to raw data representing the position, velocity and acceleration of a transmission'...
void propagate()
Propagate joint state to actuator state for the stored transmission.
void propagate()
Propagate actuator efforts to joint efforts for the stored transmission.
ResourceMap resource_map_
JointToActuatorEffortHandle(const std::string &name, Transmission *transmission, const ActuatorData &actuator_data, const JointData &joint_data)
virtual void actuatorToJointVelocity(const ActuatorData &act_data, JointData &jnt_data)=0
Transform velocity variables from actuator to joint space.
virtual void actuatorToJointAbsolutePosition(const ActuatorData &, JointData &)