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

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

asked 2019-06-10 11:06:06 -0500

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"/>
</group>
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

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

tahsinkose gravatar image

Hi.

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

Question Tools

1 follower

Stats

Asked: 2019-06-10 11:06:06 -0500

Seen: 183 times

Last updated: Jan 17 '20