Go to the documentation of this file.
54 #include <hardware_interface/hardware_interface.h>
62 template <
class T>
class ClassLoader;
88 bool initXml(TiXmlElement *root);
int getTransmissionIndex(const std::string &name) const
get the transmission index based on the transmission name. Returns -1 on failure
void propagateJointEffortToActuatorEffort()
Propagete the joint efforts, through the transmissions, to the actuator efforts.
ros::Time getTime()
Get the time when the current controller cycle was started.
RobotState(Robot *model)
constructor
boost::shared_ptr< pr2_mechanism_model::Transmission > getTransmission(const std::string &name) const
get a transmission pointer based on the transmission name. Returns NULL on failure
pr2_hardware_interface::Actuator * getActuator(const std::string &name) const
get an actuator pointer based on the actuator name. Returns NULL on failure
void enforceSafety()
Modify the commanded_effort_ of each joint state so that the joint limits are satisfied.
std::vector< boost::shared_ptr< Transmission > > transmissions_
The list of transmissions.
void propagateActuatorPositionToJointPosition()
Propagete the actuator positions, through the transmissions, to the joint positions.
This class provides the controllers with an interface to the robot state.
JointState * getJointState(const std::string &name)
Get a joint state by name.
Robot(pr2_hardware_interface::HardwareInterface *hw)
Constructor.
urdf::Model robot_model_
The kinematic/dynamic model of the robot.
This class provides the controllers with an interface to the robot model.
std::map< std::string, JointState * > joint_states_map_
pr2_hardware_interface::HardwareInterface * hw_
a pointer to the pr2 hardware interface. Only for advanced users
bool initXml(TiXmlElement *root)
Initialize the robot model form xml.
std::vector< JointState > joint_states_
The vector of joint states, in no particular order.
ros::Time getTime()
Get the time when the current controller cycle was started.
void propagateJointPositionToActuatorPosition()
Propagete the joint positions, through the transmissions, to the actuator positions.
bool isHalted()
Checks if one (or more) of the motors are halted.
std::vector< std::vector< pr2_mechanism_model::JointState * > > transmissions_out_
void zeroCommands()
Set the commanded_effort_ of each joint state to zero.
Robot * model_
The robot model containing the transmissions, urdf robot model, and hardware interface.
void propagateActuatorEffortToJointEffort()
Propagete the actuator efforts, through the transmissions, to the joint efforts.
std::vector< std::vector< pr2_hardware_interface::Actuator * > > transmissions_in_
boost::shared_ptr< pluginlib::ClassLoader< pr2_mechanism_model::Transmission > > transmission_loader_
pr2_mechanism_model
Author(s): Eric Berger berger@willowgarage.com, Stuart Glaser, Wim Meeussen
autogenerated on Mon Mar 6 2023 03:49:17