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

This is really not ROS specific, but what about print(..) or sys.stdout.write(..)?

This is really not ROS specific, off-topic, but what about print(..) or sys.stdout.write(..)?

This is really not a bit off-topic, but what about print(..) or sys.stdout.write(..)?

This is really a bit off-topic, but what about print(..) or sys.stdout.write(..)?


Edit:

<node name="compass1" pkg="nodos_creados" type="FurunoCompassNode.py" respawn="true" />

Try adding output="screen". Without that, the stdout of your node will not end up on your console. Which is probably why you don't see any output when using print(..) or sys.stdout.write(..).

This is really a bit off-topic, but what about print(..) or sys.stdout.write(..)?


Edit:

<node name="compass1" pkg="nodos_creados" type="FurunoCompassNode.py" respawn="true" />

Try adding output="screen". Without that, the stdout of your node will not end up on your console. Which is probably why you don't see any output when using print(..) or sys.stdout.write(..).

See also wiki/roslaunch/XML/node - Attributes:

output="log|screen"(optional)

If 'screen', stdout/stderr from the node will be sent to the screen. If 'log', the stdout/stderr output will be sent to a log file in $ROS_HOME/log, and stderr will continue to be sent to screen. The default is 'log'.

And for instance How can I get my cout output on the console with roslaunch.