No module named srv
I was following the tutorial WrittingServiceClient(Python). I have typed the code as it is. The project "makes" properly also, but when I try to rosrun the server or the client the following error shows:
from beginner_tutorials import * ImportError: No module named srv
Where am I going wrong? How to create the module srv?
N.B.: I have followed the tutorial "Creating a ROS msg and srv" and the srv file exists inside the beginner_tutorials/srv
Did you sort it out? I am having exactly the same problem...
I encounter the same problem right now, has anybody found why it happens ?
In my case, I had to
source
thedevel/setup.bash
in each instance of the console I was calling the scripts from. Once for the client, once for the server. Then, it worked for me.