Skip to content

Via Points and Point Goals#

A goto request can name the points that its route passes through (via) and can end at a point (point) instead of a field. The route is planned on the road graph of the map, through each point in order. It is one route with one leg corridor, built and checked as today. The vehicle does not stop at a via point.

Extension Points That Exist#

These are the ways to change a route without a change of the library. None of them gives a route through given points or a goal that is not a field or H.

Extension Point What It Can Do Why It Is Not Enough
A proposed skill (skill.json, Config/schemas/skill.schema.json) A name, ends, tighter limits, up to 4 numbers for the proposer The route is the planner's route to a field or to H. The numbers go to the proposer, not to the planner
A proposer's chunks Any motion inside the corridor The checker refuses each chunk outside the corridor of the planned leg. A different route is outside it
Cost tables (tables) The cost of each edge of the graph The same for each request. They cannot make one request pass a point. A goal is still a field
A map of its own (map) A different scouting map A map for each request is not a request argument. A point is still not a field

The Request#

Argument Skills Value
via goto (also goto H), return_home, a proposed skill on place or home that declares it A list of 1 to ACRES_RT_VIA_MAX (8) points, in order
point goto, a proposed skill on place that declares it One point. The request has place or point, not both

A point is {"x": east_m, "y": north_m} in the frame of the map (the frame of the pose), or {"lat": deg, "lon": deg}. All points of one request use one form. A vehicle converts latitude and longitude with the georeference of its pose source (acres_runtime_vehicle_set_georef: the datum and the epoch of the pose). A vehicle with no georeference, and the skill world, refuse latitude and longitude (refused_request).

{"place": "RF001", "via": [{"x": 120.5, "y": 85.0}, {"lat": 40.4712, "lon": -86.9981}], "speed_cap_mps": 2.0}
{"point": {"lat": 40.4694863, "lon": -86.9912752}}

A proposed skill takes via and point only when its description declares them, with the types "points" and "point". A description with limits.places refuses a point: a point is not a listed place.

The skill world (acres_runtime_skills_request) refuses via and point. Its caller gives the route, and the library does not plan it there.

The Route#

  1. Snap. Each point goes to the nearest point of a lane of the transit graph (the edges of the kind entry are not used). The distance limit is 25 m, the reach of the start from a pose. A point farther away refuses the request with refused_request: via 2 (x, y) is 41.3 m from the nearest lane; the limit is 25 m.
  2. Split. The piece of the network under the snapped point is split there. The snapped point is a node of a copy of the network for this request. The two parts keep the map edge of the piece. They share its cost by their lengths (Share). Thus the edge costs of the cost tables apply unchanged. A point within 0.5 m of a node is that node.
  3. Start. The start from the pose (start_from_pose) runs on the copy. A via point within 5 m of the pose is passed already and is dropped.
  4. Chain. The library finds the cheapest route from the start node to via point 1. Then it finds the route from via point 1 to via point 2, and continues to the last point. It uses the search of today (FNetwork::Route, the cost tables and the U-turn penalty). Each search starts with the heading of the arrival of the search before it. The last search ends where the request ends: the access point of the field (as today), H, or the point.
  5. One leg. The routes are joined in order into the input of one leg. A field goto keeps its legs (GoTo, Scout, Return) and only the GoTo leg is different. A return_home keeps its Return leg with the approach to H. The leg is smoothed, bounded and limited as today, and its corridor is built along the whole leg (FScoutingWorld::Corridor). No stop and no leg end is at a via point.
  6. Check. The joined path must pass within 3 m of each snapped via point (the smoothing moves it by less). Else the request is refused. The route information has the snap distance and the path distance of each point.

The plan, the plan check, the limits of the run (check_mission, the turn rules, the area) and the command chain are those of today.

A Point Goal#

Deliveries (8 Nov 2026). On a map of roads only (scouting_map.json fields with delivery), a goto to a field is a point goal. The goal is the delivery spot of the field nearest to the vehicle. The skill scout is refused. The skill world takes a point goal too: its caller reads the point (acres_runtime_skills_pending_point), plans the route with has_goal and gives it with acres_runtime_skills_route_goal. acres_runtime_routes_delivery gives the delivery spot of a field.

A point goal is a mission with no field. Its path is one leg from the pose to the snapped point. The leg has the kind Return. The mission automaton of a mission with no field is idle -> returning -> done, and that leg is its leg 0.

The end of the mission is the stop at the goal pose: the tracker gets the goal pose (the snapped point and the direction of the path there) where a Return gets the home pose. The success test of today then applies: within home_distance_m of the goal, slower than stopped_speed_mps, and the heading within home_heading_rad. The speed profile ends at 0 at the point. The home approach (the stop poses of the garage) and the slow zone of the last 35 m before H are not used. The request is a goto: the event and the result name the skill goto.

What Does Not Change#

Model Lean Change
Shield, speed envelope, command path, gear logic, trajectory checker Shield/, Trajectory/ (the command path and the gear logic: property tests since 18 Nov 2026) None. The code is not changed
Planner (acres_runtime_planner_solve) Planner/Model.lean None. A field goto plans its fields as today. A point goal has no field and does not call the planner (as return_home today)
Plan checker (acres_runtime_plan_check) Planner/Model.lean None. Its input is the stops of the fields. The vias do not change them. The model does not check the geometry
Mission automaton (acres_runtime_automaton_step, automaton_leg) Mission/Automaton.lean None. A field goto with vias has the legs of today. A point goal is a mission of 0 fields: the automaton of n = 0

What changes is outside the proved models. It is the route geometry (routes, not proved, verification.md: "No proof covers ... the geometry") and the request arguments. It is also the pose that the tracker's milestone test of the stop compares with (the code that raises the events of the automaton is not proved). For each request without via and point, the code takes the same path as before. The network is not copied, and the tracker gets the home pose.

Interfaces#

  • skills.h: AcresRtSkillArgs gains via_count, via[ACRES_RT_VIA_MAX][2], has_point, point[2] and geographic. The events and the results carry them.
  • routes.h: AcresRtRouteRequest gains via_xy, via_count, has_goal, goal_xy. AcresRtRouteInfo gains via_count, via_snap_m, via_path_m and goal_pose.
  • vehicle.h: acres_runtime_vehicle_set_georef.
  • proposed.h: AcresRtProposedSkill gains takes_via and takes_point. Config/schemas/skill.schema.json: the argument types points and point.
  • The node: the skill action and first_skill_args pass the JSON text on. The node gives the vehicle its georeference.

Tests#

Tests/Runtime/via_tests.cpp tests these items:

  • The route through the via points: the path passes each point, in order, in one GoTo leg.
  • The snap and its refusal.
  • The corridor along the leg at each via point: no gap, the half widths of the neighbours.
  • A point goal: one Return leg, the end at the snapped point.
  • The same path as before without via.
  • The request checks: both place and point, via on scout, latitude and longitude without a georeference.
  • A vehicle skill to a point that ends done at the point.