|
Apollo
6.0
Open source self driving car software
|
NavigationLane generates a real-time relative map based on navagation lines. More...
#include <navigation_lane.h>

Public Member Functions | |
| NavigationLane ()=default | |
| NavigationLane (const NavigationLaneConfig &config) | |
| ~NavigationLane ()=default | |
| void | SetConfig (const NavigationLaneConfig &config) |
Set the configuration information required by the NavigationLane. More... | |
| void | SetVehicleStateProvider (common::VehicleStateProvider *vehicle_state_provider) |
| void | UpdateNavigationInfo (const NavigationInfo &navigation_info) |
| Update navigation line information. More... | |
| void | SetDefaultWidth (const double left_width, const double right_width) |
| Set the default width of a lane. More... | |
| bool | GeneratePath () |
| Generate a suitable path (i.e. a navigation line segment). More... | |
| void | UpdatePerception (const perception::PerceptionObstacles &perception_obstacles) |
| Update perceived lane line information. More... | |
| NavigationPath | Path () const |
| Get the generated lane segment where the vehicle is currently located. More... | |
| bool | CreateMap (const MapGenerationParam &map_config, MapMsg *const map_msg) const |
| Generate a real-time relative map of approximately 250 m in length based on several navigation line segments and map generation configuration information. More... | |
NavigationLane generates a real-time relative map based on navagation lines.
First, several navigation lines are received from the NavigationInfo object;
Second, several navigation line segments with the length of about 250 m are cut from the whole navigation lines and the UTM coordinates are converted into local coordinates with the current position of the vehicle as the origin;
Third, the navigation line segment of the vehicle's current lane is merged with the perceived lane centerline.
Fourth, a real-time relative map is dynamically created based on navigation line segments and perceived lane width;
Fifth, the relative map is output as a MapMsg object pointer.
|
default |
|
explicit |
|
default |
| bool apollo::relative_map::NavigationLane::CreateMap | ( | const MapGenerationParam & | map_config, |
| MapMsg *const | map_msg | ||
| ) | const |
Generate a real-time relative map of approximately 250 m in length based on several navigation line segments and map generation configuration information.
| map_config | Map generation configuration information. |
| map_msg | A pointer which outputs the real-time relative map. |
| bool apollo::relative_map::NavigationLane::GeneratePath | ( | ) |
Generate a suitable path (i.e. a navigation line segment).
|
inline |
Get the generated lane segment where the vehicle is currently located.
| void apollo::relative_map::NavigationLane::SetConfig | ( | const NavigationLaneConfig & | config | ) |
Set the configuration information required by the NavigationLane.
| config | Configuration object. |
|
inline |
Set the default width of a lane.
| left_width | Left half width of a lane. |
| right_width | Right half width of a lane. |
| void apollo::relative_map::NavigationLane::SetVehicleStateProvider | ( | common::VehicleStateProvider * | vehicle_state_provider | ) |
| void apollo::relative_map::NavigationLane::UpdateNavigationInfo | ( | const NavigationInfo & | navigation_info | ) |
Update navigation line information.
| navigation_info | Navigation line information to be updated. |
|
inline |
Update perceived lane line information.
| perception_obstacles | Perceived lane line information to be updated. |
1.8.13