Function etsi_its_cpm_ts_msgs::access::initPerceivedObjectContainer

Function Documentation

inline void etsi_its_cpm_ts_msgs::access::initPerceivedObjectContainer(WrappedCpmContainer &container, const uint8_t n_objects = 0)

Initializes a WrappedCpmContainer as a PerceivedObjectContainer with the given number of objects.

This function sets the container ID to CHOICE_CONTAINER_DATA_PERCEIVED_OBJECT_CONTAINER and initializes the number of perceived objects in the container to the specified value.

Parameters:
  • container – A reference to the WrappedCpmContainer to be initialized as a PerceivedObjectContainer.

  • n_objects – The number of perceived objects to initialize in the container. Default is 0.