Members
ActionClient
- Source:
assign
- Source:
assign
- Source:
assign
- Source:
assign
ROSLIB Node exclusive extensions
- Source:
EventEmitter2
- Source:
Message
- Source:
Pose
- Source:
ROSLIB
Service
- Source:
ServiceResponse
- Source:
Topic
- Source:
Topic
- Source:
UrdfColor
- Source:
UrdfMaterial
- Source:
UrdfTypes
- Source:
UrdfTypes
- Source:
UrdfVisual
- Source:
Vector3
- Source:
Vector3
- Source:
Vector3
- Source:
Vector3
- Source:
WebSocket
- Source:
Methods
decompressPng(data, callback)
If a message was compressed as a PNG image (a compression hack since
gzipping over WebSockets * is not supported yet), this function places the
"image" in a canvas element then decodes the * "image" as a Base64 string.
Parameters:
| Name | Type | Description |
|---|---|---|
data |
object containing the PNG data. | |
callback |
function with params: * data - the uncompressed data |
- Source:
onclose(event)
Emits a 'close' event on WebSocket disconnection.
Parameters:
| Name | Type | Description |
|---|---|---|
event |
the argument to emit with the event. |
- Source:
onerror(event)
Emits an 'error' event whenever there was an error.
Parameters:
| Name | Type | Description |
|---|---|---|
event |
the argument to emit with the event. |
- Source:
onmessage(message)
Parses message responses from rosbridge and sends to the appropriate
topic, service, or param.
Parameters:
| Name | Type | Description |
|---|---|---|
message |
the raw JSON message from rosbridge. |
- Source:
onopen(event)
Emits a 'connection' event on WebSocket connection.
Parameters:
| Name | Type | Description |
|---|---|---|
event |
the argument to emit with the event. |
- Source:
RosTCP()
Same as core Ros except supports TCP connections,
also can receive a socket.io instance (options.socketio) or server intance (option.http)
to connect to the front using socket.io
- Source:
SocketAdapter()
Events listeners for a WebSocket or TCP socket to a JavaScript
ROS Client. Sets up Messages for a given topic to trigger an
event on the ROS client.
- Source: