ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

X-Y axes for UR5 appear reversed

asked 2022-09-02 13:54:44 -0500

CroCo gravatar image

I'm trying to test a kinematic controller that relies on UR5 DH parameters. I'm using UR5 model in universal_robot and the classical DH parameters. The controller works but there is just one problem. The x-y axes are reversed. If I send 0.5i+0.5j+0.5k, the rviz shows -0.5i-0.5j+0.5k, see the below picture. You can see the the arm is going in the opposite direction of the x-y axes. How can I rectify this issue? I'm using Gazebo 9 and Melodic to simulate the robot. I really appreciate your help and feedback.

image description.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-10-17 09:58:34 -0500

Mike Scheutzow gravatar image

There are many different "families" of quaternion (not sure if family is the right word.) The family used by DH is different from the one that is used by ros, so they are not directly compatible. You need to convert the DH quaternion to get the equivalent ros quaternion.

edit flag offensive delete link more

Comments

DH method represents the orientation as a Rotation matrix not quaternion, but I think you are right in the way tf tree is structured differs from the DH method. This deprives me from visualizing the frame of the end-effector sadly since modelling manipulators heavily rely on DH. Do you know how the tf internally constructs the tree? Thank you.

CroCo gravatar image CroCo  ( 2022-10-17 14:34:15 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2022-09-02 13:54:44 -0500

Seen: 113 times

Last updated: Oct 17 '22