Skip to content

Commit feec1ed

Browse files
Merge pull request #282 from FS-Driverless/docs-update
Update documentation
2 parents 8662f43 + 476644a commit feec1ed

File tree

7 files changed

+31
-34
lines changed

7 files changed

+31
-34
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
This is a Formula Student Driverless Simulator (FSDS).
88
FSDS is a community project with the goal to provide an end-to-end simulation for FS Driverless teams.
99
It simulates all commonly used sensors and is compatible with ROS.
10-
This project has proven itsself during [FS-Online 2020](https://formulastudentonline.com/) where 4 driverless teams competed.
10+
This project has proven itself during [FS-Online 2020](https://formulastudentonline.com/) where 4 driverless teams competed.
1111
See [day 1](https://www.youtube.com/watch?v=TCgKwuLo3Eo), [day 2](https://www.youtube.com/watch?v=A-RHuWMZbig) and [day 3](https://www.youtube.com/watch?v=1RwY1cNMqMg).
1212

1313
**Problems?** Ask questions in [Gitter chat](https://gitter.im/FS-Driverless/Formula-Student-Driverless-Simulator) or [open an issue](https://github.com/FS-Driverless/Formula-Student-Driverless-Simulator/issues).
@@ -35,6 +35,9 @@ It launches the fsds_ros_bridge to connect an autonomous system to the Unreal wo
3535

3636
This repo uses LFS for some large files. All files bigger than 90MB are added to LFS.
3737

38+
## Installation
39+
For installation and more information about the ROS and python interface, [check the documentation](https://fs-driverless.github.io/Formula-Student-Driverless-Simulator/)
40+
3841
## Credits
3942
This project is based on the work of some amazing open-source projects.
4043

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Shell script to download Simulator bins from github; For custom versions of simulator path has to be updated
22
sudo apt-get install unzip
3-
wget -c https://github.com/FS-Driverless/Formula-Student-Driverless-Simulator/releases/download/v2.0.0/fsds-v2.0.0-linux.zip
4-
unzip fsds-v2.0.0-linux.zip
5-
rm fsds-v2.0.0-linux.zip
3+
wget -c https://github.com/FS-Driverless/Formula-Student-Driverless-Simulator/releases/download/v2.1.0/fsds-v2.1.0-linux.zip
4+
unzip fsds-v2.1.0-linux.zip
5+
rm fsds-v2.1.0-linux.zip

docs/docker_ubuntu.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ After building the image, verify that the image exists by runnig:
3030
```
3131

3232
#### Run FSDS inside the Docker container
33-
Get [the binary](https://github.com/FS-Driverless/Formula-Student-Driverless-Simulator/releases/download/v2.0.0/fsds-v2.0.0-linux.zip), or package your own project in Ubuntu.
33+
Get [the binary](https://github.com/FS-Driverless/Formula-Student-Driverless-Simulator/releases/download/v2.1.0/fsds-v2.1.0-linux.zip), or package your own project in Ubuntu.
3434
You can either download the latest version yourself, or use the `download_FSDSSimulator_binary.sh` helper script.
3535

3636
Now, run fsds inside the Docker container:
@@ -41,15 +41,15 @@ Now, run fsds inside the Docker container:
4141

4242
Replace the variables as follows:
4343
* `DOCKER_IMAGE_NAME`: Same as `target_image` parameter in previous step. By default, enter `fsdsairsim_binary:vulkan-ubuntu18.04`
44-
* `UNREAL_BINARY_SHELL_SCRIPT`: for FSDSsimulator enviroment, it will be `fsds-v2.0.0-linux/FSDS.sh`
44+
* `UNREAL_BINARY_SHELL_SCRIPT`: for FSDSsimulator enviroment, it will be `fsds-v2.1.0-linux/FSDS.sh`
4545
* `UNREAL_BINARY_ARGUMENTS`: For FSDSsimulator, most relevant would be `-windowed`, `-ResX`, `-ResY`. [See here all options](https://docs.unrealengine.com/en-us/Programming/Basics/CommandLineArguments).
4646

47-
For FSDSsimulator, you can do a `$ ./run_airsim_image_binary.sh fsdsairsim_binary:vulkan-ubuntu18.04 fsds-v2.0.0-linux/FSDS.sh -windowed -ResX=1080 -ResY=720`
47+
For FSDSsimulator, you can do a `$ ./run_airsim_image_binary.sh fsdsairsim_binary:vulkan-ubuntu18.04 fsds-v2.1.0-linux/FSDS.sh -windowed -ResX=1080 -ResY=720`
4848

4949
To run in headless mode, use suffix `-- headless` at the end:
5050

5151
```bash
52-
$ ./run_airsim_image_binary.sh fsds-v2.0.0-linux/FSDS.sh -- headless
52+
$ ./run_airsim_image_binary.sh fsds-v2.1.0-linux/FSDS.sh -- headless
5353
```
5454

5555
You need to have a `settings.json` file in the current working directory from where you run `./run_airsim_image_binary.sh`.

docs/getting-started-with-ros.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# Connecting to the simulator with ROS
22

3-
You can use the ROS bridge to connect the simulator to ROS.
3+
You can use the ROS bridge to connect the simulator to ROS1 and ROS2.
44
The ROS bridge will publish the sensordata from the simulator into ROS topics.
55
Your autonomous system will be able to publish car-control messages which the ROS bridge will send to the simulator.
66

7-
The ROS bridge only works on Ubuntu.
7+
The ROS bridge works on Ubuntu or in WSL in windows (but it is harder to set up).
88
If you have the simulator running on windows we reccommend Windows Subsystem for Linux.
99
This offers a virtual Ubuntu machine within Windows.
1010
You can read [here how to install it](software-install-instructions.md).
1111
While you are at it you might also want to [install Xming](software-install-instructions.md) so you can run rviz and rqt_plot from within WSL.
1212

1313
## Requirements
1414

15-
The ROS bridge requires [ROS Melodic to be installed](software-install-instructions.md), as well as the following dependencies:
15+
The ROS bridge requires [ROS Melodic/Noetic/Galactic to be installed](software-install-instructions.md), as well as the following dependencies:
1616
```
1717
sudo apt-get install ros-melodic-tf2-geometry-msgs python-catkin-tools ros-melodic-rqt-multiplot ros-melodic-joy ros-melodic-cv-bridge ros-melodic-image-transport libyaml-cpp-dev libcurl4-openssl-dev
1818
```
@@ -27,7 +27,7 @@ Ready? Lets clone the repo into your home directory:
2727
git clone git@github.com:FS-Driverless/Formula-Student-Driverless-Simulator.git --recurse-submodules
2828
```
2929

30-
If you havn't setup your ssh keys, you can clone using https by running the following command:
30+
If you haven't setup your ssh keys, you can clone using https by running the following command:
3131
```
3232
git clone https://github.com/FS-Driverless/Formula-Student-Driverless-Simulator.git --recurse-submodules
3333
```
@@ -45,7 +45,7 @@ ln -s /mnt/c/Users/developer/Formula-Student-Driverless-Simulator ~/Formula-Stud
4545
```
4646

4747
Now, checkout the version equal to the simulator.
48-
If you are running for example simulator packaged version v2.0.0, run `git checkout tags/v2.0.0` to get the ROS brige to the same version
48+
If you are running for example simulator packaged version v2.1.0, run `git checkout tags/v2.1.0` to get the ROS brige to the same version
4949

5050
## Preparing AirLib
5151

docs/getting-started.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ If you clone the repo you will already have this file in place.
2323
If not, copy-paste the contents of the [settings.json file at the root of this repository](https://github.com/FS-Driverless/Formula-Student-Driverless-Simulator/blob/master/settings.json) into the `~/Formula-Student-Driverless-Simulator`.
2424
This should get you started with the default sensor configuration, feel free to try your own custom sensor suite.
2525

26-
## From release binaries
26+
## Installation
27+
28+
### From release binaries
2729

2830
Pre-compiled binaries are available for every release.
2931
Go to [releases](https://github.com/FS-Driverless/Formula-Student-Driverless-Simulator/releases) and download the latest one.
@@ -32,19 +34,20 @@ A window with a car should popup!
3234
Try driving the car around using the arrowkeys.
3335
If you get a black screen with some buttons, make sure the folder with the binary is in your user folder (Windows: `C:\Users\username\Formula-Student-Driverless-Simulator`, Linux: `~/Formula-Student-Driverless-Simulator`)
3436

35-
## From source using the Unreal Engine Editor
37+
If all that works, you can continue to [the ROS interface](getting-started-with-ros.md) or [the python interface](getting-started-with-python.md).
38+
### From source using the Unreal Engine Editor
3639
Instead of running the simulator from release binaries, you can compile it manually using unreal engine.
3740
This is usefull if you want to get the latest changes or if you want to make changes to the maps or the simulation itself.
3841
If you want to run the unreal engine project from source you will need [unreal engine and visual studio 2019](software-install-instructions.md).
3942
On Ubuntu you can skip the visual studio 2019 part, but you still need Unreal Engine.
4043

41-
### 1. Get the repository
44+
#### 1. Get the repository
4245

4346
You can either download the repo using the big green download button on the [github page of this project](https://github.com/FS-Driverless/Formula-Student-Driverless-Simulator) or clone the repository. For cloning, checkout the documentation on this further down this page. Make sure you clone the repository in your **home directory**.
4447

4548
When downloading or cloning, by default you get the latest, unreleased version. This is probably not the version that you want. Make sure you select the version that you need!
4649

47-
### 2. Compiling the AirSim plugin
50+
#### 2. Compiling the AirSim plugin
4851
The Unreal Engine project requires the AirSim plugin.
4952
We have to compile this plugin first.
5053
The AirSim plugin is made up of AirLib (/AirSim/AirLib) and the plugin code (/UE4Project/Plugins/AirSim/Source).
@@ -65,7 +68,7 @@ On Ubuntu, go to folder `AirSim` and run `setup.sh` and `build.sh`.
6568

6669
The first time this takes quite a while. Go walk around a bit, maybe start playing [factoryidle](https://factoryidle.com/).
6770

68-
### 3. Working with the Unreal Engine project
71+
#### 3. Working with the Unreal Engine project
6972

7073
Launch Unreal Engine, press Browse and open the FSDS project in `~/Driverless-Competition-Simulator/UE4Project/FSOnline.uproject`.
7174
The project should now open correctly.
@@ -75,7 +78,7 @@ If it does not, make sure of the following:
7578
* you have cloned with LFS enabed. If not, run `git lfs install` and `git lfs pull` to download the large files.
7679
* within `~/Driverless-Competition-Simulator/AirSim/`, you have run `build.cmd` on Windows and `./setup.sh && ./build.sh` on Ubuntu.
7780

78-
On Ubuntu, we recommend adding the following alias to your ~/.bashrc to speed up the process of opening the repository in the future:
81+
On Ubuntu, we recommend adding the following alias to your `~/.bashrc` to speed up the process of opening the repository in the future:
7982
`alias ue='~/UnrealEngine/Engine/Binaries/Linux/UE4Editor ~/Formula-Student-Driverless-Simulator/UE4Project/FSOnline.uproject'`
8083

8184
It might show an error like 'This project was made with a different version of the Unreal Engine'. In that case select `more options` and `skip conversion`.
@@ -92,7 +95,7 @@ If you make changes to the plugin code or AirLib, you only have to recompile the
9295
This can be done from within the Unreal Editor. go to to `Window` -> `Developer tools` -> `Modules`.
9396
Search for `AirSim` and click `Recompile`.
9497

95-
### 4. Launching the game
98+
#### 4. Launching the game
9699

97100
To run the game, click the big Play button.
98101
If you want to run it like it would run when packaged, choose 'Run as standalone game'.

docs/software-install-instructions.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,18 @@ In case you want to run the ros bridge on Windows, you will need Windows Subsyst
5252
3. If you are on windows server, enable windows susbsystem for linux in the server manager and [install ubuntu](https://docs.microsoft.com/en-us/windows/wsl/install-on-server#download-a-linux-distribution).
5353

5454

55-
## Install ROS Melodic (Ubuntu / WSL)
55+
## Install ROS Melodic/Noetic/Galactic (Ubuntu / WSL)
5656

57-
```
58-
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
59-
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
60-
curl -sSL 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xC1CF6E31E6BADE8868B172B4F42ED6FBAB17C654' | sudo apt-key add -
61-
sudo apt update
62-
sudo apt install ros-melodic-desktop
63-
```
57+
Follow [the guide on their website](http://wiki.ros.org/ROS/Installation)
6458

65-
Add the following line to end of your `~/.bashrc` file:
59+
And add the following line to end of your `~/.bashrc` file:
6660
```
6761
source /opt/ros/melodic/setup.bash
6862
source ~/Formula-Student-Driverless-Simulator/ros/devel/setup.bash
6963
```
7064

65+
Be sure to replace `melodic` with your specific version
66+
7167
## Gui applications from WSL (Xming)
7268
By default, if you are running Windows Subsystem for Linux with Ubuntu, you can't run gui applications.
7369
This is super annoying if you want to use rqt applicatoins like rviz or rqt_plot.

mkdocs.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,3 @@ nav:
3434
- "Operator": "operator.md"
3535
- "System flow and signals": "competition-signals.md"
3636
- "Spectator": "spectator.md"
37-
38-
extra_css:
39-
- css\version-select.css
40-
extra_javascript:
41-
- js\version-select.js

0 commit comments

Comments
 (0)