Robotics StackExchange | Archived questions

looking for the package in yaml file

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

?

Asked by femust on 2019-02-07 05:31:20 UTC

Comments

Answers

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.

Asked by gvdhoorn on 2019-02-07 05:34:33 UTC

Comments