35 using ros_ethercat_model::RobotState;
36 using ros_ethercat_model::Transmission;
50 string joint2_name = joint_->joint_->name;
51 joint2_name[joint2_name.size() - 1] =
'2';
52 joint2_ = robot->getJointState(joint2_name);
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;
bool initXml(tinyxml2::XMLElement *config, ros_ethercat_model::RobotState *robot)
ros_ethercat_model::JointState * joint2_
bool initXml(tinyxml2::XMLElement *config, ros_ethercat_model::RobotState *robot)
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_