Skip to content

Commit

Permalink
Updated various displays to update themselves when the ROS object cha…
Browse files Browse the repository at this point in the history
…nges.
  • Loading branch information
jstnhuang committed Sep 5, 2017
1 parent 1e41f75 commit 5b454a3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions ros-rviz-interactive-markers.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},

observers: [
'_optionsChanged(viewer, topic)',
'_optionsChanged(viewer, topic, ros)',
],

ready: function() {
Expand All @@ -55,7 +55,7 @@
}
},

_optionsChanged: function(viewer, topic) {
_optionsChanged: function(viewer, topic, ros) {
this.hide();
this._updateDisplay();
this.show();
Expand Down
4 changes: 2 additions & 2 deletions ros-rviz-occupancy-grid.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},

observers: [
'_optionsChanged(viewer, topic, continuous, opacity)',
'_optionsChanged(viewer, topic, continuous, opacity, ros)',
],

destroy: function() {
Expand All @@ -63,7 +63,7 @@
}
},

_optionsChanged: function(viewer, topic, continuous, opacity) {
_optionsChanged: function(viewer, topic, continuous, opacity, ros) {
this.hide();
this._updateDisplay();
this.show();
Expand Down
4 changes: 2 additions & 2 deletions ros-rviz-point-cloud-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},

observers: [
'_optionsChanged(topic, size, viewer)',
'_optionsChanged(topic, size, viewer, ros)',
],

destroy: function() {
Expand All @@ -60,7 +60,7 @@
}
},

_optionsChanged: function(topic, size, viewer) {
_optionsChanged: function(topic, size, viewer, ros) {
var that = this;
this.debounce('updateForOptions', function() {
that.hide();
Expand Down
4 changes: 2 additions & 2 deletions ros-rviz-urdf.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},

observers: [
'_optionsChanged(param)',
'_optionsChanged(param, tfClient, ros, globalOptions.colladaLoader, globalOptions.colladaServer)',
'_tfPrefixChanged(tfPrefix)',
],

Expand All @@ -60,7 +60,7 @@
}
},

_optionsChanged: function(param) {
_optionsChanged: function(param, tfClient, ros, colladaLoader, colladaServer) {
var that = this;
this.debounce('updateForOptions', function() {
that.hide();
Expand Down

0 comments on commit 5b454a3

Please sign in to comment.