I need help making/building a catkin package.
Let me start off by saying that I have read the tutorials on how to make a package and how to build it, but I seem to be too stupid to get it right because it never works. I am running ros groovy on Ubuntu 12.04lts. This is what I am trying to do, build a package that can be started by a launch file. The package is a python script that reads a serial line form a arduino and publishes it on a ros topic. The package that I want to make is all based around "encoder_feedback.py". After I build the package, I try to run it with
walle@wallebase:~/catkin_ws$ rosrun encoder_feedback encoder_feedback.py
Traceback (most recent call last):
File "/home/walle/catkin_ws/src/encoder_feedback/scripts/encoder_feedback.py", line 4, in <module>
import rospy
File "/opt/ros/groovy/lib/python2.7/dist-packages/rospy/__init__.py", line 49, in <module>
from .client import spin, myargv, init_node, \
File "/opt/ros/groovy/lib/python2.7/dist-packages/rospy/client.py", line 46, in <module>
import yaml
ImportError: No module named yaml
What do I need to do to build a working package? Let me know if I need to post the .py code or include more info. Thanks for any help you can give.
Do you have a run_depend for python-yaml in your
package.xml
?No I don't. just <build_depend>std_msgs</build_depend><build_depend>rospy</build_depend><run_depend>std_msgs</run_depend><run_depend>rospy</run_depend>
All I am importing is import serial import time import rospy from std_msgs.msg import Int32