Class: PointCloud2

PointCloud2(options)

new PointCloud2(options)

A PointCloud2 client that listens to a given topic and displays the points.

Parameters:
Name Type Description
options

object with following keys:

  • ros - the ROSLIB.Ros connection handle
  • topic - the marker topic to listen to (default: '/points')
  • tfClient - the TF client handle to use
  • compression (optional) - message compression (default: 'cbor')
  • rootObject (optional) - the root object to add this marker to use for the points.
  • max_pts (optional) - number of points to draw (default: 10000)
  • pointRatio (optional) - point subsampling ratio (default: 1, no subsampling)
  • messageRatio (optional) - message subsampling ratio (default: 1, no subsampling)
  • material (optional) - a material object or an option to construct a PointsMaterial.
  • colorsrc (optional) - the field to be used for coloring (default: 'rgb')
  • colormap (optional) - function that turns the colorsrc field value to a color
Source: