Closed MaltheT closed 2 years ago
http://docs.ros.org/en/noetic/api/nav_msgs/html/msg/OccupancyGrid.html
Please read the message definitions. -1
is unknown space, because there hasn't been sensor measurements yet to mark that space as obstacles or raytrace them as freespace yet with the given sensor readings. You have to move your robot to new vantage points for new data to be processed into the map.
Thanks a lot for the fast reply - this solved the issue!
Required Info:
Steps to reproduce issue
Hello, I want to use slam_toolbox for a project. However, I'm having an issue where slam_toolbox is producing only a single image when I start it. If I echo /map topic I get the following output:
This is what it looks like in rviz2:
I'm not getting any feedback from the slam_toolbox node as to what is causing the problem. I've been trying to look through the code to see if I could pinpoint what is producing the -1 values, with no luck thus far.
Any idea why this is happening?
Expected behavior
slam_toolbox node continuously generating images of the environment and publishing values in range [0, 100] to /map/data topic.
Actual behavior
slam_toolbox node generating only a single image on startup. Afterwards producing only -1 (unknown) values to /map/data topic.
Additional information
I'm using robot_localization package to generate odom_1->base_link1 transform. I'm using static TF publishers to generate base_link1->imu1 and base_link1->laser_frame.
My slam_toolbox configuration file looks like this:
And the launch file I'm using to start the slam_toolbox node is the following:
Please let me know if you need more information from me - or if I should move the question to a different forum/location.
Thanks!