Methods
advertise(callback)
Every time a message is published for the given topic, the callback
will be called with the message object.
Parameters:
Name | Type | Description |
---|---|---|
callback |
function with the following params: * message - the published message |
- Source:
callService(request, callback, failedCallback)
Calls the service. Returns the service response in the callback.
Parameters:
Name | Type | Description |
---|---|---|
request |
the ROSLIB.ServiceRequest to send | |
callback |
function with params: * response - the response from the service request | |
failedCallback |
the callback function when the service call failed (optional). Params: * error - the error message reported by ROS |
- Source: