Class ROS

java.lang.Object
org.hypermedea.ros.ROS

public class ROS extends Object

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) .