rock-gazebo / simulation-rock_gazebo

Main package that deals with the integration of Rock and Gazebo
Other
0 stars 1 forks source link

rock-gazebo should ensure that the spherical coordinates heading is rotated by 90 degrees #4

Open doudou opened 6 years ago

doudou commented 6 years ago

In order for Gazebo to use NWU for e.g. GPSes, one need to have a <heading_deg>90</heading_deg> tag in the world. This is more or less a requirement if one wants to use georeferenced coordinates in a Gazebo environment linked to Rock.

So far, the system will misbehave silently if this is not done, I see two possibilities to improve the situation:

doudou commented 6 years ago

@GuilhermePSC @alexfneves this is why the GPS output is not NWU. You need to add <heading_deg>90</heading_deg> to the spherical coordinates block to fix it. I won't do it myself as it needs to be synchronized with the removal of the workaround you implemented.

alexfneves commented 6 years ago

It worked! We added the 90 on the sdf file and removed the task we were using to convert the gps data into xyz in gazebo.

I don't know why, the NWU didn't seem to work on gazebo, while 90 did the trick. The sdf documentation actually tell us to use -90 deg with default ENU on the orientation, but the 90 deg that seemed right.