Repository navigation
nav: route_follower drives vehicle routes; nav_finale uses them on a plant (P9 R2/R3) - #713
Merged
Merged
Conversation
…and cusps (P9 R2) sim_world::override_command(i, steer, accel) replaces the drive's command for one step. On the kinematic arm the bicycle is integrated with it (nsub substeps, within the lock and [sp_min, vmax]); on a plant it is the plant's command. sim_world::set_pose places an agent on the kinematic arm (a plant owns its vehicles' poses). route_follower splits a plan_vehicle_route at its cusps into legs, one gear each. The last forward leg is the trained drive's: a carrot along the route, and the drive parks at its end. A leg ending at a cusp is driven geometrically: pure pursuit about the rear axle in its gear at manoeuvre_speed, slowing to stop at the cusp, then the next leg. Measured, a Humvee facing the end of an 8 m dead end, goal behind it: - kinematic arm: the drive alone wedges 53 m from the goal after 90 s; on the route it backs out 42 m to the goal in 29 s, at least 3.1 m from the walls; - Jolt plant (nav_plant_test), the plant's footprint and 6.71 m radius: alone 55 m from the goal after 90 s; on the route at the goal in 31 s; - to a goal round the corner: it backs out 22.5 m, stops at the cusp, and drives on to the goal. The nav, drive, material, physics, plant and route suites pass (373).
A retarget resets the drive's carrot state (nav_finale retargets only when its waypoint changes, for that reason). The follower now does the same on the trained drive's leg.
…rives vehicle routes (P9 R3) The drive leg's carrot is at least twice reach_tol ahead and the farthest pose the agent can see on the sim's map; where it cannot see past the drive's reach, that stretch is pursued geometrically at pursuit_speed. nav_finale on a plant plans vehicle routes (plan_vehicle_route) with the plant's turning circle and body, follows them with route_follower, replans when act 2's target moves off a route or a vehicle stops short for 4 s. Austin, 900 frames, 8 Humvees: 5387 m driven and none wedged, against 2035 m and 7 of 8 wedged on A* spines.
This was referenced Oct 19, 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.
The rest of vehicle-aware routes (Joe: "start vehicle-aware routes"), after #704's planner and #707's plant envelope (both merged).
R2: following a vehicle route (
route_follower)inc/cvc/nav/route_follower.hdrives asim_world's agents alongplan_vehicle_routeroutes. A route splits into legs at its cusps, and each leg is driven in one gear. Callapply()before eachstep().The last forward leg goes to the trained drive. The agent is retargeted to a carrot along the route:
reach_tolahead (nearer, the drive parks at it);Where the agent can't see past the drive's reach, that stretch is pure pursuit at
pursuit_speed(5 m/s).Manoeuvre legs (backing up, or the forward part of a multi-point turn) are pure pursuit about the rear axle, in the leg's gear, at
manoeuvre_speed(1.5 m/s). The agent stops at the cusp, then takes the next leg.sim_world::override_command(i, steer, accel)replaces the drive's command for one step: the kinematic arm integrates it, and a plant takes it as its command.sim_world::set_poseplaces an agent on the kinematic arm. A plant owns its vehicles' poses, so there it returns false.R3: vehicle routes in
nav_finaleOn a plant (
--plant humvee), the finale replaces its A* spines with vehicle routes:plant_limits,plant_plan_of);The kinematic arm keeps its A* spines.
Measured
A Humvee facing the end of an 8 m dead end, with its goal behind it:
nav_route_follower_test)nav_plant_test)Austin finale, 900 frames, 8 vehicles:
Planning the 8 routes takes 220-460 ms at the start, and about 4.5 s over the run.
Locally (Windows, MSVC):
nav_route_follower_test4/4,nav_vehicle_route_test7/7,nav_plant_test15/15, and 348/348 nav, sim, plant and physics ctest cases.Next