> 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). Agents can also search and read this documentation through its [MCP server](https://docs.openmind.com/~gitbook/mcp).

# 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](https://docs.openmind.com/full-autonomy-guidelines/features/mapping-slam.md) for the full mapping flow, and the [Autonomy API Overview](https://docs.openmind.com/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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
