new TFClient(options)
A TF Client that listens to TFs from tf2_web_republisher.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
- Source:
Methods
dispose()
Unsubscribe and unadvertise all topics associated with this TFClient.
- Source:
processResponse(response)
Process the service response and subscribe to the tf republisher topic.
Parameters:
Name | Type | Description |
---|---|---|
response |
Object | The service response containing the topic name. |
- Source:
processTFArray(tf)
Process the incoming TF message and send them out using the callback functions.
Parameters:
Name | Type | Description |
---|---|---|
tf |
Object | The TF message from the server. |
- Source:
subscribe(frameID, callback)
Subscribe to the given TF frame.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
frameID |
string | The TF frame to subscribe to. |
||||||
callback |
function | Function with the following params: Properties
|
- Source:
unsubscribe(frameID, callback)
Unsubscribe from the given TF frame.
Parameters:
Name | Type | Description |
---|---|---|
frameID |
string | The TF frame to unsubscribe from. |
callback |
function | The callback function to remove. |
- Source:
updateGoal()
Create and send a new goal (or service request) to the tf2_web_republisher based on the current list of TFs.
- Source: