Skip to content

Fix usage of enableCameraSensors #149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions isaacgymenvs/cfg/task/AllegroHand.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ env:
assetFileNameEgg: "mjcf/open_ai_assets/hand/egg.xml"
assetFileNamePen: "mjcf/open_ai_assets/hand/pen.xml"

# set to True if you use camera sensors in the environment
enableCameraSensors: False

task:
randomize: False
randomization_params:
Expand Down Expand Up @@ -155,9 +158,6 @@ task:
# schedule: "linear" # "linear" will scale the current random sample by `min(current num steps, schedule_steps) / schedule_steps`
# schedule_steps: 30000

# set to True if you use camera sensors in the environment
enableCameraSensors: False

sim:
dt: 0.01667 # 1/60
substeps: 2
Expand Down
6 changes: 3 additions & 3 deletions isaacgymenvs/cfg/task/AllegroHandDextremeADR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ env:
assetFileNameEgg: "mjcf/open_ai_assets/hand/egg.xml"
assetFileNamePen: "mjcf/open_ai_assets/hand/pen.xml"

# set to True if you use camera sensors in the environment
enableCameraSensors: False

task:
randomize: True
randomization_params:
Expand Down Expand Up @@ -418,9 +421,6 @@ task:
delta: 0.01
delta_style: 'additive'

# set to True if you use camera sensors in the environment
enableCameraSensors: False

sim:
dt: 0.01667 # 1/60
substeps: 2
Expand Down
7 changes: 3 additions & 4 deletions isaacgymenvs/cfg/task/AllegroHandDextremeManualDR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ env:
assetFileNameEgg: "mjcf/open_ai_assets/hand/egg.xml"
assetFileNamePen: "mjcf/open_ai_assets/hand/pen.xml"

# set to True if you use camera sensors in the environment
enableCameraSensors: False

task:
randomize: True
randomization_params:
Expand Down Expand Up @@ -239,10 +242,6 @@ task:
operation: "additive"
distribution: "uniform"


# set to True if you use camera sensors in the environment
enableCameraSensors: False

sim:
dt: 0.01667 # 1/60
substeps: 2
Expand Down
6 changes: 3 additions & 3 deletions isaacgymenvs/cfg/task/AllegroHandLSTM.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ env:
assetFileNameEgg: "mjcf/open_ai_assets/hand/egg.xml"
assetFileNamePen: "mjcf/open_ai_assets/hand/pen.xml"

# set to True if you use camera sensors in the environment
enableCameraSensors: False

task:
randomize: True
randomization_params:
Expand Down Expand Up @@ -247,9 +250,6 @@ task:
operation: "additive"
distribution: "uniform"

# set to True if you use camera sensors in the environment
enableCameraSensors: False

sim:
dt: 0.01667 # 1/60
substeps: 2
Expand Down
2 changes: 1 addition & 1 deletion isaacgymenvs/tasks/base/vec_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def __init__(self, config: Dict[str, Any], rl_device: str, sim_device: str, grap
# if training in a headless mode
self.headless = headless

enable_camera_sensors = config.get("enableCameraSensors", False)
enable_camera_sensors = config["env"].get("enableCameraSensors", False)
self.graphics_device_id = graphics_device_id
if enable_camera_sensors == False and self.headless == True:
self.graphics_device_id = -1
Expand Down