Skip to content

Commit 4ea5020

Browse files
authored
Update doc index (#51)
* Update doc index tree * Update sphinx-docs workflow * Remove Autonomy and datacollection doc from index * Update links into documentation to be used with web doc
1 parent 08843db commit 4ea5020

19 files changed

+86
-369
lines changed

.github/workflows/sphinx-docs.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
- name: Checkout repository
1515
uses: actions/checkout@v4
1616

17+
- name: Strip "docs/" prefixes from README
18+
run: sed -i 's|docs/||g' README.md
19+
1720
- name: Set up Python
1821
uses: actions/setup-python@v5
1922
with:
@@ -27,16 +30,19 @@ jobs:
2730
2831
- name: Install dependencies for Python client docs
2932
working-directory: ./client/python/projectairsim/docs
30-
run: |
31-
pip install -r requirements.txt
33+
run: pip install -r requirements.txt
3234

3335
- name: Build Python client docs
3436
working-directory: ./client/python/projectairsim/docs
35-
run: make html
37+
run: |
38+
rm -rf build
39+
make html
3640
3741
- name: Build main docs
3842
working-directory: ./docs
39-
run: make html
43+
run: |
44+
rm -rf build
45+
make html
4046
4147
- name: Copy Python client docs into main docs
4248
run: |

build_docs.bat

Lines changed: 0 additions & 48 deletions
This file was deleted.

build_docs.sh

Lines changed: 0 additions & 21 deletions
This file was deleted.

build_docs_external.bat

Lines changed: 0 additions & 33 deletions
This file was deleted.

build_docs_external.sh

Lines changed: 0 additions & 31 deletions
This file was deleted.

docs/command_line_switches.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Project AirSim supports the following command line switches. Since Project AirS
1515
| <code>&#x2011;nosound</code> | Disable any sound output |
1616
| <code>&#x2011;benchmark</code> | Enabled Unreal's benchmark mode that seems to remove any sleeps in between rendering/tick loops to run without limiting to any real-time execution rate FPS target (this mode needs further testing to confirm any side-effects and how it could be used properly) |
1717
| <code>&#x2011;gltfDir=</code><i>dir/containing/tiles/</i> | If you'll be using a GIS scene, you can specify the directory to read the tiles from. Alternatively, if you're trying CesiumForUnreal you can provide the root tileset json file. |
18-
| <code>&#x2011;clientauthpubkey=</code><i>public_key</i> | Specify a client authorization public key to require clients to present a client authorization token before being allowed to use the client API. Overrides the key set by the [PROJECTAIRSIM_CLIENT_AUTH_PUBKEY](#environment_variables) environment variable. |
18+
| <code>&#x2011;clientauthpubkey=</code><i>public_key</i> | Specify a client authorization public key to require clients to present a client authorization token before being allowed to use the client API. Overrides the key set by the [PROJECTAIRSIM_CLIENT_AUTH_PUBKEY](#environment-variables) environment variable. |
1919

2020
The below simulation parameters can also be changed through the comand line:
2121

docs/config_robot.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Project AirSim currently comes with some base configurations for quadrotor drone
5959
"physics-type": "unreal-physics"
6060
```
6161

62-
**[Unreal physics](internal/physics/unreal_physics.md)** uses the **[PhysX](https://developer.nvidia.com/gameworks-physx-overview)** engine that's built-in to Unreal. PhysX can calculate motion for multi-jointed robots with constraints on each joint, as well as rigid body dynamics for aerial drone flight.
62+
**[Unreal physics](tbd)** uses the **[PhysX](https://docs.nvidia.com/gameworks/content/gameworkslibrary/physx/guide/Manual/Introduction.html)** engine that's built-in to Unreal. PhysX can calculate motion for multi-jointed robots with constraints on each joint, as well as rigid body dynamics for aerial drone flight.
6363

6464
*Note: The simulation will automatically detect when any actor in the scene is configured to use Unreal Physics, and this will link the physics calculation step to Unreal's rendering step, so the [sim clock setting](config_scene.md#steppable-clock) for `step-ns` may need to be much slower (20 ms = ~50 FPS) to maintain reasonable simulation advancement rate.*
6565

@@ -415,7 +415,7 @@ For PX4 in WSL2, the value for `local-host-ip` can be found by running the comma
415415
| SITL Configuration | `control-port` | `control-port-remote` | `control-ip-address` | Notes |
416416
| ------------------ | -------------- | --------------------- | -------------------- | ----- |
417417
| Same computer | Usually `14540` | (Unassigned) | `127.0.0.1` |
418-
| Different computer | (Ignored) | Usually `14580` | IP address of PX4 host | Use [MAVLink Router](https://docs.px4.io/master/en/simulation/#running-simulation-on-a-remote-server) running on the PX4 host. |
418+
| Different computer | (Ignored) | Usually `14580` | IP address of PX4 host | Use [MAVLink Router](https://docs.px4.io/main/en/simulation/#running-simulation-on-a-remote-server) running on the PX4 host. |
419419
| PX4 in WSL2 | Usually `14540` | (Unassigned) | `remote` | In WSL2, set environment variable `PX4_SIM_HOST_ADDR` to Project AirSim host IP address. MAVLink Router is not used.
420420

421421
When running PX4 on the same computer or in WSL2, PX4 connects to Project AirSim at UDP/IP port `control-port`. When running PX4 remotely, Project AirSim connects to PX4 at the UDP/IP port `control-port-remote`.
@@ -468,10 +468,10 @@ The order and number of the actuator `id` tags depends on the airframe:
468468

469469
| Project AirSim Airframe | Actuator Order |
470470
| -------- | -------------- |
471-
| `quadrotor-x` | [Quadrotor-X order](https://docs.px4.io/master/en/airframes/airframe_reference.html#quadrotor-x) (front right, rear left, front left, rear right) |
472-
| `hexarotor-x` | [Hexarotor-X order](https://docs.px4.io/master/en/airframes/airframe_reference.html#hexarotor-x) (front right, rear left, front left, rear right) |
473-
| `vtol-quad-x-tailsitter` | \*[VTOL Quad Tailsitter order](https://docs.px4.io/master/en/airframes/airframe_reference.html#vtol-quad-tailsitter) (front right, rear left, front left, rear right, unused output port, elevon left, elevon right)
474-
| `vtol-quad-tiltrotor` | \*[VTOL Tiltrotor order](https://docs.px4.io/master/en/airframes/airframe_reference.html#vtol-tiltrotor) (rotor outboard left, rotor inboard left, rotor inboard right, rotor outboard right, tilt outboard left, tilt inboard left, tilt inboard right, tilt outboard right, aileron left, aileron right, elevator, rudder)
471+
| `quadrotor-x` | [Quadrotor-X order](https://docs.px4.io/main/en/airframes/airframe_reference.html#quadrotor-x) (front right, rear left, front left, rear right) |
472+
| `hexarotor-x` | [Hexarotor-X order](https://docs.px4.io/main/en/airframes/airframe_reference.html#hexarotor-x) (front right, rear left, front left, rear right) |
473+
| `vtol-quad-x-tailsitter` | \*[VTOL Quad Tailsitter order](https://docs.px4.io/main/en/airframes/airframe_reference.html#vtol-quad-tailsitter) (front right, rear left, front left, rear right, unused output port, elevon left, elevon right)
474+
| `vtol-quad-tiltrotor` | \*[VTOL Tiltrotor order](https://docs.px4.io/main/en/airframes/airframe_reference.html#vtol-tiltrotor) (rotor outboard left, rotor inboard left, rotor inboard right, rotor outboard right, tilt outboard left, tilt inboard left, tilt inboard right, tilt outboard right, aileron left, aileron right, elevator, rudder)
475475

476476
\**Note: The PX4 documentation does not currently show the correct order.*
477477

docs/controllers/px4/px4_hitl.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ You must have one of the supported devices listed above. For manual flight simul
2121
1. Make sure your RC receiver and RC transmitter are bound to each other.
2222
2. Connect the receiver (the vehicle-based radio unit) to the PX4 flight controller's RC port.
2323

24-
Refer to your RC manual and [PX4 docs](https://docs.px4.io/en/getting_started/rc_transmitter_receiver.html) for more information.
24+
Refer to your RC manual and [PX4 docs](https://docs.px4.io/main/en/getting_started/rc_transmitter_receiver.html) for more information.
2525

2626
2. Do not plug the PX4 flight controller device into your computer yet.
2727
3. Download and install [QGroundControl](http://qgroundcontrol.com/).
2828
4. Launch *QGroundControl* and go to the Vehicle Firmware Setup panel (click on the Ground Control logo, select the "Vehicle Setup" tool, then "Firmware" tab.)
2929
5. Connect the PX4 flight controller device to a USB port on your computer.
3030
6. *QGroundControl* should detect the PX4 hardware and offer to setup the firmware on the device. Select the "PX4 Pro Stable Release vx.xx.x" flight stack.
31-
See also the [initial firmware setup video](https://docs.px4.io/master/en/config/).
31+
See also the [initial firmware setup video](https://docs.px4.io/main/en/config/).
3232
7. In *QGroundControl*, configure your PX4 flight controller device for HIL simulation by selecting under "Simulation (Copter)" the "HIL Quadrocopter X" airframe, then click "Apply and Restart" at the top. After the PX4 device reboots and *QGroundControl* reconnects to it, verify that "HIL Quadrocopter X" is still selected.
3333

3434
For manual flight simulation, perform these additional steps:
@@ -43,7 +43,7 @@ For manual flight simulation, perform these additional steps:
4343
Roll and pitch sensitivity | mid-3 mark
4444
Altitude and position control sensitivity | mid-2 mark
4545

46-
11. In the [robot configuration file](/config_robot.md), specify PX4 for your vehicle controller like this:
46+
11. In the [robot configuration file](../../config_robot.md), specify PX4 for your vehicle controller like this:
4747
```jsonc
4848
{
4949
...
@@ -76,7 +76,7 @@ You'll need to replace the "serial-port" entry's value of "serial device name" w
7676

7777
After completing the above setup you should now be able to use *QGroundControl* to fly the vehicle in Project AirSim. If an RC transmitter and receiver are connected and configured through the additional setup steps for manual flight simulation, you can manually fly using the RC transmitter. With manual flight you don't need *QGroundControl* after the initial setup. You can usually arm the vehicle by lowering and bringing the two sticks of the RC transmitter together down and inwards. Typically the Stabilized flight mode (instead of Manual) gives a better experience for beginners. For more information see the [PX4 Basic Flying Guide](https://docs.px4.io/master/en/flying/basic_flying.html).
7878

79-
You can also control the drone with a Python script using [the Python APIs](/apis.md).
79+
You can also control the drone with a Python script using [the Python APIs](../../api.md).
8080

8181
---
8282

docs/controllers/px4/px4_lockstep.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PX4 Lockstep Mode
22

3-
Recent versions of PX4 support a new [lockstep feature](https://docs.px4.io/master/en/simulation/#lockstep-simulation) when communicating with a simulator over TCP. `Lockstep` decouples the internal clocks of PX4 and the simulator from real-time and synchronizes them to each other so that both internal clocks advance together. This allows PX4 to behave normally even during unusually long delays in simulator updates.
3+
Recent versions of PX4 support a new [lockstep feature](https://docs.px4.io/main/en/simulation/#lockstep-simulation) when communicating with a simulator over TCP. `Lockstep` decouples the internal clocks of PX4 and the simulator from real-time and synchronizes them to each other so that both internal clocks advance together. This allows PX4 to behave normally even during unusually long delays in simulator updates.
44

55
It is recommended that when you are running a `lockstep`-enabled version of PX4 in SITL mode that you specify the controller settings within the robot configuration of Project AirSim to set `lock-step` to `true` and set `use-tcp` to `true`.
66

docs/controllers/px4/px4_multi_vehicle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ However, the provided script does not let us view the PX4 console. If you want t
7373

7474
You can add more than two vehicles but you will need to make sure you adjust the TCP port for each (ie: vehicle 3's port would be `4562` and so on..) and adjust the spawn point.
7575

76-
4. Now run your client script loading the simulation scene and Project AirSim should connect to PX4 SITL instances via TCP. If you are running the instances with the [PX4 console visible](px4_multi_vehicle.md#Starting-sitl-instances-with-px4-console), you should see a bunch of messages from each PX4 SITL window. Specifically, the following messages tell you that AirSim is connected properly and GPS fusion is stable:
76+
4. Now run your client script loading the simulation scene and Project AirSim should connect to PX4 SITL instances via TCP. If you are running the instances with the [PX4 console visible](px4_multi_vehicle.md), you should see a bunch of messages from each PX4 SITL window. Specifically, the following messages tell you that AirSim is connected properly and GPS fusion is stable:
7777

7878
INFO [simulator] Simulator connected on UDP port 14560
7979
INFO [mavlink] partner IP: 127.0.0.1

0 commit comments

Comments
 (0)