Manuscript Offprint
arXiv:2610.32633Natural-Language to Nav2: Operational Policies for Costmap-Based Navigation
Abstract
Autonomous mobile robots support material transport in warehouses and industrial facilities, where navigation must adapt to changing operating conditions. Sensor observations reveal physical obstacles, but do not by themselves specify temporary access rules, route preferences, or exceptions known to operators. This paper presents a natural-language policy interface that brings this knowledge into ROS 2 Nav2. A local large language model converts instructions into JSON policies specifying destinations, spatial constraints, and temporal or event conditions. Deterministic checks govern mission acceptance, and three costmap adapters project accepted policies into the existing navigation stack without changing its planner or controller. On 150 researcher-authored English commands, four local models produce 107–142 correct accepted policies, compared with 44 for a rule-based parser, with 3–20 incorrect acceptances per model. Fault injection records rejection of eight endpoint/JSON faults and 29 validator-stage faults. Navigation experiments use correct task policies to evaluate keepouts, zone costs, person-dependent regions, and event-conditioned passage in simulation and on a TurtleBot3. For Tasks 1–3, mean travel times are 18.4–24.5% lower in simulation and 23.1–35.0% lower on the physical testbed than with the baseline lacking those policies. A native KeepoutFilter comparison and two-robot demonstrations examine basic keepout behavior and shared policy projection. The interface connects operator instructions to explicit navigation policies while retaining Nav2's planning and control components.
Keywords: mobile robot navigation; natural-language policies; large language models; ROS 2 Nav2; costmaps.
1 Introduction
Autonomous mobile robots (AMRs) support material transport in warehouses and industrial facilities [1, 2]. Their navigation must account for changing workspace conditions as well as the destination of each delivery [3]. Some of these conditions are operating rules: an aisle may be reserved for loading, a corridor may be closed for a shift, or an emergency may permit an otherwise restricted passage. Sensors can detect an obstruction, but its expected duration and permitted exceptions require additional information. Operators need a way to make this knowledge available to the robot when planning a mission.
ROS 2 Nav2 provides planners and controllers for mobile navigation [4]. Layered costmaps combine spatial information [5], and native keepout filters can receive updated masks during operation [6]. These mechanisms provide a means to apply constraints once they have been expressed in a form the navigation stack can use. An instruction such as “avoid Zone A for the next thirty minutes” also requires the system to identify the zone, retain the restriction, and determine when it expires. The problem addressed here is to connect such instructions to Nav2 with explicit rules for policy acceptance, mission replacement, and restriction lifetime.
We introduce a natural-language policy interface that represents destinations together with constraints on reaching them. A locally hosted large language model (LLM) translates each instruction into a structured policy. The bridge checks the complete candidate against the schema and execution context before accepting it. Accepted state supplies waypoint goals and inputs to three costmap adapters for keepouts, zone costs, and object-avoidance regions (Figure 1). The same policy-derived updates can be sent to independent robot instances.
The LLM operates when a policy is submitted, outside the navigation control loop. NavFn computes the global path and DWB controls local motion. The intermediate policy makes the requested destinations, constraints, and conditions available for inspection. Structural acceptance and semantic correctness remain distinct: a candidate may satisfy the interface contract while naming a waypoint the operator did not request. The evaluation measures both.
The work makes three contributions. (1) A policy schema represents destinations together with spatial constraints and temporal or event conditions, providing a common interface between language interpretation and navigation. (2) Transactional acceptance checks the complete candidate against the schema and execution context before replacing the mission snapshot; rejection preserves the preceding mission, while retained restrictions are managed separately. (3) Nav2 projection translates accepted state into waypoint goals and keepout, soft-cost, and object-avoidance inputs for the existing navigation stack, including shared policy updates to independent robot instances.
The evaluation follows this architecture. A 150-command benchmark measures conversion accuracy and accepted errors, and fault injection examines rejection and state preservation. Simulation and physical trials examine route selection under task policies, including a separate comparison of event-conditioned passage permissions.

