Skip to content

Commit 7f4fd3c

Browse files
author
Russell Toris
committed
r7 release
1 parent d7d4dd5 commit 7f4fd3c

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

build/roslib.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
var ROSLIB = ROSLIB || {
6-
REVISION : '7-devel'
6+
REVISION : '7'
77
};
88

99
//URDF types
@@ -263,8 +263,7 @@ ROSLIB.Param.prototype.get = function(callback) {
263263
});
264264

265265
var request = new ROSLIB.ServiceRequest({
266-
name : this.name,
267-
value : JSON.stringify('')
266+
name : this.name
268267
});
269268

270269
paramClient.callService(request, function(result) {
@@ -798,6 +797,7 @@ ROSLIB.Topic = function(options) {
798797
this.isAdvertised = false;
799798
this.compression = options.compression || 'none';
800799
this.throttle_rate = options.throttle_rate || 0;
800+
this.latch = options.latch || false;
801801

802802
// Check for valid compression types
803803
if (this.compression && this.compression !== 'png' && this.compression !== 'none') {
@@ -872,7 +872,8 @@ ROSLIB.Topic.prototype.advertise = function() {
872872
op : 'advertise',
873873
id : advertiseId,
874874
type : this.messageType,
875-
topic : this.name
875+
topic : this.name,
876+
latch : this.latch
876877
};
877878
this.ros.callOnConnection(call);
878879
this.isAdvertised = true;
@@ -909,7 +910,8 @@ ROSLIB.Topic.prototype.publish = function(message) {
909910
op : 'publish',
910911
id : publishId,
911912
topic : this.name,
912-
msg : message
913+
msg : message,
914+
latch : this.latch
913915
};
914916
this.ros.callOnConnection(call);
915917
};
@@ -1303,7 +1305,7 @@ ROSLIB.UrdfBox = function(options) {
13031305
* @param xml - the XML element to parse
13041306
*/
13051307
var initXml = function(xml) {
1306-
this.type = ROSLIB.URDF_BOX;
1308+
that.type = ROSLIB.URDF_BOX;
13071309

13081310
// Parse the string
13091311
var xyz = xml.getAttribute('size').split(' ');

build/roslib.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/RosLib.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
var ROSLIB = ROSLIB || {
6-
REVISION : '7-devel'
6+
REVISION : '7'
77
};
88

99
//URDF types

utils/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ roslibjs Build Setup
88
#### Ubuntu
99

1010
1. Install Node.js and its package manager, NPM
11-
* `sudo apt-get install python-software-properties`
12-
* `sudo add-apt-repository ppa:chris-lea/node.js`
13-
* `sudo apt-get update && sudo apt-get install nodejs phantomjs`
11+
* `sudo apt-get install npm phantomjs`
12+
* `sudo ln -s /usr/bin/nodejs /usr/bin/node`
1413
2. Install Grunt and the test runner [Karma](http://karma-runner.github.io/)
15-
* `sudo npm install -g grunt-cli karma phantomjs`
14+
* `sudo npm install -g grunt-cli`
1615
* `sudo rm -rf ~/.npm ~/tmp`
1716
3. Install the Grunt tasks specific to this project
1817
* `cd /path/to/roslibjs/utils/`

0 commit comments

Comments
 (0)