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

See my answer to a similar question here: http://answers.ros.org/question/35283/nested-substitution-args-in-launch-files/?answer=236054#post-id-236054

This is now made possible by a feature added to roslaunch version 1.12.1, released April 18, 2006. (ATM the debian repos are at version 1.12.0, so you'll either have to wait or download the github sources)

roslaunch 1.12.1 adds support for evaluation of arbitrary python expressions using the syntax $(eval <expression>). With this change, the following is possible:

<include file="$(eval find(env('ROBOT_TYPE') + '_config') + '/launch/planning_config.launch')">
click to hide/show revision 2
No.2 Revision

See my answer to a similar question here: http://answers.ros.org/question/35283/nested-substitution-args-in-launch-files/?answer=236054#post-id-236054

This is now made possible by a feature added to roslaunch version 1.12.1, released April 18, 2006. 2016. (ATM the debian repos are at version 1.12.0, so you'll either have to wait or download the github sources)

roslaunch 1.12.1 adds support for evaluation of arbitrary python expressions using the syntax $(eval <expression>). With this change, the following is possible:

<include file="$(eval find(env('ROBOT_TYPE') + '_config') + '/launch/planning_config.launch')">