Figure 1. The policy interface has three stages. The LLM receives an instruction and registered map labels. Parsing, validation, and execution-context checks govern mission acceptance. Accepted state supplies waypoint goals; policy state and separately maintained restrictions determine the cost contributions. Standard sensor layers, inflation, NavFn, and DWB remain in the navigation stack. The example shows selected policy fields.
LLM-A* uses language-model guidance in heuristic search [9], and 3P-LLM studies language-model-based path planning [10]. In our system, the model selects registered destinations and policy parameters; Nav2 computes geometric paths.
Context in costmaps. Layered costmaps combine spatial information from different sources [5]. Dynamic-obstacle extensions include the ROS 2 layer approach of Cen Cheng et al. [2] and the velocity-obstacle costmap of Chen et al. [11]. Sani et al. use pixel-level image classification to revise local traversal costs for agricultural navigation [12]. Our adapters project accepted operator policies into this costmap representation.
Nav2 and operational management. Nav2 separates planning and control from costmap generation [4]. Its native KeepoutFilter accepts occupancy-grid masks and processes new masks at runtime [6]. Table 1 compares this filter mechanism with the policy-management functions of our interface. The native/custom experiment isolates their common keepout function.
Industrial studies address fulfillment operations [1], knowledge-based material handling [3], and multi-AGV collision and deadlock resolution [13]. Our policy-sharing experiment distributes common restrictions to independent Nav2 instances.
Table 1. Keepout filtering and policy management. The native column covers KeepoutFilter; Nav2 task orchestration lies outside that component.
| Aspect | Native KeepoutFilter [6] | Proposed policy interface |
|---|---|---|
| Policy validation | Filter metadata checks | Whole-candidate schema, conflict, and context checks |
| Mission replacement | Outside filter scope | Replace mission snapshot; preserve separately managed restrictions |
| Restriction lifetime | Retained mask; externally updated | Mission-scoped, permanent, and timed restrictions |
| Event handling | External mask updates | Event-conditioned permissions with priorities |
3 From an Instruction to a Navigation Policy
The system treats an operating instruction as a proposed change to a mission. Figure 1 follows that change from language input to robot motion. Interpretation produces a candidate, acceptance establishes the new mission state, and projection converts the applicable rules into Nav2 inputs. All LLM inference runs on an on-premises workstation connected to the robots through the local network.
3.1 A schema for destinations and operating rules
An operator publishes an instruction on /nl_command. A frozen local LLM receives the sentence, the registered zone and waypoint context, an output schema, and example conversions. No model weights are fine-tuned. Waypoint labels resolve to stored poses and zone labels resolve to map-frame geometry. This avoids asking the model to invent region coordinates.
Table 2 groups the policy fields by execution role. For example, “Go to waypoint 6 via Zone B, but do not use Zone A” requests a destination, a required transit zone, and a keepout. “Set the cost of Zone A to 200 and Zone B to 160, then go to waypoint 4” adds relative traversal costs. Temporal exclusions and conditional rules carry the lifetime or event scope that would otherwise be lost when reducing a command to a destination alone.
Table 2. The JSON policy contract. A candidate may also explicitly reject an instruction using decision and reason_code.
| Fields | Interpretation and execution |
|---|---|
| plan, via_zones | Ordered destinations and required transit zones. The bridge resolves transit waypoints and builds the goal sequence. |
| exclusions | Zones to keep closed, with optional duration or absolute time interval. |
| weights | Integer zone costs for traversal preferences. |
| dynamic_object_rules | Object class and avoidance radius used around detections. |
| conditional_rules | Zone actions selected by event/state conditions and priority. |
3.2 Acceptance depends on the candidate and the current context
An endpoint failure or malformed JSON is rejected before a policy object reaches the validator. A parsed candidate is checked for required structure, data types, registered identifiers, admissible values, and conflicts among fields. A zone cannot simultaneously be a required transit region and an exclusion. Conflicting costs for the same zone also invalidate the candidate. The entire update is rejected if a check fails. Valid fields are not applied selectively, and invalid numbers are not clipped.
The schema admits person and forklift object rules with finite radii from 0.1 to 10 m. Durations must be positive and no greater than 1,440 minutes; absolute intervals require ordered endpoints. Conditional rules use default, fire_alarm, or low_battery and the actions forbid, allow, or allow_shortest. Default rules only forbid. Equal-priority conflicts, incompatible actions, and event priorities that fail to exceed a default prohibition are rejected. Keepout and soft-cost assignments to the same zone are checked for conflict.
A structurally admissible candidate can still conflict with a restriction already in force. The execution-context check tests required transit zones against effective keepouts, including permanent restrictions, retained timed restrictions, and applicable event permissions. It rejects an incompatible candidate without deleting the transit requirement. These checks establish structural and contextual consistency; they cannot detect every requirement omitted from the instruction.
Let denote the mission snapshot, the separately maintained restrictions, and the event state. Validation and context checking yield a normalized candidate or rejection . The commit operation is
Acceptance replaces the complete mission snapshot within the bridge; downstream costmap and robot updates are asynchronous. An ordinary exclusion or cost omitted from the next mission is not inherited. Permanent keepouts and scheduled restrictions have their own lifetime and remain governed by . A rejected update preserves the prior mission and produces no goal or policy projection for that candidate. Timers and event processing continue normally.
Commands received during a mission enter a first-in, first-out queue. The bridge checks a queued candidate again before committing it, because restrictions may have changed while it waited. A replacement is rechecked before the active goal is cancelled. Applying the same normalized static policy again preserves its content, although counters and repeated navigation requests can change. These semantics are examined by the implementation checks in Section 4.3.
3.3 Projecting the applicable policy into Nav2
The bridge sends goals through /follow_waypoints and supplies three global-costmap adapters. Each adapter uses the global map frame and costmap resolution. In the source code, KeepoutLayer and SoftCostLayer are named KeepoutCommandLayer and ZoneSoftCostLayer. Policy costs shape the global path; they are not supplied to the local costmap, so this configuration does not enforce policy restrictions as hard constraints on local-controller trajectories [14].
KeepoutLayer. The bridge evaluates active zone restrictions and publishes the resulting list on /forbiddenzones_update. The layer assigns lethal-obstacle cost 254 to the corresponding grid cells. Expiry or an event permission removes that policy contribution. Sensor obstacles remain active. Native KeepoutFilter offers the equivalent basic keepout mechanism through occupancy-grid masks [6].
SoftCostLayer. Integer values on /zone_cost_overrides assign traversal costs from 0 to 252. Higher values discourage traversal without introducing a lethal region. Nav2 reserves 253 for inscribed obstacles, 254 for lethal obstacles, and 255 for unknown space. NavFn treats 253 as an obstacle, so it is excluded from the soft-cost range. Invalid direct cost messages are rejected while the preceding valid costs remain in effect.
ObjectAvoidanceLayer. YOLOv8 detections and RGB-D depth provide object locations transformed into the map frame. The layer receives them on /object_world_positions and applies cost 254 within the policy radius supplied through /object_avoidance_radius. Detection persistence and expiry govern removal of the contribution. The experiments use person detections. The configured radius sets the spatial extent of the policy cost region.
For known cells, the combination before inflation is
The layer order is static, obstacle, keepout, soft cost, object avoidance, and inflation. Inflation preserves higher known costs, so its gradient can mask a smaller soft cost. Unknown space follows Nav2's updateWithMax behavior: an unknown layer value contributes nothing, and a known layer value can replace an unknown master value [15]. Equation (2) applies only to known cells. A low soft cost cannot clear an obstacle.
3.4 Time, events, and more than one robot
A timed keepout remains separate from ordinary mission replacement. Wall-clock endpoints are mapped to the node's ROS clock and activated or expired through ROS timers. Simulation shares /clock with Nav2; the physical setup uses a common system clock. An event rule can permit passage through a normally forbidden zone. Its activation removes the applicable policy keepout while retaining sensor costs and restrictions configured to disallow overrides.
Shared policy-derived updates are distributed through ROS 2 topics to each robot's adapters. Every robot retains its own localization, sensor layers, planner, and controller. Matching policy regions can therefore coexist with different complete costmaps and paths. The two-robot experiments examine this common-policy projection.
4 Interpreting Instructions and Containing Invalid Updates
The interface evaluation measures conversion into the intended policy, including correct acceptance and accepted semantic errors. Fault injection tests rejection and preservation of the active mission.
4.1 Commands, models, and scoring
The benchmark contains 150 English commands built from ten policy intentions, five phrasing levels, and three variants per intention-level combination. The intentions cover keepouts, ordered destinations, numeric zone costs, required transit, person avoidance with default or explicit radii, timed restrictions, event overrides, combined keepout/transit requirements, and multi-field policies. L0 is direct wording, L1 uses workplace phrasing, L2 redistributes or reorders clauses, L3 includes corrections or distracting content, and L4 expresses the requirement indirectly.
Four frozen local models are evaluated: Llama 3.1-8B, Qwen2.5-7B, Qwen3-8B, and Qwen3.5-9B. Each uses the same schema prompt and 15 input-output demonstrations, with temperature 0, top_p=0, and seed 42. A deterministic keyword-and-slot parser provides the comparison. It extracts the same policy categories through fixed patterns. None of the demonstration sentences appears verbatim in the benchmark. The research team developed the prompt, demonstrations, parser, reference policies, and AI-assisted command set.
A correct policy must match the reference destinations and order, transit zones, exclusions and timing, costs, object radii, and event rules without adding an executable element. Correct acceptance compares the full normalized policy with the reference after admission by the validator. Raw accuracy evaluates the generated policy before validation, retaining additional or malformed entries (Supplementary Material, Section S7). Every command has one processing outcome: correct acceptance, incorrect acceptance, interpreter rejection, parsing rejection, or validator rejection. Explicit interpreter rejection is counted first and is not counted again at the validator.
Five fixed-setting calls per command produce unchanged aggregate counts. The analysis uses 150 commands as its denominator. Nominal Wilson intervals describe command-level proportions but do not model shared intentions, paraphrase dependence, or development bias. Latency measures candidate generation from submission on an AMD Ryzen 5 5600X workstation with 32 GB RAM and an RTX 3060 with 8 GB VRAM.
4.2 Conversion accuracy and accepted semantic errors
Table 3. Policy conversion on 150 commands per method. Correct and incorrect columns both count accepted policies. The nominal Wilson interval applies to correct acceptance.
| Method | Correct | Incorrect | 95% CI (%) | Mean latency |
|---|---|---|---|---|
| Rule-based parser | 44 | 101 | [22.6, 37.1] | 0.175 ms |
| Llama 3.1-8B | 107 | 20 | [63.6, 78.0] | 2.533 s |
| Qwen2.5-7B | 122 | 10 | [74.3, 86.8] | 1.694 s |
| Qwen3-8B | 141 | 7 | [89.0, 96.8] | 1.800 s |
| Qwen3.5-9B | 142 | 3 | [89.8, 97.3] | 3.011 s |
Correct acceptances range from 107/150 to 142/150 for the LLMs, compared with 44/150 for the parser (Table 3). The parser scores at L0 and at the other levels. Qwen3.5-9B and Qwen3-8B achieve similar observed accuracy, with 142 and 141 correct acceptances, and retain greater accuracy across phrasing variations (Figure 2).
Among accepted policies, 20/127 (15.7%), 10/132 (7.6%), 7/148 (4.7%), and 3/145 (2.1%) are incorrect for the four LLMs, respectively. Six of these 40 model-command cases omit a requested keepout or person-avoidance rule. Section S7.4 classifies their potential operational effects.
LLM generation latency is 1.694–3.011 s, versus 0.175 ms for the parser. This cost occurs outside the planner and controller update cycles.

