Closed francocipollone closed 7 months ago
@agalbachicar Note that this case for the RoadNetwork and RoadGeometry is probably not the one that is related to the F2F talk about rust vs cpp ownership and heap allocation In this case we have a road network being created in cpp world and we consume from there. Its allocaiton is in the head and managed by the cpp world. It sounds that therefore makes sense ...:
UniquePtr<maliput_sys::api::ffi::RoadNetwork>
&maliput_sys::api::ffi::RoadGeometry
A different case happens with simpler structs/classes like LanePosition or InertialPosition. In those cases, having a cpp heap allocation sounds wrong and it is where I should narrow down the search for investigating that use case.
🎉 New feature
Related to #30 #31
Summary
Adds Rust API for a minor part of the maliput::api::RoadNetwork/RoadGeometry (cpp) interface.
Checklist