ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
This is really not ROS specific, but what about print(..)
or sys.stdout.write(..)
?
2 | No.2 Revision |
This is really not ROS specific, off-topic, but what about print(..)
or sys.stdout.write(..)
?
3 | No.3 Revision |
This is really not a bit off-topic, but what about print(..)
or sys.stdout.write(..)
?
4 | No.4 Revision |
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(..)
.
5 | No.5 Revision |
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.