> For the complete documentation index, see [llms.txt](https://docs.openmind.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.openmind.com/full-autonomy-guidelines/features/frontier-exploration.md).

# Frontier Exploration

Autonomously explore and map an unknown space during 2D SLAM.

Mapping a space by hand — teleoperating the robot into every corner — is tedious. Frontier exploration does it for you: the robot heads for the edges between mapped and unmapped space (the "frontiers") and keeps going until there's nothing left to discover.

It isn't a separate mode you start. It comes on automatically with **2D SLAM** — the moment you call `POST /start/slam/2d`, the robot starts exploring — and it shuts down when you stop SLAM. (3D SLAM doesn't use it.)

While SLAM is up, you can hand control back and forth. Pause exploration to teleoperate a tricky spot, then resume:

```bash
curl -X POST http://<robot>:5000/explore/stop   -H 'Content-Type: application/json' -d '{}'
curl -X POST http://<robot>:5000/explore/resume -H 'Content-Type: application/json' -d '{}'
```

Check where it's at:

```bash
curl http://<robot>:5000/explore/status
```

The `message` field is a JSON-encoded string — decode it for `running`, `paused`, `complete`, an `info` string, and `status_received` (whether the explorer has reported in yet). Once `complete` is true, save the map with `POST /maps/save` before you stop SLAM.

In the [OpenMind portal](https://portal.openmind.com), exploration is part of the SLAM view — you'll see the map fill in automatically, with controls to pause and resume coverage.

If pause and resume seem to do nothing, 2D SLAM probably isn't running — the explorer only exists while it is. See [Mapping & SLAM](/full-autonomy-guidelines/features/mapping-slam.md) for the full mapping flow, and the [Autonomy API Overview](/full-autonomy-guidelines/api_endpoints.md) for endpoint details.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.openmind.com/full-autonomy-guidelines/features/frontier-exploration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
