Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update roslibjs to advertise Services #208

Merged
merged 1 commit into from
Feb 9, 2016

Conversation

chris-smith
Copy link
Contributor

Updates roslib so that it can advertise services in addition to calling them.

Example Usage

let addTwoInts = new roslib.Service({
    ros: rosConn,
    name: '/add_two_ints',
    serviceType: 'beginner_tutorials/AddTwoInts'
});

addTwoInts.advertise((req, resp) => {
    resp.sum = req.a + req.b
    return true;
});

@rctoris
Copy link
Contributor

rctoris commented Feb 9, 2016

👍

rctoris added a commit that referenced this pull request Feb 9, 2016
Update roslibjs to advertise Services
@rctoris rctoris merged commit 0a3b511 into RobotWebTools:develop Feb 9, 2016
@reinzor
Copy link
Contributor

reinzor commented Feb 8, 2017

👍

k-aguete pushed a commit to k-aguete/roslibjs that referenced this pull request Oct 21, 2022
…obotWebTools#208)

* Make configurable scale, and dashed line type; optionally omit pan/zoom frame
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants