feat(relative_map): routing-based local planning without HD maps#226
Draft
Copilot wants to merge 2 commits into
Draft
feat(relative_map): routing-based local planning without HD maps#226Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
- Subscribe RelativeMapComponent to /apollo/routing_request - Add RelativeMap::OnRoutingRequest() to extract destination from last waypoint and call NavigationLane::SetDestination() - Add NavigationLane destination API: SetDestination, ClearDestination, HasDestination, IsDestinationReached - Add NavigationLane::GenerateDestinationBearingPath(): straight path in FLU coordinates toward destination using ENU->FLU rotation - Modify GeneratePath() fallback: prefer destination path when routing destination is set, blending with lane markers when available - Add destination-reached check (configurable via FLAGS) that clears the destination when vehicle is within threshold distance - Add destination_reached_threshold gflag (default: 5.0m) - Add routing_cc_proto dependency to relative_map_lib and relative_map_component_lib in BUILD Co-authored-by: daohu527 <10419854+daohu527@users.noreply.github.com> Agent-Logs-Url: https://github.com/wheelos/apollo-lite/sessions/855d3bbd-b98d-44ff-ab04-7db4ddfb6f3a
Copilot
AI
changed the title
[WIP] Implement local planning in relative_map using routing
feat(relative_map): routing-based local planning without HD maps
Mar 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RelativeMapComponenthad no way to receive a routing destination — it relied entirely on pre-recorded navigation lines from Dreamview. This meant destination-driven autonomous navigation required HD map support.Changes
RelativeMapComponent— subscribe to routing/apollo/routing_request; wires it toRelativeMap::OnRoutingRequest()RelativeMap— routing ingestion + destination lifecycleOnRoutingRequest()extracts the last waypoint's ENU pose and callsNavigationLane::SetDestination()FLAGS_destination_reached_threshold, default 5 m) clears the goal on arrivalNavigationLane— goal-directed path generationNew public API:
SetDestination(),ClearDestination(),HasDestination(),IsDestinationReached(threshold)Modified
GeneratePath()fallback (when no pre-recorded navigation lines):ConvertLaneMarkerToPath()for lane-keeping (lateral position from perception)GenerateDestinationBearingPath(): converts ENU delta to FLU viaVec2d{dx,dy}.Rotate(-heading)(same convention asConvertNavigationLineToPath), emits a straight path along the bearingBUILD+ gflagsrouting_cc_protodependency torelative_map_libandrelative_map_component_lib--destination_reached_thresholdflag (default 5.0 m)Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
releases.bazel.build/usr/local/lib/node_modules/@bazel/bazelisk/bazelisk-linux_amd64 /usr/local/lib/node_modules/@bazel/bazelisk/bazelisk-linux_amd64 build //modules/world_model/relative_map:relative_map_component_lib(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
Created from VS Code.
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.