rviz couldn't display laserscan data correctly
I use gazebo as my simulation tool to generate data, and rviz to visualize the data, as I put camera or pointcloud into rviz it works well, but when it comes to laserscan it dosen't. I try to look into the information of the topic of laserscan, it tells me the topic was subscribed by rviz already, I don't know where the problem is? Furthermore, I use "rostopic echo /scan" to check out the data of the topic, then ranges are all -inf and intensities are all 1.0, was that normal? What should I do? Thank you in advance
If all the range measurements of the laser scan are -inf then there are not valid measurements so there will be nothing to show in RVIZ. Is there anything blocking it's view in Gazebo or has it accidentally been placed inside an object?
No, I tried to move the robot, it still has no response as the pointcloud and camera performs well....
What sensors do you actually have in Gazebo? Where is the point cloud coming from, and where is the laser scan coming from?
I use xbot robot with camera and lidar, the point cloud subscribes the topic /camera/depth/image_raw and laser scan comes from /scan