I modified CMakeLists.txt and package.xml. And also I did run source devel/setup.bash.
But when I run “custom_service_server.py”, I keep getting errors.
(my_custom_srv_msg_pkg/MyCustomServiceMessage is created)
ImportErrorTraceback (most recent call last)
in ()
2
3 import rospy
----> 4 from my_custom_srv_msg_pkg.srv import MyCustomServiceMessage, MyCustomServiceMessageResponse # you import the service message python classes
5 # generated from MyCustomServiceMessage.srv.
6
ImportError: No module named my_custom_srv_msg_pkg.srv