Hi,
Installed ROS melodic and rosbot_description per direction at rosbot_description/README.md at master · husarion/rosbot_description · GitHub.
Then, ran these for rosbot gazebo world with:
In Terminal 1, launch the Gazebo simulation:
$ source ~/catkin_ws/devel/setup.sh
$ roslaunch rosbot_description rosbot_rviz_gmapping.launch
Output:
opens gazebo with objects
opens rviz with rosbot. Changed laserscan topic from /rosbot/laser/scan to /scan
Problem
See flat map
laser scan data is not visible and does not show (help!)
Also, ran rostopic echo /scan results with
ranges: [ -inf, -inf.... , -inf]
intensities: [1.0, 1.0, 1.0, ... 1.0]
In Terminal 2, start teleop and drive the ROSbot, observe in Rviz as the map is created:
$ source ~/catkin_ws/devel/setup.sh
$ roslaunch rosbot_navigation rosbot_teleop.launch
NOTE: used this to move the rosbot in gazebo
Help: laserscan data is not visible in rviz and map is flat like the grid.
Thanks
Vineet