This video explains how to integrate Laser Scan plug-in with a ROS robot simulated by Gazebo. Visualization of laser scan in Gazebo & laser topic data in Rviz is also explained.
The code discussed is a simple stand-alone example. It was tested with ROS Kinetic & Gazebo 7 running on Ubuntu 16.04.
Instructions
First, clone or pull the example code from my git repository. And create ROS package files on top of source files.
1 2 3 4 | git clone https://bitbucket.org/kiranpalla/learn-ros cd learn-ros/using-gazebo-laser-scan/src catkin_create_pkg mybot cd .. |
Build ROS package and add it to ROS search path.
1 2 | catkin_make source devel/setup.sh |
Launch the example.
1 | roslaunch mybot mybot.launch |