Go to the documentation of this file.
43 #ifndef GRIPPER_TRANSMISSION_H
44 #define GRIPPER_TRANSMISSION_H
62 bool initXml(TiXmlElement *config);
65 std::vector<pr2_mechanism_model::JointState*>&);
67 std::vector<pr2_hardware_interface::Actuator*>&);
69 std::vector<pr2_hardware_interface::Actuator*>&);
71 std::vector<pr2_mechanism_model::JointState*>&);
94 double &theta,
double &dtheta_dMR,
double &dt_dtheta,
double &dt_dMR,
double &gap_size,
double &gap_velocity,
double &gap_effort);
95 void inverseGapStates(
double gap_size,
double &MR,
double &dMR_dtheta,
double &dtheta_dt,
double &dMR_dt);
96 void inverseGapStates1(
double theta,
double &MR,
double &dMR_dtheta,
double &dtheta_dt,
double &dMR_dt);
113 #define RAD2MR (1.0/(2.0*M_PI)) // convert radians to motor revolutions
114 #define TOL 0.00001 // limit for denominators
void inverseGapStates1(double theta, double &MR, double &dMR_dtheta, double &dtheta_dt, double &dMR_dt)
ros::Time simulated_actuator_start_time_
bool use_simulated_actuated_joint_
void inverseGapStates(double gap_size, double &MR, double &dMR_dtheta, double &dtheta_dt, double &dMR_dt)
void propagateEffortBackwards(std::vector< pr2_hardware_interface::Actuator * > &, std::vector< pr2_mechanism_model::JointState * > &)
Uses the actuator's commanded effort to fill out the torque on the joint.
double simulated_reduction_
int simulated_actuator_timestamp_initialized_
std::vector< std::string > passive_joints_
bool has_simulated_passive_actuated_joint_
double gap_mechanical_reduction_
void propagatePositionBackwards(std::vector< pr2_mechanism_model::JointState * > &, std::vector< pr2_hardware_interface::Actuator * > &)
Uses the joint position to fill out the actuator's encoder.
This class provides the controllers with an interface to the robot model.
virtual ~PR2GripperTransmission()
void computeGapStates(double MR, double MR_dot, double MT, double &theta, double &dtheta_dMR, double &dt_dtheta, double &dt_dMR, double &gap_size, double &gap_velocity, double &gap_effort)
compute gap position, velocity and measured effort from actuator states
bool initXml(TiXmlElement *config, Robot *robot)
Initializes the transmission from XML data.
void propagatePosition(std::vector< pr2_hardware_interface::Actuator * > &, std::vector< pr2_mechanism_model::JointState * > &)
void propagateEffort(std::vector< pr2_mechanism_model::JointState * > &, std::vector< pr2_hardware_interface::Actuator * > &)
Uses commanded joint efforts to fill out commanded motor currents.
JointCalibrationSimulator joint_calibration_simulator_
pr2_mechanism_model
Author(s): Eric Berger berger@willowgarage.com, Stuart Glaser, Wim Meeussen
autogenerated on Mon Mar 6 2023 03:49:17