File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919
2020class 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"
Original file line number Diff line number Diff 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 ),
Original file line number Diff line number Diff line change @@ -43,23 +43,23 @@ This tool also initializes the global config and passes it to the blueprint.
4343``` python
4444class 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
5151Configuration 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
5959For environment variables/` .env ` values, you have to prefix the name with ` DIMOS_ ` .
6060
6161For 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+ ```
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments