Skip to content

Dangling references in map_api::Lane within map_api_data_wrapper

In map_api::Lane, the following member variables store references using RefWrapper, which leads to dangling data transport:

std::vector<RefWrapper> left_adjacent_lanes{};
std::vector<RefWrapper> right_adjacent_lanes{};
std::vector<RefWrapper> successor_lanes{};
std::vector<RefWrapper> antecessor_lanes{};
std::vector<RefWrapper> left_lane_boundaries{};
std::vector<RefWrapper> right_lane_boundaries{};
std::vector<RefWrapper> free_lane_boundaries{};

The references should be refreshed during data transport, same as logical lane. The issue will be temporarily fixed in the upcoming PR.

A full solution to this issue could be further discussed.

Edited by Ziqi Zhou