Figure 2. Post-validation exact-match accuracy across five phrasing categories, with 30 commands per category. Exact counts and the complete acceptance/rejection breakdown are provided in the Supplementary Material.
4.3 Fault containment and successive missions
The software fault-injection evaluation separates eight endpoint/JSON failures from 29 validator-stage faults. The latter comprise eight schema/type errors, eleven domain/range errors, and ten time/conflict errors. Containment requires rejection of the whole update, preservation of the preceding valid mission, and no new navigation goal or costmap projection for the rejected candidate.
Table 4. Injected faults and their containment stage. All 37 faults preserve the prior mission state and produce no new policy projection. Six admissible controls are evaluated separately.
| Fault class | Injected | Rejected | Stage |
|---|---|---|---|
| Endpoint/JSON | 8 | 8 | Before validation |
| Schema/type | 8 | 8 | Validator |
| Domain/range | 11 | 11 | Validator |
| Time/conflict | 10 | 10 | Validator |
All 37 faults are contained, and six admissible controls produce the expected state behavior (Table 4). A separate set of 100 contradictory instructions tests whether the interpreter recognizes a conflict before the structural validator sees it. Recognition ranges from 45/100 to 100/100 across the LLMs, and rejection at the policy-acceptance boundary ranges from 96/100 to 100/100. The parser scores 24/100 for both. If interpretation drops one conflicting clause, the validator receives an apparently consistent candidate. The category-level results are included in the Supplementary Material.
Software regression checks also cover mission replacement, retained keepouts, expiry, duplicate policy content, and replacement rejection before goal cancellation. These checks use instrumented interfaces; their configuration and results are detailed in the Supplementary Material.
5 How Operating Policies Change Navigation
The navigation experiments use correct operating policies to isolate the route-selection effects of supplying operating constraints through the policy interface. The destination and the navigation algorithms are held fixed within each comparison. The experimental difference is the information supplied to the costmap, or, for the event task, whether a passage permission is active.
5.1 Testbeds and comparison conditions
The simulation uses a 25.9 m by 41.6 m warehouse in Gazebo. A DeliveryRobot model travels at up to 0.44 m/s with a 2D LiDAR (1-degree resolution, 5 Hz) and a forward-facing RGB-D camera. The parallel aisles provide alternative routes around shelves and task-specific obstructions (Figure 3).

(a) Warehouse and robot

(b) Registered waypoints and mission routes
Figure 3. Simulation testbed. Aisles are numbered from top to bottom. Tasks 1 and 4 connect WP1 to WP2; Task 2 follows WP5–WP6–WP4–WP3–WP5; Task 3 connects WP7 to WP8. Arrows indicate schematic mission segments.
The physical experiments use a TurtleBot3 Waffle in a maze, limited to 0.22 m/s, with an LDS-02 LiDAR, RealSense D435, and Jetson Orin Nano (Figure 4). YOLOv8 runs on the Jetson. Policy conversion and Nav2 run on the networked workstation.

(a) Physical maze

(b) Waypoint map
Figure 4. Physical testbed. Task 1 connects WP1 to WP2, Task 2 WP3 to WP4, Task 3 WP5 to WP6, and Task 4 WP4 to WP1. The map shows the waypoint connections for the four tasks.
Tasks 1–3 compare Baseline, which uses NavFn, DWB, and standard sensor layers, with Policy, which adds the accepted operating constraints through the adapters. Task 4 compares Priority-Off and Priority-On within the policy-enabled stack. Both retain the same sensor information; the latter activates a permission to cross a normally forbidden connection.
The navigation summaries report ten complete runs per condition. Start pose, destination, map, and task-specific obstacle conditions remain fixed. Time and traveled distance are measured from mission start to completion. Simulation Task 2 measures the entire multi-waypoint mission in both conditions.
Mean travel time and distance are compared using Welch's two-sample t-test, with 95% confidence intervals for the mean differences (Tables 5 and 6). Statistical details are provided in the Supplementary Material.
5.2 Avoiding a known closure and choosing among open aisles
Task 1 places a blockage in the direct corridor. Baseline approaches the blocked route before taking an alternative. Declaring the region as a keepout allows the initial policy-informed path to bypass it, as illustrated by the simulation traces in Figure 5. Mean time falls from 114.009 to 86.125 s in simulation and from 62.179 to 40.390 s in the physical maze. The respective traveled distances decrease from 48.572 to 37.245 m and from 11.993 to 8.138 m.

(a) Baseline

