Robotics StackExchange | Archived questions

I am unable to create the numpy_listener node

i am using Ubuntu 14.04 LTS Indigo version, as shown in the numpy tutorial i have created the numpy_listener.py made it an executable, followed by the following commands

  1. source /opt/ros/indigo/setup.bash
  2. source ./devel/setup.bash
  3. catkin_make

after this when i type " rosrun numpytutorial numpylistener.py" (roscore is running in another terminal) i get the error " package ' numpytutorial ' not found " , even though in my catkin workspace i have a folder titled numpytutorial with the numpy_listener.py file inside it

Asked by Shardul Rautmare on 2015-07-01 09:15:27 UTC

Comments

Can you post the output of echo $ROS_PACKAGE_PATH when you experience this problem (please edit your question)? Also, do you have an error when sourcing any of the setup.bash files?

Asked by mgruhler on 2015-07-03 01:34:56 UTC

Answers

In step 2 you should be sourcing devel/setup.bash, not executing it.

Asked by Dan Lazewatsky on 2015-07-01 10:29:11 UTC

Comments

Just to clarify: there should be a single space between . and devel/setup.bash. Clearer is perhaps to use source devel/setup.bash.

Asked by gvdhoorn on 2015-07-01 10:46:03 UTC

sorry, Dan , i made a mistake while writing the commands in the question... i had written source in front of command 2. i had used the same process for executing the rospy tutorial on creating a talker and a listener and it was successful

Asked by Shardul Rautmare on 2015-07-02 21:15:23 UTC