Manuscript Offprint

arXiv:2610.32633

Natural-Language to Nav2: Operational Policies for Costmap-Based Navigation

Jiyeong Chae, Hyunkyo Seo, Heonjae Lee, Kyung-Joon Park

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

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.