ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I still do not know what is happening, since it seems that turning_robot.py can load other .srv without problems, but I have been able to solve the issue. I have changed in turning_robot.py
from turn_robot.srv import TurnRobotService, TurnRobotServiceResponse
for
from turn_robot.srv import *
And now it works
2 | No.2 Revision |
Edited:
It seems the problem is in the unittesting, since I still do not know what can rosrun without problems. So it is happening, since it seems that turning_robot.py can load other .srv without problems, but definitely a problem of paths.
Anyway, I have somehow been able to solve the issue.
problem
I have changed in turning_robot.py
from turn_robot.srv import TurnRobotService, TurnRobotServiceResponse
for
from turn_robot.srv import *
And now it worksworks. It is not the best solution since I don't like to import classes that I really don't need, but I have been unable to find any other solution