Package org.hypermedea.ros
Class ROSCancelOperation
java.lang.Object
org.hypermedea.op.BaseOperation
org.hypermedea.ros.ROSOperation
org.hypermedea.ros.ROSCancelOperation
- All Implemented Interfaces:
org.hypermedea.op.Operation
-
Field Summary
FieldsFields 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 message of type "actionlib_msgs/GoalID" to thecanceltopic 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
-
Field Details
-
GOAL_ID_MSG_TYPE
- See Also:
-
-
Constructor Details
-
ROSCancelOperation
-
-
Method Details
-
sendSingleRequest
Publish message of type "actionlib_msgs/GoalID" to thecanceltopic of the action server declared in form. Note that therosbridgeprotocol provides no guarantee that the request was indeed received by the Thing. The operation thus builds an empty response immediately after sending the request.- 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
-