import error no module named srv
I am struggling to progress the error (below) which I have encountered when completing this part of the tutorial link text
I'm not sure why the script I have literally copied over won't work. I have spent an hour or so trying to figure it out but can't solve it..
The code message:
danny@danny:~/catkin_ws$ rosrun beginner_tutorials add_two_ints_server.py
Traceback (most recent call last):
File "/home/danny/catkin_ws/src/beginner_tutorials/scripts/add_two_ints_server.py", line 3, in <module>
from beginner_tutorials.srv import *
ImportError: No module named srv
danny@danny:~/catkin_ws$
After compile your package/service with
catkin_make
, try tosource catkin_ws/devel/setup.bash
and see if it works.