Gazebo | Ignition | Community
Ask Your Question
0

GPS in gazebo simulation

asked 2015-06-08 05:51:31 -0600

TJAN gravatar image

updated 2015-06-08 05:55:57 -0600

Hello,

I got a robot model with an IMU that works and I want to fuse that with the ros package robot_localization. Now I want to add GPS data to fuse it with the IMU data. But I can't get it to work. Currently I get this error:

Sensor[gps] is attempting to load a plugin, but detected an incorrect plugin type. Plugin filename[libhectorgazeborosgps.so] name[name_gps]

This is the code, the format is sdf and based on the tutorial:

<sensor name="gps" type="gps">
<plugin name="name_gps" filename="libhector_gazebo_ros_gps.so">
<alwayson>1</alwayson>
<updaterate>10.0</updaterate>
<bodyname>basefootprint</bodyname>
<topicname>fix</topicname>
<velocitytopicname>fix
velocity</velocitytopicname>
<drift>5.0 5.0 5.0</drift>
<gaussiannoise>0.1 0.1 0.1</gaussiannoise>
<velocitydrift>0 0 0</velocitydrift>
<velocitygaussiannoise>0.1 0.1 0.1</velocitygaussiannoise>
</plugin> </sensor>

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-06-08 18:37:38 -0600

nkoenig gravatar image

According to the source code the hector gps plugin is a model plugin. This means the SDF plugin specification should be a child of <model>. Your code snippet has the plugin a child of <sensor>.

edit flag offensive delete link more

Comments

Thanks, it worked!

TJAN gravatar imageTJAN ( 2015-06-10 03:11:55 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-06-08 05:51:31 -0600

Seen: 8,051 times

Last updated: Jun 08 '15