ContainmentEvent

October 18, 2022 ยท View on GitHub

from tdw.container_data.containment_event import ContainmentEvent

Data describing a containment event i.e. when a container shape overlaps with one or more objects.


Fields

  • container_id The ID of the container.

  • object_ids The IDs of the contained objects as a numpy array

  • tag A semantic ContainerTag describing the semantic nature of the event.


Functions

__init__

ContainmentEvent(container_id, object_ids, tag)

ParameterTypeDefaultDescription
container_idintThe ID of the container.
object_idsnp.ndarrayThe IDs of the contained objects as a numpy array.
tagContainerTagA semantic ContainerTag describing the semantic nature of the event.