In Unit 6, both in the quiz and 6.8, I keep getting this message and the corresponding error:
user:~/catkin_ws$ rosrun my_custom_srv_msg_pkg custom_service_server.py
Traceback (most recent call last):
File “/home/user/catkin_ws/src/my_custom_srv_msg_pkg/custom_service_server.py”, line 4, in
from my_custom_srv_msg_pkg.srv import MyCustomServiceMessage, MyCustomServiceMessageResponse
ModuleNotFoundError: No module named ‘my_custom_srv_msg_pkg’
user:~/catkin_ws$ roscd src
roscd: No such package/stack ‘src’
I ran through the steps multiple times from the scratch. I am sure that I have the necessary executables, the files, correct xml and launch files.
Hello,
have sourced with
source devel/setup.bash?
Greetings.
Yes, many times.
Kindest regards.
Quite strange. Looks like there’s an error hidden somewhere. Please recompiling the workspace:
cd ~/catkin_ws
rm -rf build/ devel/
catkin_make
source devel/setup.bash
After checking the file integrity, I implemented this compiling. It sorted out the confusion within the system. Thank you very much for your suggestion.
1 Like
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
