RVIZ: Wheel transforms not turning when using joint state controllers

asked 2018-03-24 06:21:43 -0600

mindthomas gravatar image

updated 2018-03-27 11:06:10 -0600

I have an RC car in Gazebo made up of several links and joints. The two front wheels are attached with a steering joint (revolute) and all wheels are attached with continous joints. On the front wheels and for the steering joints transmissions and effort controllers have been added - NOTE: only on the front wheels!

I have finally managed to get my car moving after solving an inertia related problem. However I am not sure that my car is really working properly, because if I look at the TF's in RVIZ the front wheel TF's are not really rotating even though the car is moving based on a control input, causing the front wheels to move. However the steering angle is shown correctly in RVIZ and seems to match Gazebo.

  1. Why does the front wheels (with transmission and controllers attached) not turn when the car is indeed driving due to these wheels turning? Front wheels not rotating in RVIZ

  2. Why are the rear wheel TF's not published when there is no transmission attached to them? Would I have to publish these from Gazebo manually (eg. I tried making a script which takes the Gazebo pose of the wheels and then publishes it as a TF from map to the wheel link)? Rear wheel TF's not published

If you want to try it out yourself the project can be downloaded here: https://github.com/mindThomas/JetsonC...

Best regards, Thomas Jespersen

edit retag flag offensive close merge delete


Awesome written question, just a slight problem. When I cloned the repository and started gazebo.launch I had all four wheels turning. Btw, do you see the wheels turning when you set "wireframe" view in gazebo?

Humpelstilzchen gravatar image Humpelstilzchen  ( 2018-03-26 04:07:52 -0600 )edit

So you mean that it is working as intended? You don't see the problem as shown in the screencaptures?

mindthomas gravatar image mindthomas  ( 2018-03-27 11:05:07 -0600 )edit

yes indeed

Humpelstilzchen gravatar image Humpelstilzchen  ( 2018-03-27 11:55:05 -0600 )edit