43 using ros_ethercat_model::Transmission;
44 using ros_ethercat_model::RobotState;
53 bool SimpleTransmissionForMuscle::initXml(TiXmlElement *elt, RobotState *robot)
55 if (!SimpleTransmission::Transmission::initXml(elt, robot))
60 string act_name = actuator_->name_;
63 actuator_->name_ = act_name;
64 actuator_->command_.enable_ =
true;
69 void SimpleTransmissionForMuscle::propagatePosition()
72 joint_->position_ = act->state_.position_;
73 joint_->velocity_ = act->state_.velocity_;
84 void SimpleTransmissionForMuscle::propagateEffort()
87 act->command_.enable_ =
true;
94 double valve_0 = fmod(joint_->commanded_effort_, 0x10);
95 int8_t valve_0_tmp = (int8_t) (valve_0 + 0.5);
102 int8_t valve_1_tmp = (int8_t) (((fmod(joint_->commanded_effort_, 0x100) - valve_0) / 0x10) + 0.5);
103 if (valve_1_tmp >= 8)
SrMuscleActuatorState muscle_state_
SrMuscleActuatorCommand muscle_command_