> For the complete documentation index, see [llms.txt](https://carec.gitbook.io/carec-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://carec.gitbook.io/carec-docs/documentation/simulation.md).

# Simulation

Simulation is the primary engineering platform for distributed CAREC contributors without wheelchair hardware. It covers the complete wheelchair platform—not only the historical collision-warning feature—and supports manual, assisted, and autonomous mobility development.

{% hint style="info" %}
**Supported baseline:** Ubuntu 24.04 LTS, ROS 2 Jazzy, Gazebo Harmonic, Nav2, and `ros2_control`. CAREC-specific launch commands remain a documented implementation task until they exist and pass CI.
{% endhint %}

## Start here

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td>1</td><td><strong>Choose the baseline</strong></td><td>Supported versions, pinning, and upgrades.</td><td><a href="/pages/cQGcD5OTCaC1dPRsk4WY">/pages/cQGcD5OTCaC1dPRsk4WY</a></td></tr><tr><td>2</td><td><strong>Prepare the workspace</strong></td><td>Package layout and reproducible environment.</td><td><a href="/pages/49ELH0fkZC7ICtrezukb">/pages/49ELH0fkZC7ICtrezukb</a></td></tr><tr><td>3</td><td><strong>Model the chair</strong></td><td>Geometry, TF, dynamics, drive, and sensors.</td><td><a href="/pages/wuwW8P2Y6jXSSW5JDzgs">/pages/wuwW8P2Y6jXSSW5JDzgs</a></td></tr><tr><td>4</td><td><strong>Drive and navigate</strong></td><td>Manual inputs, takeover, localization, and Nav2.</td><td><a href="/pages/AvQJEnDEImOxontvm0qf">/pages/AvQJEnDEImOxontvm0qf</a></td></tr><tr><td>5</td><td><strong>Prove behavior</strong></td><td>Scenarios, assertions, bags, CI, and evidence.</td><td><a href="/pages/3Uqk9FKuVwOmHrVqJiit">/pages/3Uqk9FKuVwOmHrVqJiit</a></td></tr><tr><td>6</td><td><strong>Progress safely</strong></td><td>HIL, bench, and unoccupied-test gates.</td><td><a href="/pages/ZJvAyBMyfrhbHXm07ATy">/pages/ZJvAyBMyfrhbHXm07ATy</a></td></tr></tbody></table>

## What must be simulated

* Complete wheelchair geometry, occupied envelope, dynamics, and constraints
* Manual joystick, alternative inputs, voice/caregiver requests, and authority transitions
* Drive feedback, watchdogs, command timeouts, and emergency stop
* Cameras, depth, LiDAR, proximity, encoders, and IMU—including degraded behavior
* Perception, localization, mapping, navigation, recovery, and explanations
* Homes, schools, clinics, doors, corridors, ramps, people, obstacles, and drop-offs
* Sensor, compute, communication, process, and power faults
* Logs, metrics, replay, deterministic seeds, and automated pass/fail reports

Algorithms progress from unit tests to software-in-the-loop, fault injection, hardware-in-the-loop, bench testing, and unoccupied controlled testing. Simulation guides engineering but does not by itself establish real-world safety.


---

# 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://carec.gitbook.io/carec-docs/documentation/simulation.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.