(b) Policy
Figure 5. Representative simulation Task 1 trajectories. Supplying the closure before navigation changes the initial route and avoids the approach to the blocked aisle.
Task 2 combines route choice with a longer mission. In simulation, exclusions close the third and fourth aisles and differential costs express preferences among the remaining alternatives. The complete mission changes from 311.369 to 238.751 s and from 126.152 to 96.003 m. In the physical task, zone costs favor the corridor containing a small box over the corridor occupied by another AMR. Mean time decreases from 55.849 to 42.959 s and distance from 10.850 to 8.303 m. The corresponding trajectory comparisons for both environments appear in the Supplementary Material.
5.3 Applying a person-dependent cost region
In Task 3, a person detection activates the configured avoidance region. Figure 6 places the physical scene beside the resulting RViz costmap, making the connection between detection and the planning representation visible. The additional region changes which route the robot selects.

(a) Person in the physical testbed

(b) Policy-induced cost region
Figure 6. Task 3 in the physical maze. A detected person activates the policy-defined object region in the costmap used for planning.
Mean time changes from 142.049 to 115.872 s in simulation and from 42.109 to 32.160 s in the physical experiment. Distance decreases from 61.185 to 49.527 m and from 8.020 to 6.394 m, respectively. These are route-selection results for the tested person configuration.
5.4 Opening a passage when an event changes the policy
Task 4 tests a change in permission. A fire-alarm state allows a connection that the ordinary policy forbids. Sensor-derived obstacles remain active in both conditions. The physical Priority-Off route must follow a long detour, and Priority-On can use the released passage (Figure 7). Time falls from 46.280 to 26.640 s and distance from 9.308 to 5.165 m. The simulation geometry produces a smaller change, from 86.170 to 81.056 s and from 37.241 to 34.699 m.

(a) Priority-Off

(b) Priority-On
Figure 7. Representative physical Task 4 trajectories. The active passage permission allows a more direct route within the same policy-enabled stack. Priority-Off and Priority-On differ only in this policy permission.
Across Tasks 1–3, mean time reductions are 18.4–24.5% in simulation and 23.1–35.0% physically. The separate priority contrast yields 5.9% and 42.4%. The approximate 95% intervals in Tables 5 and 6 exclude zero for all time and distance comparisons. The gains arise from the supplied operating information and its effect on Nav2 costs.
Table 5. Simulation navigation: travel time and distance (mean ± sample SD, n = 10 per condition). Intervals are approximate 95% Welch confidence intervals for the indicated difference, in the metric's units.
| Task | Metric | Baseline | Policy | 95% CI: Baseline – Policy |
|---|---|---|---|---|
| 1 | Time (s) | 114.009 ± 0.721 | 86.125 ± 0.230 | [27.356, 28.412] |
| 1 | Distance (m) | 48.572 ± 0.108 | 37.245 ± 0.108 | [11.226, 11.428] |
| 2 | Time (s) | 311.369 ± 1.444 | 238.751 ± 3.643 | [69.912, 75.324] |
| 2 | Distance (m) | 126.152 ± 0.180 | 96.003 ± 0.177 | [29.981, 30.317] |
| 3 | Time (s) | 142.049 ± 0.315 | 115.872 ± 0.790 | [25.590, 26.764] |
| 3 | Distance (m) | 61.185 ± 0.140 | 49.527 ± 0.340 | [11.405, 11.911] |
| Task | Metric | Priority-Off | Priority-On | 95% CI: Off – On |
| 4 | Time (s) | 86.170 ± 0.456 | 81.056 ± 0.328 | [4.738, 5.490] |
| 4 | Distance (m) | 37.241 ± 0.186 | 34.699 ± 0.121 | [2.393, 2.691] |
Table 6. Physical-testbed navigation: travel time and distance (mean ± sample SD, n = 10 per condition). Intervals are approximate 95% Welch confidence intervals for the indicated difference, in the metric's units.
| Task | Metric | Baseline | Policy | 95% CI: Baseline – Policy |
|---|---|---|---|---|
| 1 | Time (s) | 62.179 ± 1.322 | 40.390 ± 1.213 | [20.596, 22.982] |
| 1 | Distance (m) | 11.993 ± 0.210 | 8.138 ± 0.190 | [3.667, 4.043] |
| 2 | Time (s) | 55.849 ± 0.687 | 42.959 ± 1.079 | [12.029, 13.751] |
| 2 | Distance (m) | 10.850 ± 0.080 | 8.303 ± 0.156 | [2.428, 2.666] |
| 3 | Time (s) | 42.109 ± 2.073 | 32.160 ± 1.153 | [8.341, 11.557] |
| 3 | Distance (m) | 8.020 ± 0.352 | 6.394 ± 0.216 | [1.348, 1.904] |
| Task | Metric | Priority-Off | Priority-On | 95% CI: Off – On |
| 4 | Time (s) | 46.280 ± 0.341 | 26.640 ± 0.230 | [19.364, 19.916] |
| 4 | Distance (m) | 9.308 ± 0.047 | 5.165 ± 0.018 | [4.108, 4.178] |
6 Checking the Nav2 Integration
The remaining experiments isolate the basic keepout function and examine two behaviors that extend beyond a single static mission: expiration of a restriction and distribution of a policy to two robots.
6.1 Native KeepoutFilter and the custom adapter
A direct control bypasses the LLM, validator, and bridge. Native KeepoutFilter receives an occupancy-grid mask and CostmapFilterInfo; custom KeepoutLayer receives the equivalent Zone A restriction on /forbidden_zones_update. The comparison uses ROS 2 Humble, Nav2 1.1.20, Gazebo Classic 11, and the factory6 map, with WP2 as the destination.
Five runs per condition independently restart Gazebo, the robot, AMCL, and Nav2. Conditions alternate and the simulation seed is fixed at 42. Mask raster boundaries, global resolution (0.05 m), inflation radius (1.3 m), scaling factor (3.0), and robot radius (0.65 m) are matched. Native applies an additional InflationLayer after KeepoutFilter in the filter sequence; Custom applies inflation after its keepout plugin. The Supplementary Material gives the complete measurement definitions and pre-motion procedure.
Table 7. Direct keepout control, with five restarted runs per condition. Values are mean ± sample SD. Travel time starts at first detected motion and ends at the waypoint-action completion result.
| Method | Completed | Distance (m) | Time (s) |
|---|---|---|---|
| Native KeepoutFilter | 5/5 | 37.339 ± 0.103 | 86.430 ± 0.236 |
| Custom KeepoutLayer | 5/5 | 37.300 ± 0.131 | 86.351 ± 0.329 |
Both methods complete every run (Table 7). In pre-motion planning checks, both methods produce paths that avoid the forbidden zone, cross it after release, and avoid it again after reapplication. Five costmap comparisons record no differences among 45,384 sampled cells in the zone and its 1.3 m surrounding region. Release restores those sampled costs, including the inflation region. Both implementations applied the tested keepout updates successfully and produced similar mean travel distances and times.
6.2 Restriction expiry and shared policies
A simulation sequence follows a timed keepout through activation, expiry, and replanning. The robot initially detours around Zone A. After the timer expires, the same destination remains active and Nav2 replans through the released region. The three costmap views are included in the Supplementary Material.
Shared-policy demonstrations use two DeliveryRobots in simulation and two TurtleBot3 robots in the physical testbed. Each pair receives common policy-derived updates and runs independent navigation instances. Figure 8 shows the physical pair's matching policy regions. The simulated pair is documented in the Supplementary Material. Local sensor costs and paths can differ because each robot plans from its own state.

