build_tracklet#
- akkits.build_tracklet(frame_id, lidar_timestamp, unix_timestamp, track_ids, class_ids, confidences, zone_ids, positions, velocities, dimensions, yaws)#
Builds the tracklet packet message buffer.
- Parameters
frame_id (int) – Frame ID.
lidar_timestamp (float) – Timestamp from LiDAR.
unix_timestamp (float) – Timestamp from sensor interface.
track_ids (List[int]) – List of object track ID.
class_ids (List[int]) – List of object class ID.
confidences (List[float]) – List of object confidence.
zone_ids (List[List[int]]) – List of object zone ID.
positions (List[List[float]]) – List of object position.
velocities (List[List[float]]) – List of object velocity.
dimensions (List[List[float]]) – List of object / bounding box dimension.
yaws (List[float]) – List of object yaw angle.
- Returns
buffer (bytearray) – Message buffer.