I am trying to create a mecanum wheels by attaching each pinion as a joint to a wheel in URDF. For this, I have rotated the pinion 90 degree(pitch) and 45 degree(yaw). When i am doing these rotations individually, things are perfect but when i am combining these, the yaw (after pitch) is rotating as if its roll. Also Roll is also working as expected.
After looking on the internet, I found this issue is something called gimble lock. If this is such a common issue, i was not able to find other similar issues related to ros2 joints.
QUESTIONS:
- Quaternions require 4 variables to describe, how can I use Quaternions in joint tag(origin)(ros2 URDF) which only has roll, pitch and yaw?
- The obvious solution is to use quaternions but is there any other way to handle this specifically with ros2 joints?
Ignore the bottom wheel. Don't know why its behaving this way.
