Skip to content

Commit d7f0f52

Browse files
committed
Reverted settings override changes
1 parent c773ff2 commit d7f0f52

4 files changed

Lines changed: 20 additions & 38 deletions

File tree

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@ cython_debug/
171171
.vscode/
172172
setup/zed_sdk.run
173173
cuda/
174-
homework/yolov8n.pt
175-
homework/yolo11n.pt
176174
GEMstack/knowledge/detection/yolov8n.pt
177175
GEMstack/knowledge/detection/yolo11n.pt
178176
yolov8n.pt
Lines changed: 3 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,7 @@
11
from ...utils.config import load_config_recursive
2-
import os,sys
3-
4-
5-
# Identify the vehicle used and load settings else default to vehicle config at current.yaml'
6-
# default currently uses GEM e4
7-
vehicle = "default"
8-
9-
for arg in sys.argv:
10-
if arg.startswith('--'):
11-
k,v = arg.split('=',1)
12-
k = k[2:]
13-
v = v.strip('"')
14-
if k == "vehicle":
15-
vehicle = v
16-
sys.argv.remove(arg)
17-
break
18-
19-
if(vehicle == 'e2'):
20-
vehicle_config = 'e2.yaml'
21-
elif(vehicle == 'e4'):
22-
vehicle_config = 'current.yaml'
23-
elif(vehicle == 'e2_gazebo'):
24-
vehicle_config = 'e2_gazebo.yaml'
25-
elif(vehicle == 'e4_gazebo'):
26-
vehicle_config = 'e4_gazebo.yaml'
27-
else:
28-
print("Unknown vehicle argument passed")
29-
vehicle = "default"
30-
vehicle_config = 'current.yaml'
31-
32-
SETTINGS_FILE = os.path.join(os.path.split(__file__)[0],vehicle_config)
2+
import os
3+
SETTINGS_FILE = os.path.join(os.path.split(__file__)[0],'current.yaml')
334
print("**************************************************************")
34-
print(f"Loading {vehicle} settings from",SETTINGS_FILE)
5+
print("Loading default settings from",SETTINGS_FILE)
356
print("**************************************************************")
367
SETTINGS = load_config_recursive(SETTINGS_FILE)

docs/Gazebo Simulation Documentation.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,16 @@ In one terminal, run the Gazebo simulator (using the instructions provided in th
6868
Open a second terminal and launch GEMStack with your configured launch file.
6969

7070
```bash
71-
python3 main.py --variant=gazebo --vehicle=e4_gazebo launch/{your_file}.yaml
71+
python3 main.py --variant=gazebo --settings={your_file}.yaml launch/{your_file}.yaml
72+
7273
```
7374
- Make sure to set the variant to `gazebo`.
74-
- You can specify the vehicle type to be `e2_gazebo` or `e4_gazebo`.
75+
- You can specify the settings file to GEMstack/knowledge/defaults/e4_gazebo.yaml or e2_gazebo.yaml till we work on closing the sim to real gap.
7576

7677
Example command launching the fixed route with e4 vehicle:
7778

7879
```bash
79-
python3 main.py --variant=gazebo --vehicle=e4_gazebo launch/fixed_route.yaml
80+
python3 main.py --variant=gazebo --settings=GEMstack/knowledge/defaults/e4_gazebo.yaml launch/fixed_route.yaml
8081
```
8182
**Variants:**
8283
- sim
@@ -87,4 +88,16 @@ python3 main.py --variant=gazebo --vehicle=e4_gazebo launch/fixed_route.yaml
8788
- e4
8889
- e2_gazebo
8990
- e4_gazebo
91+
92+
**Setting:**
93+
94+
By default it takes GEMstack/knowledge/defaults/current.yaml which is GEM E4 Vehicle configuration settings.
95+
96+
Other available configuration files:
97+
98+
GEMstack/knowledge/defaults/
99+
- e2.yaml
100+
- e2_gazebo.yaml
101+
- e4_gazebo.yaml
102+
90103
---

launch/gazebo_simulation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ variants:
7272
drive:
7373
perception:
7474
state_estimation : GNSSStateEstimator
75-
agent_detection : object_detection.ObjectDetection
75+
agent_detection : test_yolo_gazebo_simulation.ObjectDetection
7676
perception_normalization : StandardPerceptionNormalizer
7777

7878
planning:

0 commit comments

Comments
 (0)