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

Revision history [back]

I know this is a late addition, but the fix I had for this was to have a launch file that specified the env var ROSCONSOLE_CONFIG_FILE for the node that needed to run with debugging

if you had a package my_node

<launch> <node pkg="my_node" type="first_node" name="first_node"/> <env name="ROSCONSOLE_CONFIG_FILE" value="$(find my_node)/launch/rosconsole.config"/>
<node pkg="my_node" type="second_node" name="second_node"/> </launch>

The second node would have the logging enabled for the level you requested in $(rospack find my_node)/launch/rosconsole.config

I know this is a late addition, but the fix I had for this was to have a launch file that specified the env var ROSCONSOLE_CONFIG_FILE for the node that needed to run with debugging

if you had a package my_node

my_node

<launch> <node pkg="my_node" type="first_node" name="first_node"/> name="first_node" /> <env name="ROSCONSOLE_CONFIG_FILE" value="$(find my_node)/launch/rosconsole.config"/>
<node pkg="my_node" type="second_node" name="second_node"/> </launch>

name="second_node" /> </launch>

The second node would have the logging enabled for the level you requested in $(rospack find my_node)/launch/rosconsole.config

I know this is a late addition, but the fix I had for this was to have a launch file that specified the env var ROSCONSOLE_CONFIG_FILE for the node that needed to run with debugging

if you had a package my_node my_node

<launch> <node pkg="my_node" type="first_node" name="first_node" /> name="first_node"/> <env name="ROSCONSOLE_CONFIG_FILE" value="$(find my_node)/launch/rosconsole.config"/>
<node pkg="my_node" type="second_node" name="second_node" /> </launch>
name="second_node"/> </launch>

The second node would have the logging enabled for the level you requested in $(rospack find my_node)/launch/rosconsole.config

I know this is a late addition, but the fix I had for this was to have a launch file that specified the env var ROSCONSOLE_CONFIG_FILE for the node that needed to run with debugging

if you had a package my_node

<launch>
  <node pkg="my_node" type="first_node" name="first_node"/>
  name="first_node" />
  <env name="ROSCONSOLE_CONFIG_FILE" value="$(find my_node)/launch/rosconsole.config"/> 
<node pkg="my_node" type="second_node" name="second_node"/> </launch>

name="second_node" /> </launch>

The second node would have the logging enabled for the level you requested in $(rospack find my_node)/launch/rosconsole.config