Class: AutoRos

AutoRos(optionsopt)

new AutoRos(optionsopt)

Auto reconnecting wrapper of ROSLIB.Ros

Parameters:
Name Type Attributes Description
options Object <optional>
Properties
Name Type Attributes Default Description
reconnectTimeOut number <optional>
5000

The reconnect timeout in ms.

rosOptions Object <optional>

Option object passed to the constructor of the ROSLIB.Ros object.

Properties
Name Type Attributes Default Description
encoding string <optional>
ascii

Overruling the default of ROSLIB, which is 'utf8'.

Source:

Members

status

Status getter

Source:

status

Status setter

Source:

Methods

connect()

Connect to rosbridge

If an url is provided, it will connect to that one. Else it will use the previous url. Uses a url based on the hostname if no urls are provided.

Source:

onClose()

Event Callback on 'close'

Source:

onConnection()

Event Callback on 'connection'

Source:

onError()

Event Callback on 'error'

Source: