Calling a third party service on a client
I'm trying to write a service client in python to enable_motors
of hector_quadrotor
. I would like to turn on engine on my code instead of doing that by invoking the provided service
In Writing the Client Node tutorial it is used rospy.ServiceProxy
. However, this method needs the service type which is implemented on the server side, which I don't have access.
My doubt is: How can I call a service that was defined by a third part?
It is similar to that question, I'm coding in python
not in C++ though:
https://answers.ros.org/question/201617/how-to-call-a-service-inside-a-node/
EDIT: In my case it gets:
motors_on = rospy.ServiceProxy('enable_motors', hector_uav_msgs/EnableMotors)
TypeError: unsupported operand type(s) for /: 'module' and 'type'
and results on the error above