Recently, I have been trying to display a Lidar in Gazebo. However, I am completely new to ROS, so it is difficult for me to understand everything. With the help of several tutorials, trial and error, and other resources, I have managed to display a small vehicle with a Lidar on it in Gazebo. For further analysis, I also want to generate measurements and displays. I saw in a GitHub repository of the Livox Laser scanner that it is displayed using RVIZ.
So, my question is: How can I display the point cloud of my simulated Lidar (e.g., in RViz) and possibly measure distances or other parameters?
If necessary, I can post my code for it.
Thank you!
Im running Ros 18.04 - melodic ; gazebo version 9.0.0 ; rviz version 1.13.29
I tried to write a proper plugin to get those "Topics" needed in RViz. However, neither my robot_model, nor my lidarscan is shown in RViz.
Also i tried to write a .launch-file for launching both gazebo and Rviz simultaneously, but i coundn't get this to work as well. I was hoping that through the parallel launch I could select and display the different topics.