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

saving pcd map for ccny_rgbd package

asked 2013-03-28 05:49:34 -0500

zahid gravatar image

Hi,

I have tried the instructions on the wiki page of ccny_rgb package.

After running the following sequence of commands,

roslaunch ccny_openni_launch openni.launch publish_cloud:=true

roslaunch ccny_rgbd vo+mapping.launch

the map can be seen in rviz (sometimes it doesn't work but after restarting all nodes, it works) but after running

rosservice call /save_full_map "mymap.pcd"

it gives the following error:

ERROR: Service [/save_full_map] is not available.

However with rosservice list, a different service "/save_pcd_map" can been seen and after calling this service no error occurs but no map is saved as well.

rosservice call /save_pcd_map "mymap.pcd"

Did someone try this or have some suggestion how to save a map for this package? I tried it on Ubuntu 12.04 using ros fuerte.

Thank you in advance,

Zahid

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2013-05-15 09:01:19 -0500

usman gravatar image

I have tried it earlier and it works fine on Fuerte. You are right, the name of service has changed [Wiki-help needs to be updated].

Here is how to save the Pcd file:

rosservice call /save_pcd_map /home/your_user_name/my_map.pcd

edit flag offensive delete link more

Comments

Yes, the service name changed, but I haven't updated the wiki yet. The change was due to the fact that there are now 2 formats for the full map: pcd and octomap, hence the /save_pcd_map and /save_octomap services

Ivan Dryanovski gravatar image Ivan Dryanovski  ( 2013-05-16 14:35:14 -0500 )edit

true, it works with /save_pcd_map. I have also tried to save the octomap and it works fine as well. Thank you Usman and Ivan

zahid gravatar image zahid  ( 2013-05-21 01:25:36 -0500 )edit

Question Tools

Stats

Asked: 2013-03-28 05:49:34 -0500

Seen: 394 times

Last updated: May 15 '13