Skip to content

Commit

Permalink
fix joint_state_feedback from cm to m (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuokamoto authored and web-flow committed Jan 15, 2024
1 parent d659279 commit e90dd21
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,8 @@ void URRRobotROS2Interface::UpdateJointState(UROS2GenericMsg* InMessage)
// UE to ROS conversion
if (joint.Value->LinearDOF == 1)
{
msg.Position.Emplace(joint.Value->Position[0]);
msg.Velocity.Emplace(joint.Value->LinearVelocity[0]);
msg.Position.Emplace(URRConversionUtils::DistanceUEToROS(joint.Value->Position[0]));
msg.Velocity.Emplace(URRConversionUtils::DistanceUEToROS(joint.Value->LinearVelocity[0]));
}
else if (joint.Value->RotationalDOF == 1)
{
Expand Down

0 comments on commit e90dd21

Please sign in to comment.