Ask Your Question

Revision history [back]

We could do with a bit more information about your setup first. But here are my initial suggestions:

I suspect both of your lasers are publishing on the same topic. They will need different topics and different frame_ids to be shown separately in RVIZ. You'll also need to define a transformation between the frames of the two sensors, either using a URDF file or publishing a static transform.

We could do with a bit more information about your setup first. But here are my initial suggestions:

I suspect both of your lasers are publishing on the same topic. They will need different topics and different frame_ids to be shown separately in RVIZ. You'll also need to define a transformation between the frames of the two sensors, either using a URDF file or publishing a static transform.

Edit: the <launch> tag should be the first line in the file. Everything should be contained within that tag. But you'll need to add a parameter so each lidar has a different frame_id otherwise you're basically telling ROS the two lidars are in exactly the same space! Then you'll need to add a static transform publisher as I've said to define the distance between the two sensors.