(a) Robot 1

(b) Robot 2
Figure 8. Shared policy projection in the physical two-robot demonstration. Matching policy-induced regions are visible in both costmaps. Each robot retains its own sensor layers, localization, planner, and controller.
7 Discussion
An operating rule has a lifetime beyond the sentence that introduced it. The interface makes that lifetime explicit through mission replacement, retained restrictions, timers, and event state. This is particularly useful when the next instruction arrives before a previous restriction expires. The context check can reject a required transit zone that is currently closed without silently changing the requested mission.
The observed missing keepouts, omitted stops, and added goals motivate previews that place the instruction beside the proposed policy. Confirmation of critical restriction changes, targeted clarification of numeric roles, and authorization checks for persistent restrictions are candidate extensions for operator review. The benchmark, prompt, parser, and reference policies share a development process; evaluation with independently authored commands is needed to assess generalization.
The navigation experiments examine operating policies in two fixed layouts. The baseline lacks operating information that the policy-enabled condition receives. The navigation gains reflect the incorporation of this information into Nav2's costmap. Small run-to-run SDs describe these conditions. Additional layouts, obstacle behaviors, and instruction sources are needed to assess generalization. The configured radius specifies the costmap region; achieved clearance depends on perception and navigation execution.
8 Conclusion
We developed a policy interface that connects operator instructions to Nav2 through structured policies, deterministic acceptance, and explicit mission-state handling. The language benchmark quantifies both successful conversions and accepted semantic errors. Simulation and physical experiments demonstrate route changes under operating policies. In the direct keepout comparison, both implementations applied the tested prohibition, release, and reapplication updates successfully. Further evaluation should jointly measure mission completion and instruction compliance from natural-language input through robot execution.
Data and code. Code, benchmark data, and demonstrations are accessible through the project page. Implementation versions and additional experimental details are provided in the Supplementary Material.
References
[1] Italo Renan da Costa Barros and Tiago Pereira Nascimento. Robotic mobile fulfillment systems: A survey on recent developments and research opportunities. Robotics and Autonomous Systems, 137:103729, 2021. doi:10.1016/j.robot.2021.103729.
[2] Pangcheng David Cen Cheng, Marina Indri, Fiorella Sibona, Matteo De Rose, and Gianluca Prato. Dynamic path planning of a mobile robot adopting a costmap layer approach in ROS2. In IEEE International Conference on Emerging Technologies and Factory Automation (ETFA), pages 1–8, 2022. doi: 10.1109/ETFA52439.2022.9921458. URL https://iris.polito.it/handle/11583/2970835.
[3] Daniel Pakkala, Niko Känsäkoski, Tapio Heikkilä, Jere Backman, and Pekka Pääkkönen. On design of cognitive situation-adaptive autonomous mobile robotic applications. Computers in Industry, 167:104263, 2025. doi:10.1016/j.compind.2025.104263.
[4] Steve Macenski, Francisco Martín, Ruffin White, and Jonatan Ginés Clavero. The marathon 2: A navigation system. In IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 2718–2725, 2020. doi: 10.1109/IROS45743.2020.9341207. URL https://arxiv.org/abs/2003.00368.
[5] David V. Lu, Dave Hershberger, and William D. Smart. Layered costmaps for context-sensitive navigation. In IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 709–715, 2014. doi:10.1109/IROS.2014.6942636.
[6] Nav2 Developers. Nav2 1.1.20: KeepoutFilter implementation. Versioned source code, 2026. URL https://github.com/ros-navigation/navigation2/blob/1.1.20/nav2_costmap_2d/plugins/costmap_filters/keepout_filter.cpp. Accessed 22 October 2026.
[7] Anis Koubaa. ROSGPT: Next-generation human-robot interaction with ChatGPT and ROS. Preprints.org, version 2, 2023. URL https://www.preprints.org/manuscript/202304.0827/v2.
[8] Jacky Liang, Wenlong Huang, Fei Xia, Peng Xu, Karol Hausman, Brian Ichter, Pete Florence, and Andy Zeng. Code as policies: Language model programs for embodied control. arXiv preprint arXiv:2209.07753, 2022. URL https://arxiv.org/abs/2209.07753.
[9] Silin Meng, Yiwei Wang, Cheng-Fu Yang, Nanyun Peng, and Kai-Wei Chang. LLM-A*: Large language model enhanced incremental heuristic search on path planning. In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 1087–1102, 2024. doi: 10.18653/v1/2024.findings-emnlp.60. URL https://aclanthology.org/2024.findings-emnlp.60/.
[10] Ehsan Latif. 3P-LLM: Probabilistic path planning using large language model for autonomous robot navigation. arXiv preprint arXiv:2403.18778, 2024. URL https://arxiv.org/abs/2403.18778.
[11] Chin S. Chen, Chia J. Lin, Chun C. Lai, and Si Y. Lin. Velocity estimation and cost map generation for dynamic obstacle avoidance of ROS based AMR. Machines, 10(7):501, 2022. URL https://www.mdpi.com/2075-1702/10/7/501.
[12] Ettore Sani, Antonio Sgorbissa, and Stefano Carpin. Improving the ROS 2 navigation stack with real-time local costmap updates for agricultural applications. In IEEE International Conference on Robotics and Automation (ICRA), pages 17701–17707, 2024. URL https://arxiv.org/abs/2407.18535.
[13] Jerzy Zajac and Waldemar Malopolski. Structural on-line control policy for collision and deadlock resolution in multi-AGV systems. Journal of Manufacturing Systems, 60:80–92, 2021. doi: 10.1016/j.jmsy.2021.05.002.
[14] Nav2 Developers. Navigating with keepout zones. Official Nav2 documentation, 2026. URL https://docs.nav2.org/rolling/tutorials/general_tutorials/navigation2_with_keepout_filter/navigation2_with_keepout_filter/. Section 3: Enable Keepout Filter. Accessed 23 October 2026.
[15] Nav2 Developers. Nav2 1.1.20: CostmapLayer implementation. Versioned source code, 2026. URL https://github.com/ros-navigation/navigation2/blob/1.1.20/nav2_costmap_2d/src/costmap_layer.cpp. Accessed 22 October 2026.
Supplementary Material
This supplement provides detailed language outcomes, implementation checks, statistical calculations, and additional experimental views for Natural-Language to Nav2: Operational Policies for Costmap-Based Navigation.
S1 Language benchmark details
Table S1 includes raw policy matches, correct acceptances, nominal Wilson intervals, and generation latency. Table S2 supplies the proportions used in Figure 2; each level has 30 commands. The outcome partition in Table S3 distinguishes incorrect acceptance from rejection. All rows sum to 150.
Table S1. Policy-conversion results on 150 commands. Raw and Post-V count policies matching the reference before and after validation, respectively. The 95% Wilson interval is nominal and applies to Post-V. Latency concerns candidate generation only.
| Method | Raw | Post-V | Accuracy (%) | 95% CI (%) | Latency |
|---|---|---|---|---|---|
| Rule-based parser | 44/150 | 44/150 | 29.3 | [22.6, 37.1] | 0.175 ms |
| Llama 3.1-8B | 106/150 | 107/150 | 71.3 | [63.6, 78.0] | 2.533 s |
| Qwen2.5-7B | 122/150 | 122/150 | 81.3 | [74.3, 86.8] | 1.694 s |
| Qwen3-8B | 141/150 | 141/150 | 94.0 | [89.0, 96.8] | 1.800 s |
| Qwen3.5-9B | 142/150 | 142/150 | 94.7 | [89.8, 97.3] | 3.011 s |
Table S2. Post-validation exact-match accuracy (%) by phrasing level, with 30 commands per level.
| Method | L0 | L1 | L2 | L3 | L4 |
|---|---|---|---|---|---|
| Rule-based parser | 60.0 | 20.0 | 30.0 | 26.7 | 10.0 |
| Llama 3.1-8B | 83.3 | 80.0 | 80.0 | 53.3 | 60.0 |
| Qwen2.5-7B | 83.3 | 86.7 | 83.3 | 70.0 | 83.3 |
| Qwen3-8B | 100.0 | 93.3 | 100.0 | 90.0 | 86.7 |
| Qwen3.5-9B | 100.0 | 93.3 | 100.0 | 86.7 | 93.3 |
Table S3. Mutually exclusive processing outcomes, each row summing to 150. Interpreter rejection denotes an explicit model or parser rejection.
| Method | Accepted | Rejected by | |||
|---|---|---|---|---|---|
| Correct | Incorrect | Interpreter | Parsing | Validator | |
| Rule-based parser | 44 | 101 | 5 | 0 | 0 |
| Llama 3.1-8B | 107 | 20 | 0 | 0 | 23 |
| Qwen2.5-7B | 122 | 10 | 3 | 0 | 15 |
| Qwen3-8B | 141 | 7 | 1 | 0 | 1 |
| Qwen3.5-9B | 142 | 3 | 4 | 0 | 1 |
S1.1 Contradictory instructions
Each contradiction category contains 20 commands. C1 combines forbidden and required transit through a zone; C2 specifies simultaneous open/closed requirements; C3 requests incompatible sole final destinations; C4 contains conflicting rules for the same event; C5 has overlapping timed conflicts. Each command is evaluated five times at fixed settings; intervals use the 100 distinct commands as the denominator.
Table S4. Contradiction recognition by category (%,20 commands each) and overall counts out of 100. Recognized denotes explicit contradiction recognition; Blocked denotes rejection at the policy-acceptance boundary.
| Method | C1 | C2 | C3 | C4 | C5 | Recognized | Blocked |
|---|---|---|---|---|---|---|---|
| Rule-based parser | 20 | 10 | 0 | 40 | 50 | 24/100 | 24/100 |
| Llama 3.1-8B | 55 | 55 | 90 | 15 | 10 | 45/100 | 96/100 |
| Qwen2.5-7B | 85 | 90 | 90 | 55 | 65 | 77/100 | 97/100 |
| Qwen3-8B | 100 | 90 | 100 | 85 | 85 | 92/100 | 99/100 |
| Qwen3.5-9B | 100 | 100 | 100 | 100 | 100 | 100/100 | 100/100 |
Table S5. Nominal 95% Wilson intervals (%) for the 100-command contradiction results. The same command-level and shared-category limitations apply as in the conversion evaluation.
| Method | Recognition | Boundary containment |
|---|---|---|
| Rule-based parser | [16.7, 33.2] | [16.7, 33.2] |
| Llama 3.1-8B | [35.6, 54.8] | [90.2, 98.4] |
| Qwen2.5-7B | [67.8, 84.2] | [91.5, 99.0] |
| Qwen3-8B | [85.0, 95.9] | [94.6, 99.8] |
| Qwen3.5-9B | [96.3, 100.0] | [96.3, 100.0] |
Recognition requires decision=reject and reason_code=contradiction. Boundary containment is assessed offline from recorded rejection and unchanged policy-state and version flags.
Qwen3.5-9B recognizes and blocks all 100 commands; 72 responses also satisfy the rejection format requiring all six policy arrays to be empty.
An offline check of the released parser and validator reproduced 24 explicit rejections and 76 accepted candidates on the contradiction set. On the 150-command conversion set, they reproduce 44 correct acceptances, 101 incorrect acceptances, and five explicit rejections. When both exclusion and transit are extracted for the same zone, the parser can reject the conflict itself. In the examined accepted C1 and C5 failures, at least one conflicting requirement is absent from the candidate, leaving no corresponding structural conflict for the validator to reject.
S2 Mission-state and timing checks
The Python suite passes 102 tests on the tested implementation. The eight node-level cases in Table S6 check validation, queue handling, commit, goal construction, and timers using instrumented substitutes for the interpreter, publishers, and navigation interfaces. These node-level tests verify state transitions and outgoing software requests.
Table S6. Node-level checks on the tested implementation. All eight expected outcomes are observed.
| Case | Input and context | Expected behavior |
|---|---|---|
| T1 | Valid policy | Accept constraints and construct the requested goal sequence. |
| T2 | New mission | Replace the snapshot without inheriting omitted ordinary constraints. |
| T3a | Exclusion and required transit in one policy | Reject the update and preserve the preceding mission. |
| T3b | Required transit under a timed keepout | Reject without silently deleting required transit. |
| T3c | Required transit under a permanent keepout | Reject and retain the preceding mission. |
| T3d | Required transit after expiry | Accept the candidate with transit retained. |
| T4 | Out-of-range zone cost | Reject the entire update. |
| T5 | Identical static policy applied twice | Preserve normalized content; counters may still change. |
A one-second ROS timer checks expiry. The 43 fault/control checks comprise eight endpoint/JSON faults, 29 validator faults, three normalization controls, one state-content control, and two semantic-boundary controls that accept structurally valid policies with incorrect intent. These checks overlap the unit suite.

