Updated: October 28, 2024 |
Create a fusion buffer to contain the information extracted by the algorithm
#include <adas/adas_external_algo.h>
adas_error_t adas_fusion_create_buffer_from_tracking(uint32_t id, const adas_fusion_object_data_t *objects, size_t nb_objects, const adas_fusion_buffer_t **return_buffer)
When the algorithm has finished processing a buffer and has detected objects to report to the ADAS library, it needs to call this function to create a buffer that is returned as the return_buffer argument to adas_fusion_algo_process_sensor_buffer_t.
ADAS_EOK when the function successfully completes, otherwise another adas_error_t value that provides the reason that the call failed.