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

Access nodelet_manager when playing bagfile

asked 2013-02-21 13:15:53 -0500

ebeowulf gravatar image

I have a program that depends on the pointcloud_to_laserscan nodelet code. For normal access with real data, I use the following launch code:

<node pkg="nodelet" type="nodelet" name="kinect_laser_0" args="load pointcloud_to_laserscan/CloudToScan robot_camera2_nodelet_manager" respawn="true"> <remap from="cloud" to="/robot/camera2/depth_registered/points"/> <remap from="scan" to="/legs"/> </node>

I have some bagfiles for which I recorded the transformation frame, and the /robot/camera2/depth_registered/points topic. The actual rosbag command was:

rosbag record /robot/camera2/rgb/image_rect /robot/camera2/rgb/image_rect_color /robot/camera2/depth_registered/points /tf /robot_tf/camera2_rgb_optical_frame /robot_tf/camera2_rgb_frame /robot_tf/camera2_depth_frame /robot_tf/camera2/depth_optical_frame /robot_tf/base_link

But while I can play and view all of the recorded data and topics in rviz with no problems, running the CloudToScan routine doesn't seem to do anything. It doesn't generate any topics, but it doesn't throw any errors either... at least not that I can tell. I've also checked (rosrun tf view_frames), and the specified transformation space exists (/robot_tf/camera2_depth_frame). So I don't know what's going on.

My best guess is it has something to do with the nodelet manager mentioned in the CloudScan launch code (robot_camera2_nodelet_manager). Do I need to record the nodelet manager when recording the bagfile? Is that possible? Obviously, I could record the CloudScan topic, but I'm hoping to figure out the right parameters for the system, rather than having to re-record all the time.

Thanks in advance

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-02-22 06:25:51 -0500

ebeowulf gravatar image

The answer (as explained to me by a co-worker that saw my post) is to launch a nodelet manager:

<node pkg="nodelet" type="nodelet" name="local_nodelet_manager" args="manager" output="screen"/>

... and change the nodelet manager name in the launch file.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-02-21 13:15:53 -0500

Seen: 192 times

Last updated: Feb 22 '13