You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following sensors are currently available in the Gazebo simulation environment:
6
+
7
+
-**Front Camera**
8
+
-**GNSS**
9
+
-**Lidar**
10
+
11
+
---
12
+
13
+
## Gazebo Simulation Setup
14
+
15
+
To run your code within the Gazebo simulator, you'll first need to set up and install necessary dependencies.
16
+
17
+
### 1. Set Up the Simulator
18
+
19
+
Go to this [POLARIS GEM Simulator](https://github.com/harishkumarbalaji/POLARIS_GEM_Simulator/tree/main) repository to set up the Gazebo Docker container and environment for simulation.
20
+
21
+
Follow the instructions in the linked repo to build and run the Docker container. It also provides a simulation environment of highbay.
22
+
23
+
### 2. Install Dependencies
24
+
25
+
Install the required ROS packages:
26
+
27
+
```bash
28
+
sudo apt-get install -y ros-noetic-ackermann-msgs
29
+
```
30
+
31
+
---
32
+
33
+
## Configuring Your Code for Simulation
34
+
35
+
To run your code with the Gazebo simulation, modify your launch file according to the following steps:
36
+
37
+
1.**Add a new variant:**
38
+
Under the `variants` section, create a new variant called `"gazebo"`.
39
+
40
+
2.**Set the vehicle interface:**
41
+
In the `"gazebo"` variant, set the `vehicle_interface` to use the Gazebo interface:
42
+
```yaml
43
+
vehicle_interface:
44
+
type: gem_gazebo.GEMGazeboInterface
45
+
```
46
+
47
+
3. **Add modifications (optional):**
48
+
You can add any other configuration or parameters needed for your testing under the `"gazebo"` variant.
49
+
50
+
Setting the `vehicle_interface` to `gem_gazebo.GEMGazeboInterface` will automatically link the **GEMStack** sensor topics with the corresponding **Gazebo vehicle sensors**, allowing you to test your code in the simulation environment.
51
+
52
+
## Example Launch File
53
+
54
+
For a full example, refer to the [`launch/fixed_route.yaml`](launch/fixed_route.yaml) file, which includes a sample `gazebo` variant configuration.
55
+
56
+
---
57
+
58
+
## Running Gazebo
59
+
60
+
Follow these steps to run your GEMStack code with Gazebo:
61
+
62
+
### 1. Launch the Gazebo Simulator
63
+
64
+
In one terminal, run the Gazebo simulator (using the instructions provided in the [POLARIS GEM Simulator](https://github.com/harishkumarbalaji/POLARIS_GEM_Simulator/tree/main) repository). This will load the simulation environment with the vehicle and sensors.
65
+
66
+
### 2. Launch the GEM Stack
67
+
68
+
Open a second terminal and launch GEMStack with your configured launch file.
0 commit comments