StaticprefixedAdvertise the service. This turns the Service object from a client into a server. The callback will be called with every request that's made on this service.
Call the service. Returns the service response in the callback. Does nothing if this service is currently advertised.
The service request to send.
Optionalcallback: (response: TResponse) => voidFunction with the following params:
OptionalfailedCallback: (error: string) => void = console.errorThe callback function when the service call failed with params:
Optionaltimeout: numberOptional timeout, in seconds, for the service call. A non-positive value means no timeout. If not provided, the rosbridge server will use its default value.
Calls each of the listeners registered for a given event.
Return an array listing the events for which the emitter has registered listeners.
Return the number of listeners listening to a given event.
Return the listeners registered for a given event.
Add a listener for a given event.
Optionalcontext: anyAdd a one-time listener for a given event.
Optionalcontext: anyRemove all listeners, or those of the specified event.
Optionalevent: string | symbolRemove the listeners of a given event.
Optionalfn: (...args: any[]) => voidOptionalcontext: anyOptionalonce: boolean
A ROS service client.