Skip to content

Commit

Permalink
Expose topic throttling on Pointcloud2 Message (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickvaras authored and mvollrath committed Nov 21, 2019
1 parent d90d05c commit 669ca4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sensors/PointCloud2.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ ROS3D.PointCloud2 = function(options) {
options = options || {};
this.ros = options.ros;
this.topicName = options.topic || '/points';
this.throttle_rate = options.throttle_rate || null;
this.compression = options.compression || 'cbor';
this.max_pts = options.max_pts || 10000;
this.points = new ROS3D.Points(options);
Expand All @@ -85,6 +86,7 @@ ROS3D.PointCloud2.prototype.subscribe = function(){
ros : this.ros,
name : this.topicName,
messageType : 'sensor_msgs/PointCloud2',
throttle_rate : this.throttle_rate,
queue_length : 1,
compression: this.compression
});
Expand Down

0 comments on commit 669ca4a

Please sign in to comment.