(a) Keepout active

(b) Restriction expires

(c) Route replanned
Figure S1. Expiry of a Zone A keepout during one simulation run. The destination remains active as the policy contribution is removed and Nav2 selects a route through the released region.
S3 Statistical calculations and the direct keepout control
Tables S7 and S8 provide the full mission results.
The reported sample size is ten runs per condition (). Let , , and . The Welch test statistic, degrees of freedom, and 95% confidence interval are
The two-sided -value is . Table S9 reports the test results. No multiple-comparison adjustment is applied to -values or confidence intervals.
Table S7. Simulation navigation: mean sample SD, per condition. Approximate 95% Welch intervals are for the difference between conditions.
| Task | Metric | Baseline | Policy | 95% CI: Baseline – Policy |
|---|---|---|---|---|
| 1 | Time (s) | |||
| 1 | Distance (m) | |||
| 2 | Time (s) | |||
| 2 | Distance (m) | |||
| 3 | Time (s) | |||
| 3 | Distance (m) | |||
| Task | Metric | Priority-Off | Priority-On | 95% CI: Off – On |
| 4 | Time (s) | |||
| 4 | Distance (m) |
S3.1 Native/custom control protocol
The factory6 control uses start (-0.20, 0.41) m and goal (32.20, 0.41) m. Native and Custom share raster boundaries and the parameter values described in Section 6. Native retains plugin-stage inflation and additionally applies InflationLayer after KeepoutFilter in the filter sequence. Custom applies inflation after KeepoutLayer in its plugin sequence. Other custom adapters receive no soft-cost or object-policy input.
Table S8. Physical navigation: mean sample SD, per condition. Approximate Welch intervals are for the difference between conditions.
| Task | Metric | Baseline | Policy | 95% CI: Baseline – Policy |
|---|---|---|---|---|
| 1 | Time (s) | |||
| 1 | Distance (m) | |||
| 2 | Time (s) | |||
| 2 | Distance (m) | |||
| 3 | Time (s) | |||
| 3 | Distance (m) | |||
| Task | Metric | Priority-Off | Priority-On | 95% CI: Off – On |
| 4 | Time (s) | |||
| 4 | Distance (m) |
Table S9. Approximate two-sided Welch test statistics. Differences are Baseline – Policy for Tasks 1–3 and Priority-Off – Priority-On for Task 4. No multiple-comparison adjustment is applied.
| Task | Metric | Difference | Degrees of freedom | ||
|---|---|---|---|---|---|
| Simulation | |||||
| 1 | Time (s) | 27.884 | 116.5134 | 10.8129 | |
| 1 | Distance (m) | 11.327 | 234.5180 | 18.0000 | |
| 2 | Time (s) | 72.618 | 58.5999 | 11.7599 | |
| 2 | Distance (m) | 30.149 | 377.6629 | 17.9949 | |
| 3 | Time (s) | 26.177 | 97.3314 | 11.7912 | |
| 3 | Distance (m) | 11.658 | 100.2618 | 11.9666 | |
| 4 | Time (s) | 5.114 | 28.7904 | 16.3464 | |
| 4 | Distance (m) | 2.542 | 36.2268 | 15.4605 | |
| Physical | |||||
| 1 | Time (s) | 21.789 | 38.4037 | 17.8683 | |
| 1 | Distance (m) | 3.855 | 43.0464 | 17.8227 | |
| 2 | Time (s) | 12.890 | 31.8664 | 15.2671 | |
| 2 | Distance (m) | 2.547 | 45.9415 | 13.4275 | |
| 3 | Time (s) | 9.949 | 13.2633 | 14.0821 | |
| 3 | Distance (m) | 1.626 | 12.4504 | 14.9362 | |
| 4 | Time (s) | 19.640 | 150.9961 | 15.7846 | |
| 4 | Distance (m) | 4.143 | 260.3139 | 11.5845 | |
Each restarted run checks four states before motion: unmodified, forbidden, released, and re-forbidden. Each update is published three times and allowed to stabilize. The final mission uses the keepout. Time is measured in ROS simulation time from the first motion after goal acceptance ( m/s) to the FollowWaypoints completion result, including stops. Distance is the sum of planar odometry displacement over that interval. Setup and pre-motion checks are excluded. This definition differs from mission-start timing in Tasks 1–4.
The comparison covers 45,384 cells in the restricted zone and a surrounding rectangle extending 1.3 m beyond it. Five snapshot comparisons record zero native/custom differences. These measurements cover the sampled region and pre-motion updates in one simulation case.
S4 Additional trajectory comparisons
The six trajectory comparisons below complement simulation Task 1 and physical Task 4 in the main paper. Each panel shows a representative individual run. Tables S7 and S8 summarize the conditions.
S4.1 Declared closure in the physical maze
Task 1 connects WP1 to WP2. The policy closes the blocked corridor before route selection. The physical comparison has the same interpretation as the simulation example in the main paper.

