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

command line arguments in launch file

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

kalectro gravatar image

Hi,

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.

Kai

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

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

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

Comments

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 -0600 )edit

Question Tools

Stats

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

Seen: 661 times

Last updated: Feb 20 '13