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

Alternative syntax for create Topics, Services, Params, etc #110

Merged
merged 1 commit into from
Oct 1, 2014

Conversation

megawac
Copy link
Contributor

@megawac megawac commented Oct 1, 2014

A little sugar in the bowl... Simple patch to make creating topics, services, params and clients less verbose

var ros = new ROSLIB.Ros({
    url : 'ws://localhost:9090'
});

// Current
var maxVelX = new ROSLIB.Param({
    ros : ros,
    name : 'max_vel_y'
});

// Optionally, after this patch
var maxVelX = ros.Param({
    name : 'max_vel_y'
});

rctoris added a commit that referenced this pull request Oct 1, 2014
Alternative syntax for create Topics, Services, Params, etc
@rctoris rctoris merged commit 06f1cb1 into RobotWebTools:develop Oct 1, 2014
@megawac megawac deleted the alt-create branch October 1, 2014 16:58
Rayman pushed a commit to Rayman/roslibjs that referenced this pull request Oct 2, 2014
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