new InteractiveMarkerHandle(options)
Handle with signals for a single interactive marker.
Emits the following events:
- 'pose' - emitted when a new pose comes from the server
Parameters:
| Name | Type | Description |
|---|---|---|
options |
object with following keys:
|
- Source:
- interactivemarkers/InteractiveMarkerHandle.js, line 20
Methods
-
emitServerPoseUpdate()
-
Emit the new pose that has come from the server.
- Source:
- interactivemarkers/InteractiveMarkerHandle.js, line 53
-
onButtonClick(event)
-
Send the button click feedback to the server.
Parameters:
Name Type Description eventthe event associated with the button click
- Source:
- interactivemarkers/InteractiveMarkerHandle.js, line 112
-
onMenuSelect(event)
-
Send the menu select feedback to the server.
Parameters:
Name Type Description eventthe event associated with the menu select
- Source:
- interactivemarkers/InteractiveMarkerHandle.js, line 145
-
onMouseDown(event)
-
Send the mousedown feedback to the server.
Parameters:
Name Type Description eventthe event associated with the mousedown
- Source:
- interactivemarkers/InteractiveMarkerHandle.js, line 122
-
onMouseUp(event)
-
Send the mouseup feedback to the server.
Parameters:
Name Type Description eventthe event associated with the mouseup
- Source:
- interactivemarkers/InteractiveMarkerHandle.js, line 132
-
sendFeedback(eventType, clickPosition, menuEntryID, controlName)
-
Send feedback to the interactive marker server.
Parameters:
Name Type Description eventTypethe type of event that happened
clickPosition(optional) - the position in ROS space the click happened
menuEntryID(optional) - the menu entry ID that is associated
controlNamethe name of the control
- Source:
- interactivemarkers/InteractiveMarkerHandle.js, line 157
-
setPoseFromClient(event)
-
Set the pose from the client based on the given event.
Parameters:
Name Type Description eventthe event to base the change off of
- Source:
- interactivemarkers/InteractiveMarkerHandle.js, line 84
-
setPoseFromServer(poseMsg)
-
Update the pose based on the pose given by the server.
Parameters:
Name Type Description poseMsgthe pose given by the server
- Source:
- interactivemarkers/InteractiveMarkerHandle.js, line 64
-
subscribeTf()
-
Subscribe to the TF associated with this interactive marker.
- Source:
- interactivemarkers/InteractiveMarkerHandle.js, line 43
-
tfUpdate(transformMsg)
-
Update the pose based on the TF given by the server.
Parameters:
Name Type Description transformMsgthe TF given by the server
- Source:
- interactivemarkers/InteractiveMarkerHandle.js, line 74