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:
|
Methods
emitServerPoseUpdate()
Emit the new pose that has come from the server.
onButtonClick(event)
Send the button click feedback to the server.
Parameters:
Name | Type | Description |
---|---|---|
event |
the event associated with the button click |
onMenuSelect(event)
Send the menu select feedback to the server.
Parameters:
Name | Type | Description |
---|---|---|
event |
the event associated with the menu select |
onMouseDown(event)
Send the mousedown feedback to the server.
Parameters:
Name | Type | Description |
---|---|---|
event |
the event associated with the mousedown |
onMouseUp(event)
Send the mouseup feedback to the server.
Parameters:
Name | Type | Description |
---|---|---|
event |
the event associated with the mouseup |
sendFeedback(eventType, clickPosition, menuEntryID, controlName)
Send feedback to the interactive marker server.
Parameters:
Name | Type | Description |
---|---|---|
eventType |
the type of event that happened |
|
clickPosition |
(optional) - the position in ROS space the click happened |
|
menuEntryID |
(optional) - the menu entry ID that is associated |
|
controlName |
the name of the control |
setPoseFromClient(event)
Set the pose from the client based on the given event.
Parameters:
Name | Type | Description |
---|---|---|
event |
the event to base the change off of |
setPoseFromServer(poseMsg)
Update the pose based on the pose given by the server.
Parameters:
Name | Type | Description |
---|---|---|
poseMsg |
the pose given by the server |
subscribeTf()
Subscribe to the TF associated with this interactive marker.
tfUpdate(transformMsg)
Update the pose based on the TF given by the server.
Parameters:
Name | Type | Description |
---|---|---|
transformMsg |
the TF given by the server |