rosrun beginner_tutorials listener.py
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 listener.py" 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
Post the contents of your listener.py file here, please. Or at least the first few lines of it.
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.
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...
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.