Previous topic

PointCloud2Objects API Notes

This Page

pointcloud2objects_lib Module

Created on 2016-01-20 @author: Andrew H. Fagg

class pointcloud2objects_lib.PointCloud2Objects[source]

PointCloud to Objects Tools

callback(data)[source]

ObjectDescriptionSet message callback.

If we are waiting for an object set to arrive (indicated by receivedObjects=False), then we store the object set. In this case, receivedObjects is set to True (indicating that the set has arrived) and objectSet is set to the most recent set of objects. Note that the latter will not be overwritten until receivedObjects is set to False again.

Parameters:data – Data message received (of type ObjectDescriptionSet)

Note

This method is not intended to be called by a user program.

waitForObjects()[source]

Wait for an object message to arrive. Returns once the message has arrived.

Returns:The set of objects that has most recently been received.

Warning

If you are actively changing the configuration of the objects, then it is wise to wait for two messages before acting on the data. The first one could contain a mix of new and old object configurations (or human arms).