new InteractiveMarkerClient(options)
A client for an interactive marker topic.
Parameters:
| Name | Type | Description |
|---|---|---|
options |
object with following keys:
|
- Source:
- interactivemarkers/InteractiveMarkerClient.js, line 21
Methods
-
eraseIntMarker(intMarkerName)
-
Erase the interactive marker with the given name.
Parameters:
Name Type Description intMarkerNamethe interactive marker name to delete
- Source:
- interactivemarkers/InteractiveMarkerClient.js, line 185
-
processInit(initMessage)
-
Process the given interactive marker initialization message.
Parameters:
Name Type Description initMessagethe interactive marker initialization message to process
- Source:
- interactivemarkers/InteractiveMarkerClient.js, line 99
-
processUpdate(initMessage)
-
Process the given interactive marker update message.
Parameters:
Name Type Description initMessagethe interactive marker update message to process
- Source:
- interactivemarkers/InteractiveMarkerClient.js, line 118
-
subscribe(topic)
-
Subscribe to the given interactive marker topic. This will unsubscribe from any current topics.
Parameters:
Name Type Description topicthe topic to subscribe to, like '/basic_controls'
- Source:
- interactivemarkers/InteractiveMarkerClient.js, line 48
-
unsubscribe()
-
Unsubscribe from the current interactive marker topic.
- Source:
- interactivemarkers/InteractiveMarkerClient.js, line 80