Class: InteractiveMarkerClient

ROS3D. InteractiveMarkerClient

new InteractiveMarkerClient(options)

A client for an interactive marker topic.

Parameters:
Name Type Description
options

object with following keys:

  • ros - a handle to the ROS connection
  • tfClient - a handle to the TF client
  • topic (optional) - the topic to subscribe to, like '/basic_controls'
  • path (optional) - the base path to any meshes that will be loaded
  • camera - the main camera associated with the viewer for this marker client
  • rootObject (optional) - the root THREE 3D object to render to
  • loader (optional) - the Collada loader to use (e.g., an instance of ROS3D.COLLADA_LOADER ROS3D.COLLADA_LOADER_2) -- defaults to ROS3D.COLLADA_LOADER_2
  • menuFontSize (optional) - the menu font size
Source:
  • interactivemarkers/InteractiveMarkerClient.js, line 21

Methods

eraseIntMarker(intMarkerName)

Erase the interactive marker with the given name.

Parameters:
Name Type Description
intMarkerName

the interactive marker name to delete

Source:
  • interactivemarkers/InteractiveMarkerClient.js, line 185

processInit(initMessage)

Process the given interactive marker initialization message.

Parameters:
Name Type Description
initMessage

the 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
initMessage

the 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
topic

the 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