Skip to content

Commit

Permalink
changelog updated and rebuilt with patch
Browse files Browse the repository at this point in the history
  • Loading branch information
rctoris committed Apr 25, 2013
1 parent 9718e22 commit b748a4d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
DEVEL - **r6**
* Fixes missing ID counter in ROS so multiple service calls can be made [(rctoris)](https://github.com/rctoris/)

2013-04-09 - **r5**
* Replaces build system with Grunt [(baalexander)](https://github.com/baalexander/)
Expand Down
3 changes: 2 additions & 1 deletion build/roslib.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ ROSLIB.Ros = function(options) {
options = options || {};
var url = options.url;
this.socket = null;
this.idCounter = 0;

// begin by checking if a URL was given
if (url) {
Expand Down Expand Up @@ -573,7 +574,7 @@ ROSLIB.Service = function(options) {
ROSLIB.Service.prototype.callService = function(request, callback) {
this.ros.idCounter++;
var serviceCallId = 'call_service:' + this.name + ':' + this.ros.idCounter;

console.log(serviceCallId);
this.ros.once(serviceCallId, function(data) {
var response = new ROSLIB.ServiceResponse(data);
callback(response);
Expand Down
Loading

0 comments on commit b748a4d

Please sign in to comment.