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

Revision history [back]

click to hide/show revision 1
initial version

If the textfile really is a list, you can actually make that a list of parameters, e.g. write a yaml file like:

- topic1
- topic2
- topic3

and read in a list of parameters where you loaded that yaml in your launch.

This page gives a code snippet to read in lists of parameters.

If the textfile really is a list, you can actually make that a list of parameters, e.g. write a yaml file like:

topic_list:
 - topic1
 - topic2
 - topic3

and read in a list of parameters where you loaded that yaml in your launch.

This page gives a code snippet to read in lists of parameters.

If the textfile really is a list, you can actually make that a list of parameters, e.g. write a yaml file like:

topic_list:
 - topic1
 - topic2
 - topic3

and read in a list of parameters where you loaded that yaml in your launch.

If I name the file test.yaml and launch this test.launch:

<launch>
    <rosparam command="load" file="test.yaml" />
</launch>

It loads the parameters fine.

This page gives a code snippet to read in lists of parameters.