This is the ROS plugin for gpu_laser sensor
Steps to use this plugin:
- Clone
common_msgs
for melodic and compile it using the command
catkin_make --only-pkg-with-deps common_msgs
source devel/setup.bash
- Compile the
gazebo_laser_plugin
package using the command,
catkin_make --only-pkg-with-deps gazebo_laser_plugin
source devel/setup.bash
- Launch the launch file using the command,
roslaunch gazebo_laser_plugin launch_gpu_ros.launch
- After Step 5, we can see gazebo is up with the laser and few obstacles(but cannot see the laser signals yet though, need to check)
- Launch RViz in another terminal using the command,
cd <path_to_gpu_laser_plugin_ws>
source devel/setup.bash
rviz
- Add the
laser_scan
topic and change the frame toworld
orlaser_sensor
on RViz. You can now see the laser scans on RViz - We can also get the laser scan data using
rostopic echo /laser_scan