Closed IST-DEV20 closed 3 years ago
@IST-DEV20, this is likely a problem in your setup. Check if the lidars are published to the correct topic and with data and also if you have your base_link
to odom
tf being updated as you move the robot.
@jcmonteiro, topic and data is look good but when I launch /slam2d_ros I can't echo tf between base_link
to odom
my tf tree
my /scan topic
Could you share your roslaunch configuration and the rosnode graph?
@jcmonteiro this is my launch of slam2d_ros.launch
`
<?xml version="1.0"?>
Is the scan_topic
defined somewhere else?
` <?xml version="1.0"?>
`
And are you changing the topic by passing the argument to the launch? Are you really publishing to /scan
?
@jcmonteiro, Sorry for reply rate. Update I fixed problem by set parameter /use_sim_time
to false
cause when I launch with real hardware and set /use_sim_time
to true
no topic sim_time.
Thank you for your help and support
Ooh, missed that one in your launch file. In practice, you should avoid use_sim_time
in "inner" launch files and have it only in a top-level launch that calls for the others.
How to fix this no map publish when use with real hardware? (can be used with gazebo)