(a) Baseline

(b) Policy
Figure S2. Physical Task 1. The policy-informed route avoids the declared closure.
S4.2 Zone preferences along the mission
Simulation Task 2 follows the complete WP5–WP6–WP4–WP3–WP5 mission. Aisle exclusions remove blocked alternatives and zone costs influence the remaining choices. Physical Task 2 connects WP3 to WP4 with costs favoring the corridor containing a small box over the one occupied by another AMR.

(a) Baseline

(b) Policy
Figure S3. Simulation Task 2. Both panels show the complete multi-waypoint mission.

(a) Baseline

(b) Policy
Figure S4. Physical Task 2. Zone costs change the selected corridor.
S4.3 Person-conditioned avoidance
Task 3 connects WP7 to WP8 in simulation and WP5 to WP6 in the physical maze. The policy adapter adds a region around the detected person. The traces show the resulting route changes.

(a) Baseline

(b) Policy
Figure S5. Simulation Task 3 with the person-dependent cost region.

(a) Baseline

(b) Policy
Figure S6. Physical Task 3. The policy changes the route taken through the maze.
S4.4 Event permission in the warehouse
Simulation Task 4 connects WP1 to WP2. Both conditions use the policy-enabled stack. Priority-On activates the passage permission and removes the applicable policy prohibition, with sensor obstacles still active.

(a) Priority-Off

(b) Priority-On
Figure S7. Simulation Task 4. This event-permission comparison is distinct from Baseline versus Policy.
S5 Shared policies in simulation
Two simulated DeliveryRobots receive the same policy-derived updates. The overlays in Figure S8 show matching constrained regions, complementing the physical two-robot views in Figure 8. Each robot uses an independent Nav2 instance and its own pose and sensor costs.

(a) Robot 1

