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

command line arguments in launch file

asked 2013-02-20 05:29:32 -0500

kalectro gravatar image


I am using pcd_to_pointcloud from perception_pcl and want to remap the output using a launch file. The problem is that it requires a pcd file as a command line argument which I do not get to work using a launch file. Is there an easy way or should I issue a pull request for a modified node which can also read a pcd file path from a parameter.


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-02-20 05:40:19 -0500

dornhege gravatar image

Did you try it? This shouldn't be a problem in general. Pass the .pcd as args in the <node> tag and do the remapping within a <remap> tag in the <node>.

If it doesn't work, something is wrong. The ROS args should be consumed by ros::init and leave the .pcd as a param.

edit flag offensive delete link more


I did try it out, but it did not work. I just tried again and it worked. It turns out I did not specify the full path for the pcd file. Thanks a lot

kalectro gravatar image kalectro  ( 2013-02-20 06:18:29 -0500 )edit

Question Tools


Asked: 2013-02-20 05:29:32 -0500

Seen: 644 times

Last updated: Feb 20 '13