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

looking for the package in yaml file

asked 2019-02-07 04:31:20 -0500

femust gravatar image

updated 2019-02-07 05:19:35 -0500

gvdhoorn gravatar image

Hey,

Is there a way to look through yaml file a path to a file?

So basically I'd like to do something like this.

I have launch file:

<launch>
  <node pkg="123" type="1234" name="1234">
    <param name = "fileOut"       value = "output.pcd" />
    <param name = "folder_path"   value = "$(find pcjoiner)/point_clouds/" />
  </node>
</launch>

and I'd like to $(find pcjoiner)/point_clouds/ place in yaml file. So to have it very flexible? Maybe it doesn't make sense? What do you think?


Edit: So in my case in yaml file should I have:

parameter1:$(find package)/folder/folder2/folder3

or

parameter1: package 
parameter2: /folder/folder2/folder3

?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2019-02-07 04:34:33 -0500

gvdhoorn gravatar image

updated 2019-02-07 05:20:12 -0500

This should be supported by roslaunch if you use rosparam with the subst_value set to true.


Edit:

Edit: So in my case in yaml file should I have:

parameter1:$(find package)/folder/folder2/folder3

Yes, according to the docs I linked, that should work.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2019-02-07 04:31:20 -0500

Seen: 1,295 times

Last updated: Feb 07 '19