Package org.hypermedea.ros
Class ROSSendGoalOperation
java.lang.Object
org.hypermedea.op.BaseOperation
org.hypermedea.ros.ROSOperation
org.hypermedea.ros.ROSSendGoalOperation
- All Implemented Interfaces:
org.hypermedea.op.Operation
-
Field Summary
Fields inherited from class org.hypermedea.ros.ROSOperation
DEFAULT_MESSAGE_TYPE, topicFields inherited from class org.hypermedea.op.BaseOperation
DEFAULT_TIMEOUT, form, operationStarted, payload, targetFields inherited from interface org.hypermedea.op.Operation
DELETE, GET, METHOD_NAME_FIELD, PATCH, POST, PUT, WATCH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetTopicName(String path) Map the path element of the operation's target URI to a ROS topic.protected voidPublish payload wrapped in a message with auto-generatedGoalIDto thegoaltopic of the action server declared in form.Methods inherited from class org.hypermedea.ros.ROSOperation
buildJson, getDefaultMessageType, parseJson, parseJsonNumberMethods inherited from class org.hypermedea.op.BaseOperation
end, getForm, getMethod, getPayload, getResponse, getTargetURI, isAsync, isIdempotent, isSafe, onError, onResponse, registerResponseCallback, sendRequest, setPayload, setPayload, setTimeout, toString, unregisterResponseCallback
-
Constructor Details
-
ROSSendGoalOperation
-
-
Method Details
-
sendSingleRequest
Publish payload wrapped in a message with auto-generated
GoalIDto thegoaltopic of the action server declared in form. The response returned to the caller includes a link to the on-going action, for querying and cancellation (action ID given as URI fragment).The current implementation returns a response as soon as the action server acknowledges the request and provides a status code for it (see
ROSGetStatusOperation).- Overrides:
sendSingleRequestin classROSOperation- Throws:
IOException
-
getTopicName
Description copied from class:ROSOperationMap the path element of the operation's target URI to a ROS topic.- Specified by:
getTopicNamein classROSOperation- Parameters:
path- path of the target URI declared in the input form- Returns:
- a full topic name for the operation
-