Skip to content

apostololeg/roslibjs-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Roslibjs Client 🤖

This is a wrapper around the roslibjs package aiming to improve shortcomings of the original roslib package by introducing a fluent API as well as some useful error and fault handling mechanisms.

For the official roslibjs repository please head to https://github.com/RobotWebTools/roslibjs

Inspired by https://github.com/milvusrobotics/roslibjs-client

Connect

ROSLIB.Ros({...})

const client = new RosClient({
    url: 'ws://192.168.0.11:9090' // default
})

client.on('connected', () => {...})
client.on('disconnected', () => {...})

Topic

opts - ROSLIB.Topic({...})

payload - ROSLIB.Message({...})

const topic = client.createTopic(opts) // instantiating

topic.publish(payload)
topic.subscribe(() => {...})
    .dispose()

Service

optsROSLIB.Service({...})

payloadROSLIB.ServiceRequest({...})

client.callService(opts, payload)

About

Wrapper around roslibjs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published