ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Hi, I'm not sure about your definition of the service file. A quick google search lead me to https://github.com/RobotnikAutomation/robotnik_msgs/blob/master/srv/set_odometry.srv which provides a service definition and maybe was released for kinetic, so the path would be /opt/ros/kinetic/….
My assumption is you confused the package name with the service name here. Like in the Tutorial (http://wiki.ros.org/ROS/Tutorials/WritingServiceClient%28python%29) you have to from package_name.srv import *
, so in your case from robotnik_msgs.srv import *
(even though in general just import the things you need, so SetOdometry
and SetOdometryRequest
in this case)
If the command line command rossrv show robotnik_msgs/SetOdometry
works, then the import statement of your python script should work as well.
Hope this helps.