ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I believe the problem was the executable python file and included class were the same name as the package, so instead of trying to import from the package's srv directory it was trying to find a module within my defined class named srv, which it could not find.

Moral of the story, don't create python classes within .py files which are the same name as the ros package.

"rosrun name name.py" where "name.py" contains a class called "name" is a no-no