Skip to content

Commit

Permalink
Merge pull request RobotWebTools#52 from Pro/devel
Browse files Browse the repository at this point in the history
Fixed ros service call parameter order.
  • Loading branch information
rctoris committed Dec 3, 2013
2 parents 55d35ac + ab9af49 commit a4b1e4e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
7 changes: 1 addition & 6 deletions build/roslib.js
Original file line number Diff line number Diff line change
Expand Up @@ -724,16 +724,11 @@ ROSLIB.Service.prototype.callService = function(request, callback, failedCallbac
}
});

var requestValues = [];
Object.keys(request).forEach(function(name) {
requestValues.push(request[name]);
});

var call = {
op : 'call_service',
id : serviceCallId,
service : this.name,
args : requestValues
args : request
};
this.ros.callOnConnection(call);
};
Expand Down
Loading

0 comments on commit a4b1e4e

Please sign in to comment.