Ask Your Question

env command doesn't work in <group if> block

asked 2019-06-10 11:06:06 -0600

Mika gravatar image

Hi. I'm trying to setup logger level using custom argument in launch file. But it seems doesn't work. For example here is a code below, printing Hello World, without affecting login level. Outside this block command works fine. ROS Kinetic

<group if="$(arg debug)">
    <node name="pub_text" pkg="rostopic" type="rostopic"
          args="pub /msg std_msgs/String 'Hello world'"
          output="screen" />
    <node name="print_text" pkg="rostopic" type="rostopic"
          args="echo /msg" output="screen" />

    <env name="ROSCONSOLE_CONFIG_FILE" value="$(find node_name)/config/rosconsole_debug.config"/>
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-01-17 13:04:58 -0600

tahsinkose gravatar image


You can achieve that with:

<env name="ROSCONSOLE_CONFIG_FILE" value="$(find node_name)/config/rosconsole_debug.config" if="$(arg debug)"/>
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2019-06-10 11:06:06 -0600

Seen: 129 times

Last updated: Jan 17 '20