Skip to main content

AVxcelerate Simulation Framework 2026 R1 SP01

Namespace simulation_framework::autonomy::sensors::post_processing::internal

Last update: 22.04.2026

Definition: autonomy/sensors/post_processing/internal/lane_context_utils.h (line 23)

Typedefs

Typedef LaneClassById

Definition: autonomy/sensors/post_processing/internal/lane_context_utils.h (line 30)

using simulation_framework::autonomy::sensors::post_processing::internal::LaneClassById = typedef std::unordered_map<uint64_t, const osi3::Lane::Classification*>

Lookup table from lane ground-truth ID to lane classification.

Values are non-owning pointers to classifications stored inside osi3::SensorData. The map is only valid while the referenced SensorData object remains alive.

Return type: std::unordered_map< uint64_t, const osi3::Lane::Classification * >

Functions

Function GetLaneClass

const osi3::Lane::Classification * simulation_framework::autonomy::sensors::post_processing::internal::GetLaneClass(const osi3::DetectedLane &lane)

Return first candidate lane classification from a detected lane.

Parameters:

  • lane: Detected lane message.

Returns:

Pointer to first candidate classification, or nullptr if no candidate exists.

Parameters:

  • const osi3::DetectedLane & lane

Return type: const osi3::Lane::Classification *

Function GetFirstIdOrZero

uint64_t simulation_framework::autonomy::sensors::post_processing::internal::GetFirstIdOrZero(const google::protobuf::RepeatedPtrField< osi3::Identifier > &ids)

Return first identifier value, or zero if list is empty.

Parameters:

  • ids: Repeated identifier field.

Returns:

First identifier value, or 0 when unavailable.

Parameters:

  • const google::protobuf::RepeatedPtrField< osi3::Identifier > & ids

Return type: uint64_t

Function GetBoundaryIdOfLane

uint64_t simulation_framework::autonomy::sensors::post_processing::internal::GetBoundaryIdOfLane(const osi3::Lane::Classification *lane_class, bool is_left)

Resolve left or right boundary ID from a lane classification.

Parameters:

  • lane_class: Lane classification pointer.
  • is_left: true for left boundary; false for right boundary.

Returns:

Boundary ID, or 0 if lane class is null or the requested boundary is missing.

Parameters:

  • const osi3::Lane::Classification * lane_class
  • bool is_left

Return type: uint64_t

Function GetAdjacentLaneId

uint64_t simulation_framework::autonomy::sensors::post_processing::internal::GetAdjacentLaneId(const LaneClassById &lane_class_by_id, uint64_t lane_id, bool is_left, bool ensure_driving)

Resolve adjacent lane ID from lane topology.

Parameters:

  • lane_class_by_id: Lane lookup table.
  • lane_id: Start lane ID.
  • is_left: true for left adjacent lane, false for right adjacent lane.
  • ensure_driving: If true, only return adjacent lane when it is driving type.

Returns:

Adjacent lane ID if available and valid for constraints; otherwise 0.

Parameters:

Return type: uint64_t

Function FindBorderLaneId

uint64_t simulation_framework::autonomy::sensors::post_processing::internal::FindBorderLaneId(const LaneClassById &lane_class_by_id, uint64_t central_lane_id, bool is_left)

Find nearest non-driving border lane by walking adjacent lanes on one side.

Starting from central_lane_id, this function follows left/right adjacency until it finds the first non-driving lane (treated as border lane) or cannot continue.

Parameters:

  • lane_class_by_id: Lane lookup table.
  • central_lane_id: Central lane ID used as traversal root.
  • is_left: true to search on left side, false to search on right side.

Returns:

Border lane ID, or 0 if none is found.

Parameters:

Return type: uint64_t

Function CollectSuccessorLaneIds

void simulation_framework::autonomy::sensors::post_processing::internal::CollectSuccessorLaneIds(const LaneClassById &lane_class_by_id, uint64_t lane_id, uint64_t depth, std::vector< uint64_t > *successor_ids, std::unordered_set< uint64_t > *visited)

Collect successor lane IDs up to the configured recursion depth.

This performs a depth-limited DFS over lane_pairing.successor_lane_id edges and appends newly discovered lanes to successor_ids. visited is used to avoid duplicates and cycles.

Parameters:

  • lane_class_by_id: Lane lookup table.
  • lane_id: Start lane ID for successor traversal.
  • depth: Remaining traversal depth. Value 0 stops recursion.
  • successor_ids: Output list of discovered successor lane IDs.
  • visited: Set of already visited lane IDs; updated in-place.

Parameters:

Return type: void

Function BuildLaneClassByIdAndHostLaneIds

void simulation_framework::autonomy::sensors::post_processing::internal::BuildLaneClassByIdAndHostLaneIds(const osi3::SensorData &sensor_data, LaneClassById *lane_class_by_id, std::vector< uint64_t > *host_lane_ids)

Build lane lookup map and host-lane ID list from SensorData.

The function clears and repopulates both outputs. Lanes without candidate classification or missing lane ground-truth ID are skipped.

Parameters:

  • sensor_data: Source SensorData containing detected lanes.
  • lane_class_by_id: Output lane lookup map.
  • host_lane_ids: Output list of host lane IDs (is_host_vehicle_lane == true).

Parameters:

Return type: void

Connect with Ansys