Skip to content

Commit a64c477

Browse files
committed
remove use prefix
1 parent 51ac68e commit a64c477

6 files changed

Lines changed: 16 additions & 18 deletions

File tree

dimos/core/global_config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
class GlobalConfig(BaseSettings):
2121
robot_ip: str | None = None
22-
use_simulation: bool = False
23-
use_replay: bool = False
22+
simulation: bool = False
23+
replay: bool = False
2424
n_dask_workers: int = 2
2525

2626
model_config = SettingsConfigDict(
@@ -32,8 +32,8 @@ class GlobalConfig(BaseSettings):
3232

3333
@cached_property
3434
def unitree_connection_type(self) -> str:
35-
if self.use_replay:
35+
if self.replay:
3636
return "replay"
37-
if self.use_simulation:
37+
if self.simulation:
3838
return "mujoco"
3939
return "webrtc"

dimos/perception/spatial_perception.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,6 @@ def _process_frame(self) -> None:
259259
# Get euler angles from quaternion orientation for metadata
260260
euler = tf.rotation.to_euler()
261261

262-
print(f"Storing frame {frame_id} at position {current_pose}...")
263-
264262
# Create metadata dictionary with primitive types only
265263
metadata = {
266264
"pos_x": float(current_pose.position.x),

dimos/robot/cli/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,23 +43,23 @@ This tool also initializes the global config and passes it to the blueprint.
4343
```python
4444
class GlobalConfig(BaseSettings):
4545
robot_ip: str | None = None
46-
use_simulation: bool = False
47-
use_replay: bool = False
46+
simulation: bool = False
47+
replay: bool = False
4848
n_dask_workers: int = 2
4949
```
5050

5151
Configuration values can be set from multiple places in order of precedence (later entries override earlier ones):
5252

53-
- Default value defined on GlobalConfig. (`use_simulation = False`)
54-
- Value defined in `.env` (`USE_SIMULATION=true`)
55-
- Value in the environment variable (`USE_SIMULATION=true`)
56-
- Value coming from the CLI (`--use-simulation` or `--no-use-simulation`)
57-
- Value defined on the blueprint (`blueprint.global_config(use_simulation=True)`)
53+
- Default value defined on GlobalConfig. (`simulation = False`)
54+
- Value defined in `.env` (`SIMULATION=true`)
55+
- Value in the environment variable (`SIMULATION=true`)
56+
- Value coming from the CLI (`--simulation` or `--no-simulation`)
57+
- Value defined on the blueprint (`blueprint.global_config(simulation=True)`)
5858

5959
For environment variables/`.env` values, you have to prefix the name with `DIMOS_`.
6060

6161
For the command line, you call it like this:
6262

6363
```bash
64-
dimos-robot --use-simulation run unitree-go2
65-
```
64+
dimos-robot --simulation run unitree-go2
65+
```

dimos/robot/unitree_webrtc/depth_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def __init__(
7979
self._stop_processing = threading.Event()
8080

8181
if global_config:
82-
if global_config.use_simulation:
82+
if global_config.simulation:
8383
self.gt_depth_scale = 1.0
8484

8585
@rpc

dimos/robot/unitree_webrtc/type/map.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(
5252
self.max_height = max_height
5353

5454
if global_config:
55-
if global_config.use_simulation:
55+
if global_config.simulation:
5656
self.min_height = 0.3
5757

5858
super().__init__(**kwargs)

dimos/robot/unitree_webrtc/unitree_go2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def __init__(
158158
cfg = global_config or GlobalConfig()
159159
self.ip = ip if ip is not None else cfg.robot_ip
160160
self.connection_type = connection_type or cfg.unitree_connection_type
161-
self.rectify_image = not cfg.use_simulation
161+
self.rectify_image = not cfg.simulation
162162
self.tf = TF()
163163
self.connection = None
164164

0 commit comments

Comments
 (0)