Robotics StackExchange | Archived questions

publish /gps/fix topic by libhector_gazebo_ros_gps

the robot's pose by gps. i used the hectorgazeboplugins. i use plugin tag in the urdf model:

    <robot> 
     ...
     ...
       <gazebo>
         <plugin name="hector_gps" filename="libhector_gazebo_ros_gps.so">
           <robotNamespace>/sos1</robotNamespace>
           <updateRate>50.0</updateRate>
           <bodyName>base_link</bodyName>
           <frameId>map</frameId>
           <topicName>gps/fix</topicName>
           <velocityTopicName>gps/fix_velocity</velocityTopicName>
         </plugin>
       </gazebo>
    </robot>

the topics are publishing but the latitude and longitude are fixed although the robot is moving.

and here is the frames of the robot: image description

my question is, for publishing the valid latitude and longitude, my plugin tag is enough? and if yes, so whats the problem?

some of published data in /sos1/gps/fix topic:

header: seq: 1468 stamp: secs: 5603 nsecs: 700000000 frameid: map status: status: 0 service: 0 latitude: 49.8999358331 longitude: 8.90010757962 altitude: 0.0500032459217 positioncovariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0] positioncovariancetype: 2

header: seq: 1469 stamp: secs: 5603 nsecs: 720000000 frameid: map status: status: 0 service: 0 latitude: 49.8999358331 longitude: 8.90010757961 altitude: 0.050003245824 positioncovariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0] positioncovariancetype: 2

Asked by 1997alireza on 2017-06-07 01:49:24 UTC

Comments

Answers