Package org.hypermedea.ros
Class ROS
java.lang.Object
org.hypermedea.ros.ROS
Vocabulary to declare ROS form fields in Hypermedea operations.
Example for basic publish/subscribe, where the path of the target URI corresponds to a topic name:
+!call_cmdvel <-
put(
"ros+ws://example.org/turtlesim/cmd_vel",
json([kv("linear", ...), kv("angular", ...)]),
[kv("urn:hypermedea:ros:messageType", "geometry_msgs/Twist")]
) .
Example for actionlib operations, where the path of the target URI corresponds to an action name
and the URI fragment corresponds to the ID of an on-going action:
+!call_shape <-
post("ros+ws://example.org/turtle_shape") ;
.wait({ +rdf("ros+ws://example.org/turtle_shape", "urn:hypermedea:ros:goalId", ID) }) ;
.print(ID) .-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NAMESPACE
- See Also:
-
messageType
- See Also:
-
goalId
- See Also:
-
-
Constructor Details
-
ROS
public ROS()
-