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
exploration_request = navigation().Request

that is not the correct type for a Python ROS Service request.

It should probably be navigationRequest.

PS: ROS naming conventions are actually to CamelCase service definitions, so Navigation would be better (although it's still way too generically named).

exploration_request = navigation().Request

that is not the correct type for a Python ROS Service request.

It should probably be navigationRequest.

PS: ROS naming conventions are actually to CamelCase service definitions, so Navigation would be better (although it's still way too generically named).


Edit: you've probably seen it, but just to make sure: Writing a Simple Service and Client (Python) - Writing the Client Node.

exploration_request = navigation().Request

that is not the correct type for a Python ROS Service request.

It should probably be navigationRequest.

PS: ROS naming conventions are actually to CamelCase service definitions, so Navigation would be better (although it's still way too generically named).


Edit: you've probably seen it, but just to make sure: Writing [Writing a Simple Service and Client (Python) - Writing the Client Node.Node](http://wiki.ros.org/ROS/Tutorials/WritingServiceClient(python)#rospy_tutorials.2BAC8-Tutorials.2BAC8-WritingServiceClient.Writing_the_Client_Node).

exploration_request = navigation().Request

that is not the correct type for a Python ROS Service request.

It should probably be navigationRequest.

PS: ROS naming conventions are actually to CamelCase service definitions, so Navigation would be better (although it's still way too generically named).


Edit: you've probably seen it, but just to make sure: [Writing a Simple Service and Client (Python) - Writing (Python)](http://wiki.ros.org/ROS/Tutorials/WritingServiceClient(python)). Section 1.1 shows how to instantiate a Response, but the Client Node](http://wiki.ros.org/ROS/Tutorials/WritingServiceClient(python)#rospy_tutorials.2BAC8-Tutorials.2BAC8-WritingServiceClient.Writing_the_Client_Node).principle is the same for Requests.

exploration_request = navigation().Request

that is not the correct type for a Python ROS Service request.

It should probably be navigationRequest.

PS: ROS naming conventions are actually to CamelCase service definitions, so Navigation would be better (although it's still way too generically named).


Edit: you've probably seen it, but just to make sure: [Writing a Simple Service and Client (Python)](http://wiki.ros.org/ROS/Tutorials/WritingServiceClient(python)). Section 1.1 shows how to instantiate a Response, but the principle is the same for Requests.


Edit2:

from kuri_msgs.srv import navigation

Just add the Request type to this line, something like:

from kuri_msgs.srv import navigation, navigationRequest

like you do in the Controller_Service file.