PointCloudSequence#

class PointCloudSequence(clouds: Any)[source]#

An in-memory sequence of PointCloud objects with interactive display.

Parameters:

clouds (iterable of PointCloud) – sequence of point clouds

The sequence is materialised into a list on construction. Items are expected to be PointCloud instances; a timestamp attribute (ROS nanosecond epoch) and topic attribute are used for the display overlay when present.

Requires the open3d package.

Example:

from machinevisiontoolbox import ROSBag, PointCloudSequence
bag = ROSBag("mybag.bag", msgfilter="PointCloud2")
seq = PointCloudSequence(bag)
seq.disp()                       # step through one cloud at a time
seq.disp(animate=True, fps=10)   # timed playback
Seealso:

ImageSequence

Methods

disp

Display the point-cloud sequence interactively using Open3D GUI.