Error in running the robot_localization pkg

asked 2021-08-11 06:26:40 -0500

Delbina gravatar image

updated 2021-08-11 11:50:14 -0500

Hi everyone,

I want to use robot_localization pakages.So when i run the launch files which contain all three instances. it shows the attached error,:

..............................................................

and this is my navsat transorm parameters:

navsat_transform: frequency: 30

delay: 3.0

magnetic_declination_radians: 0.0429351

yaw_offset: 1.570796327

zero_altitude: false

broadcast_utm_transform: true

publish_filtered_gps: true

use_odometry_yaw: true

wait_for_datum: false ..................................................................................... I donot know how to set "magnetic_declination_radians" and "yaw_offset"

C:\fakepath\Error_related to navsat transform.png

FRAME:

C:\fakepath\frame.png

Would you guide me that what does it mean?

Thanks Masoumeh

edit retag flag offensive close merge delete

Comments

Seems like an error with your tf. Can you verify that a transform exists from base_link to map? Maybe post your tf tree as well here.

Akhil Kurup gravatar image Akhil Kurup  ( 2021-08-11 10:14:43 -0500 )edit

Also, are you using robot_localization real time on a robot or playing back from a bag?

Akhil Kurup gravatar image Akhil Kurup  ( 2021-08-11 10:15:21 -0500 )edit

Dear @ Akhil Kurup , thanks for your response, I run a bag file which contains a number of topics,if this works fine, in the next step i want to use rtabmap in order to provide map for robot_localization and object detection.

Delbina gravatar image Delbina  ( 2021-08-11 11:42:14 -0500 )edit

yeas, i have the tf between map and base_link (as well as base_link to map):

rosrun tf tf_echo /base_link /map

At time 1628605743.550

  • Translation: [-156.211, -271.306, -0.000]

  • Rotation: in Quaternion [0.000, 0.000, 0.951, -0.309] in RPY (radian) [0.000, -0.000, -2.513] in RPY (degree) [0.000, -0.000, -144.009]

Delbina gravatar image Delbina  ( 2021-08-11 11:58:38 -0500 )edit

Can you try setting the use_sim_time parameter to true before playing the bag?

Akhil Kurup gravatar image Akhil Kurup  ( 2021-08-11 12:00:31 -0500 )edit

where is this parameter? how can I put it in true mode?

Delbina gravatar image Delbina  ( 2021-08-11 12:29:25 -0500 )edit

You can read about what it does here and how to use it in this question.

Akhil Kurup gravatar image Akhil Kurup  ( 2021-08-11 12:42:50 -0500 )edit

Dear Akhil,

I did as follows, but again I have that error:

1) set the use_sim_time parameter to true:

rosparam set use_sim_time true

2) play the bag file with the argument --clock:

rosbag play --clock xxxx.bag
Delbina gravatar image Delbina  ( 2021-08-12 06:15:12 -0500 )edit