Create a new AutoRos instance
Optionaloptions: AutoRosOptionsConfiguration options
Get the current connection status
Set the connection status and emit status event
New status value
Connect to rosbridge
If a URL is provided, it will connect to that one. Otherwise, it will use the previous URL. Uses a URL based on the hostname if no URLs have been provided.
Optionalurl: stringWebSocket URL to connect to (e.g., 'ws://localhost:9090')
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
Auto reconnecting wrapper of ROSLIB.Ros
This class extends EventEmitter and provides automatic reconnection functionality for ROS connections through rosbridge.
Example