127 const std::vector<double>& joint_reduction,
128 const std::vector<double>& joint_offset);
138 const std::vector<double>& joint_reduction,
139 bool ignore_transmission_for_absolute_encoders =
false,
140 const std::vector<double>& joint_offset = std::vector<double>(2, 0.0));
239 const std::vector<double>& joint_reduction,
240 const std::vector<double>& joint_offset)
245 const std::vector<double>& joint_reduction,
246 const bool ignore_transmission_for_absolute_encoders,
247 const std::vector<double>& joint_offset)
248 : act_reduction_(actuator_reduction),
249 jnt_reduction_(joint_reduction),
250 jnt_offset_(joint_offset),
251 ignore_transmission_for_absolute_encoders_(ignore_transmission_for_absolute_encoders)
278 *jnt_data.
effort[0] = jr[0] * (*act_data.
effort[0] * ar[0] + *act_data.
effort[1] * ar[1]);
279 *jnt_data.
effort[1] = jr[1] * (*act_data.
effort[0] * ar[0] - *act_data.
effort[1] * ar[1]);
351 *act_data.
effort[0] = (*jnt_data.
effort[0] / jr[0] + *jnt_data.
effort[1] / jr[1]) / (2.0 * ar[0]);
352 *act_data.
effort[1] = (*jnt_data.
effort[0] / jr[0] - *jnt_data.
effort[1] / jr[1]) / (2.0 * ar[1]);
379 *act_data.
position[0] = (jnt_pos_off[0] * jr[0] + jnt_pos_off[1] * jr[1]) * ar[0];
380 *act_data.
position[1] = (jnt_pos_off[0] * jr[0] - jnt_pos_off[1] * jr[1]) * ar[1];