ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

Can Octomap use multiple point clouds as sources?

asked 2012-09-18 06:41:37 -0500

Thomas D gravatar image

I have a laser producing a point cloud on topic /laser/points2 and a stereo camera pair producing a point cloud on topic /stereo/points2. The subscribed topics of octomap_server shows that it listens for the topic cloud_in. Currently, I am remapping with

<remap from="cloud_in" to="laser/points2"/>

If I then add

<remap from="cloud_in" to="stereo/points2"/>

then octomap_server only subscribes to /stereo/points2. Is there a way to configure octomap_server to subscribe to multiple point clouds? I realize it will be up to me to make sure that the points in the different point clouds are aligned properly through calibration, /tf, and timing offsets. Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
10

answered 2012-09-18 06:57:23 -0500

Lorenz gravatar image

updated 2012-09-18 06:58:50 -0500

I would do the remapping the other way around. Make both point clouds publish to the same topic by adding remappings to the sensor nodes.

Alternatively, you can set up a relay using the topic_tools relay. Just relay both point clouds to the same topic and remap octomap's cloud_in topic to it.

edit flag offensive delete link more

Comments

This worked, thanks. For some reason I can't accept it as an answer by clicking on the check icon, but I would if I could.

Thomas D gravatar image Thomas D  ( 2012-09-19 04:40:00 -0500 )edit

Question Tools

Stats

Asked: 2012-09-18 06:41:37 -0500

Seen: 1,546 times

Last updated: Sep 18 '12