@@ -10,10 +10,13 @@ Any parameter of the environment can be modified by adding one or multiple eleme
1010to the command line input, where ``a.b.param1 `` reflects the parameter's hierarchy, for example ``env.actions.joint_effort.scale=10.0 ``.
1111Similarly, the agent's parameters can be modified by using the ``agent `` prefix, for example ``agent.seed=2024 ``.
1212
13- The way these command line arguments are set follow the exact structure of the configuration files. Since the different
14- RL frameworks use different conventions, there might be differences in the way the parameters are set. For example,
15- with *rl_games * the seed will be set with ``agent.params.seed ``, while with *rsl_rl *, *skrl * and *sb3 * it will be set with
16- ``agent.seed ``.
13+ .. note ::
14+
15+ The way these command line arguments are set follow the exact structure of the configuration files. Since the different
16+ RL frameworks use different conventions, there might be differences in the way the parameters are set. For example,
17+ with `rl_games ` the seed will be set with ``agent.params.seed ``, while with `rsl_rl `, `skrl ` and `sb3 ` it will be set with
18+ ``agent.seed ``.
19+
1720
1821As a result, training with hydra arguments can be run with the following syntax:
1922
@@ -57,6 +60,33 @@ The above command will run the training script with the task ``Isaac-Cartpole-v0
5760 of the form ``--param ``, for example ``--num_envs ``, ``--seed ``, ``--max_iterations ``. These arguments have precedence
5861 over the hydra arguments, and will overwrite the values set by the hydra arguments.
5962
63+ .. attention ::
64+
65+ Particular care should be taken when modifying the parameters using command line arguments. Some of the configurations
66+ perform intermediate computations based on other parameters. These computations will not be updated when the parameters
67+ are modified.
68+
69+ For example, for the configuration of the Cartpole camera depth environment:
70+
71+ .. literalinclude :: ../../../source/extensions/omni.isaac.lab_tasks/omni/isaac/lab_tasks/direct/cartpole/cartpole_camera_env.py
72+ :language: python
73+ :start-at: class CartpoleDepthCameraEnvCfg
74+ :end-at: tiled_camera.width
75+ :emphasize-lines: 16
76+
77+ If the user were to modify the width of the camera, i.e. ``env.tiled_camera.width=128 ``, then the parameter
78+ ``env.num_observations=10240 `` (1*80*128) must be updated and given as input as well.
79+
80+ Similarly, the ``__post_init__ `` method is not updated with the command line inputs. In the ``LocomotionVelocityRoughEnvCfg ``, for example,
81+ the post init update is as follows:
82+
83+ .. literalinclude :: ../../../source/extensions/omni.isaac.lab_tasks/omni/isaac/lab_tasks/manager_based/locomotion/velocity/velocity_env_cfg.py
84+ :language: python
85+ :start-at: class LocomotionVelocityRoughEnvCfg
86+ :emphasize-lines: 23, 29, 31
87+
88+ Here, when modifying ``env.decimation `` or ``env.sim.dt ``, the user would have to give the updated ``env.sim.render_interval ``,
89+ ``env.scene.height_scanner.update_period ``, and ``env.scene.contact_forces.update_period `` as input as well.
6090
6191Modifying advanced parameters
6292-----------------------------
@@ -97,33 +127,3 @@ This example shows two noteworthy points:
97127
98128- The parameter we set has a space, so it must be enclosed in quotes.
99129- The parameter is a list while it is a tuple in the config. This is due to the fact that Hydra does not support tuples.
100-
101-
102- Modifying inter-dependent parameters
103- ------------------------------------
104-
105- Particular care should be taken when modifying the parameters using command line arguments. Some of the configurations
106- perform intermediate computations based on other parameters. These computations will not be updated when the parameters
107- are modified.
108-
109- For example, for the configuration of the Cartpole camera depth environment:
110-
111- .. literalinclude :: ../../../source/extensions/omni.isaac.lab_tasks/omni/isaac/lab_tasks/direct/cartpole/cartpole_camera_env.py
112- :language: python
113- :start-at: class CartpoleDepthCameraEnvCfg
114- :end-at: tiled_camera.width
115- :emphasize-lines: 16
116-
117- If the user were to modify the width of the camera, i.e. ``env.tiled_camera.width=128 ``, then the parameter
118- ``env.num_observations=10240 `` (1*80*128) must be updated and given as input as well.
119-
120- Similarly, the ``__post_init__ `` method is not updated with the command line inputs. In the ``LocomotionVelocityRoughEnvCfg ``, for example,
121- the post init update is as follows:
122-
123- .. literalinclude :: ../../../source/extensions/omni.isaac.lab_tasks/omni/isaac/lab_tasks/manager_based/locomotion/velocity/velocity_env_cfg.py
124- :language: python
125- :start-at: class LocomotionVelocityRoughEnvCfg
126- :emphasize-lines: 23, 29, 31
127-
128- Here, when modifying ``env.decimation `` or ``env.sim.dt ``, the user needs to give the updated ``env.sim.render_interval ``,
129- ``env.scene.height_scanner.update_period ``, and ``env.scene.contact_forces.update_period `` as input as well.
0 commit comments