35 using ros_ethercat_model::RobotState;
36 using ros_ethercat_model::Transmission;
43 bool J0Transmission::initXml(TiXmlElement *elt, RobotState *robot)
45 if (!SimpleTransmission::initXml(elt, robot))
50 string joint2_name = joint_->joint_->name;
51 joint2_name[joint2_name.size() - 1] =
'2';
52 joint2_ = robot->getJointState(joint2_name);
57 void J0Transmission::propagatePosition()
73 joint_->velocity_ = act->state_.velocity_ / 2.0;
74 joint2_->velocity_ = act->state_.velocity_ / 2.0;
76 joint_->effort_ = act->state_.last_measured_effort_;
77 joint2_->effort_ = act->state_.last_measured_effort_;
82 <<
" J1 " << act->state_.position_ / 2.0
83 <<
" J2 " << act->state_.position_ / 2.0);
87 joint_->position_ = act->state_.position_ / 2.0;
88 joint2_->position_ = act->state_.position_ / 2.0;
90 joint_->velocity_ = act->state_.velocity_ / 2.0;
91 joint2_->velocity_ = act->state_.velocity_ / 2.0;
93 joint_->effort_ = act->state_.last_measured_effort_ / 2.0;
94 joint2_->effort_ = act->state_.last_measured_effort_ / 2.0;
std::vector< double > calibrated_sensor_values_
#define ROS_DEBUG_STREAM(args)
This is the implementation of the transmission for the joint 0s. We need a specific transmission whic...
SrMotorActuatorState motor_state_