|
3 | 3 | */ |
4 | 4 |
|
5 | 5 | var ROSLIB = ROSLIB || { |
6 | | - REVISION : '7-devel' |
| 6 | + REVISION : '7' |
7 | 7 | }; |
8 | 8 |
|
9 | 9 | //URDF types |
@@ -263,8 +263,7 @@ ROSLIB.Param.prototype.get = function(callback) { |
263 | 263 | }); |
264 | 264 |
|
265 | 265 | var request = new ROSLIB.ServiceRequest({ |
266 | | - name : this.name, |
267 | | - value : JSON.stringify('') |
| 266 | + name : this.name |
268 | 267 | }); |
269 | 268 |
|
270 | 269 | paramClient.callService(request, function(result) { |
@@ -798,6 +797,7 @@ ROSLIB.Topic = function(options) { |
798 | 797 | this.isAdvertised = false; |
799 | 798 | this.compression = options.compression || 'none'; |
800 | 799 | this.throttle_rate = options.throttle_rate || 0; |
| 800 | + this.latch = options.latch || false; |
801 | 801 |
|
802 | 802 | // Check for valid compression types |
803 | 803 | if (this.compression && this.compression !== 'png' && this.compression !== 'none') { |
@@ -872,7 +872,8 @@ ROSLIB.Topic.prototype.advertise = function() { |
872 | 872 | op : 'advertise', |
873 | 873 | id : advertiseId, |
874 | 874 | type : this.messageType, |
875 | | - topic : this.name |
| 875 | + topic : this.name, |
| 876 | + latch : this.latch |
876 | 877 | }; |
877 | 878 | this.ros.callOnConnection(call); |
878 | 879 | this.isAdvertised = true; |
@@ -909,7 +910,8 @@ ROSLIB.Topic.prototype.publish = function(message) { |
909 | 910 | op : 'publish', |
910 | 911 | id : publishId, |
911 | 912 | topic : this.name, |
912 | | - msg : message |
| 913 | + msg : message, |
| 914 | + latch : this.latch |
913 | 915 | }; |
914 | 916 | this.ros.callOnConnection(call); |
915 | 917 | }; |
@@ -1303,7 +1305,7 @@ ROSLIB.UrdfBox = function(options) { |
1303 | 1305 | * @param xml - the XML element to parse |
1304 | 1306 | */ |
1305 | 1307 | var initXml = function(xml) { |
1306 | | - this.type = ROSLIB.URDF_BOX; |
| 1308 | + that.type = ROSLIB.URDF_BOX; |
1307 | 1309 |
|
1308 | 1310 | // Parse the string |
1309 | 1311 | var xyz = xml.getAttribute('size').split(' '); |
|
0 commit comments