Created on 2016-01-20 @author: Andrew H. Fagg
PointCloud to Objects Tools
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.
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).