(b) Robot 2
Figure S8. Shared policy projection on two simulated robots. The policy contribution agrees even when local sensor information and planned paths differ.
S6 Resources and reproducibility
S6.1 Inference workload
The resource profile uses the language benchmark workstation with Ollama 0.32.1 and a Vulkan backend. It measures policy generation only, excluding Nav2 and Gazebo. GPU utilization and VRAM are mean increases relative to a model-unloaded 30-second baseline immediately preceding each model. CPU utilization and resident set size (RSS) are means over the Ollama process tree.
Table S10. Local-inference resources. GPU change is in percentage points (pp). Host memory is RSS.
| Model | GPU Δ (pp) | VRAM Δ (MiB) | CPU (%) | Host RSS (GiB) |
|---|---|---|---|---|
| Qwen2.5-7B | 54.7 | 4547 | 16.8 | 0.590 |
| Qwen3-8B | 58.3 | 5319 | 15.6 | 0.609 |
| Qwen3.5-9B | 58.7 | 6438 | 17.4 | 1.005 |
| Llama 3.1-8B | 61.8 | 5043 | 12.8 | 0.567 |
S6.2 Code and benchmark data
The implementation tested in Section S2 accepts integer soft costs from 0 to 252. The preserved language-evaluation snapshot accepts 0–253 and applies schema and within-policy conflict checks. The implementation checks additionally cover active mission restrictions. Neither the 150 reference policies nor the 6,250 stored outputs contain soft cost 253. Changing only the archived validator's upper bound to 252 leaves its acceptance decisions and rejection reasons unchanged for all stored outputs.
The benchmark contains 150 conversion commands with reference signatures and canonical policies, 100 contradictory commands, and 15 demonstrations. The public evaluation bundle is available under benchmarks/evaluation at commit df3bb05, including datasets, stored responses, source snapshots, and scoring results.
The language runs record model tags llama3.1:latest, qwen2.5:7b, qwen3:8b, and qwen3.5:9b, with temperature 0, top_p=0, seed 42, repeat_penalty=1, num_predict=512, think=false, and JSON output. The 15-demonstration prompt and dataset identifiers are recorded in the run manifest. The separate resource profile uses Q4_K_M artifacts.
The public evaluation bundle includes parsed model outputs, references, recorded validation decisions, and offline scoring scripts. Native/custom records include ten run-level results with action status and odometry; Tasks 1–4 retain the reported navigation summaries described in Section S3. The project page provides access to the implementation, benchmark data, and demonstrations.
S6.3 Author contact information
Jiyeong Chae: cowldud3@dgist.ac.kr
Hyunkyo Seo: hysun43@dgist.ac.kr
Heonjae Lee: leehj0806@dgist.ac.kr
Kyung-Joon Park: kjp@dgist.ac.kr
S7 Policy scoring and accepted-error analysis
S7.1 Raw and post-validation policy accuracy
Raw accuracy compares the generated policy with the reference before validation. The comparison retains all destinations and transit entries, including additional coordinate goals and malformed objects. A policy is incorrect if it omits a required element or adds or changes an executable element. Relative restriction durations are compared in minutes.
Post-V compares the complete normalized policy with the reference after acceptance. Destination order is preserved; unordered rule lists are compared independently of serialization order. Both scores check destinations, transit zones, static and timed restrictions, zone costs, object radii, and event conditions, actions, and priorities. Relative durations and radii use three-decimal precision. Interpreter and validator decisions remain those recorded during the experiment.
The comparison covers all 3,750 stored results: five methods, 150 commands, and five calls per command. Per-command outcomes agree across the five repetitions. Llama 3.1-8B has 106 raw matches and 107 correct acceptances; Qwen2.5-7B has 122 at both stages. The accompanying scoring script and case records provide the command-level results.
S7.2 Qwen2.5-7B: malformed transit entry
Command N03-L0 requests: “Go to WP3 with traversal cost 5 for A and 200 for B.” The output contains the requested destination and costs but adds the following transit entry:
"via_zones": [{"dest": {"x": 0, "y": 0, "yaw": 0}}]
The reference has an empty via_zones list. The candidate is incorrect before validation and is rejected with field 'via_zones' contains a non-string zone. This outcome occurs in all five repetitions. The rejection concerns zone parsing; the requested costs, 5 and 200, fall within both source versions' cost ranges.
S7.3 Llama 3.1-8B: additional and repeated destinations
For N09-L4-V3, the instruction requests WP5 through B, a keepout in C, cost 40 in A, and a 2 m person-avoidance radius. The accepted policy appends an unrequested coordinate goal at after WP5. It is incorrect at both scoring stages. In N09-L3-V3, an additional destination with null coordinates is also incorrect before validation and is rejected by the validator.
In N06-L4, the raw output repeats WP2. Validation removes the duplicate while preserving the requested 30-minute restriction, producing a correct normalized policy. This normalization accounts for Llama's increase from 106 raw matches to 107 correct acceptances. The three outcomes are consistent across all five repetitions.
S7.4 Error types and potential operational effects
The four LLMs produce 40 incorrectly accepted model–command cases under full-policy comparison. Their proportions among accepted policies are 20/127 (15.7%) for Llama 3.1-8B, 10/132 (7.6%) for Qwen2.5-7B, 7/148 (4.7%) for Qwen3-8B, and 3/145 (2.1%) for Qwen3.5-9B. Table S11 classifies differences between the accepted policies and their references. Multiple labels may apply to one case; the five repeated calls do not increase the number of distinct model–command cases.
Table S11. Accepted-error types in stored LLM outputs. Columns follow the model order used in Table 3; types overlap.
| Type | Llama | Qwen2.5 | Qwen3 | Qwen3.5 |
|---|---|---|---|---|
| D: destination or visit-order error | 7 | 2 | 2 | 1 |
| R: requested keepout or person-avoidance omission | 2 | 1 | 2 | 1 |
| N: cost omission, target, or role error | 3 | 2 | 1 | 0 |
| E: event condition, action, or priority error | 0 | 0 | 0 | 0 |
| A: unrequested transit or avoidance constraint | 14 | 7 | 3 | 1 |
| Distinct incorrect acceptances | 20 | 10 | 7 | 3 |
Required constraints. Six cases omit a requested keepout or person-avoidance rule. Such an omission can leave an intended restriction absent from the planner's costmap unless another layer supplies it. Missing a baseline keepout in an event-conditioned instruction is classified as R; type E concerns the event rule itself. These six cases warrant particular review because they weaken the requested operating constraints.
Destinations and added constraints. Destination errors can omit a required stop, change the visit order, or introduce an additional goal. Added transit or avoidance constraints can force detours or make a route unavailable. Cost-role errors include interpreting a cost of 40 as a 40-minute prohibition; the consequences depend on map geometry, active restrictions, and layer combination.
Table S12. All three Qwen3.5-9B incorrect acceptances and their potential effects, inferred from the recorded policy content.
| Command | Policy difference | Potential operational effect |
|---|---|---|
| N01-L1-V2 | Adds person avoidance with radius 1.5 m. | Additional avoidance may alter route choice. |
| N02-L1-V2 | Keeps WP7 but omits the required preceding WP2 stop. | The requested pickup or visit may be skipped. |
| N09-L3-V2 | Omits the C keepout while retaining transit B, cost 40 in A, and person radius 2 m. | Zone C may remain available to the planner. |
These are policy-content analyses of potential effects, not measured incident or constraint-violation rates. They motivate instruction–policy previews, confirmation of critical restriction changes, clarification of numeric roles, and authorization checks for persistent restrictions. These measures are proposed extensions; their effectiveness requires separate evaluation.