rosrun beginner_tutorials

asked 2019-09-10 06:47:13 -0600

yassine gravatar image

Hello everyone, I'm using ubuntu 16.04 along with ROS kinetic and python for writing nodes. I'm still a beginner with ROS. I'm doing "Writing a Simple Publisher and Subscriber (Python)" tutorial and when I type "rosrun beginner_tutorials" in the terminal. (of course after running the talker node). I get the following result instead of the expected one :

Python 2.7.12 (default, Nov 12 2018, 14:36:49) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information.

Can anyone identify the problem.

Thank you

edit retag flag offensive close merge delete


Post the contents of your file here, please. Or at least the first few lines of it.

peci1 gravatar imagepeci1 ( 2019-09-10 06:55:06 -0600 )edit

That's just one of the standard startup notices produced by python, it's not an error and your node should be running successfully after that has been printed on the screen.

PeteBlackerThe3rd gravatar imagePeteBlackerThe3rd ( 2019-09-10 07:24:05 -0600 )edit

Isn't it so that this is only written out if the python runs in interactive mode? I've never seen this message launching my python nodes...

peci1 gravatar imagepeci1 ( 2019-09-10 07:30:12 -0600 )edit

That's true. The only thing I can think of is that rosrun is somehow getting a blank node name, meaning that python starts in interactive mode.

PeteBlackerThe3rd gravatar imagePeteBlackerThe3rd ( 2019-09-10 09:33:44 -0600 )edit