Gazebo URDF: two axis of rotation
Hi. I'm using Ubuntu 14.04 ROS Indigo Gazebo 2.2
I'm setting up a 4-wheeled car simulation in Gazebo which should be able to interact with ROS. For that I want to have joints at the front wheels which allow them to rotate to travel forward as well as to be steered. Therefor the wheel-hinge-joint should have two axes of rotation which are perpendicular to each other.
How can I accomplish this?
I couldn't find any suitable joints in the URDF-ROS-Documentation.
Thanks
Asked by nikku on 2016-11-18 17:13:10 UTC
Comments
Usually you would create one joint first, then create an infinitesimally small link, then the second joint.
Asked by JoshMarino on 2016-11-18 22:28:35 UTC
Thanks. I will try that!
Asked by nikku on 2016-11-19 01:04:51 UTC
No need for an "infinitesimally small link", just make two joints that are at a 90 degree offset to each other.
So what kind of joint would you have liked to see? You wrote it yourself: it's just two revolute joints :).
Asked by gvdhoorn on 2016-11-19 04:57:31 UTC
Implemented in Gazebo SDF with revolute2 joint.
Asked by JoshMarino on 2016-11-19 07:36:39 UTC
Well, yes. But that is SDF, not URDF. And that is also 'just' two revolute joints at an angle. From the SDF spec page:
so that is just a bit of convenience.
Asked by gvdhoorn on 2016-11-19 09:12:45 UTC