-
Notifications
You must be signed in to change notification settings - Fork 2
added scene cameras for cosmos #6
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,7 @@ | |
| from isaaclab.assets import AssetBaseCfg | ||
| from isaaclab.sim.spawners.from_files import UsdFileCfg | ||
| from isaaclab.utils.assets import ISAAC_NUCLEUS_DIR, NVIDIA_NUCLEUS_DIR | ||
| from source.isaaclab_assets.isaaclab_assets.robots.universal_robots import UR10_CFG | ||
| from isaaclab_assets.robots.universal_robots import UR10_CFG | ||
| from . import dev_env_cfg | ||
|
Comment on lines
12
to
16
|
||
| import isaaclab.sim as sim_utils | ||
| from isaaclab.sensors import CameraCfg | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -12,7 +12,7 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| from isaaclab.assets import AssetBaseCfg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| from isaaclab.sim.spawners.from_files import UsdFileCfg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| from isaaclab.utils.assets import ISAAC_NUCLEUS_DIR, NVIDIA_NUCLEUS_DIR | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| from source.isaaclab_assets.isaaclab_assets.robots.universal_robots import UR10_CFG | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| from isaaclab_assets.robots.universal_robots import UR10_CFG | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| from . import dev_env_cfg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
12
to
16
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| import isaaclab.sim as sim_utils | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| from isaaclab.sensors import CameraCfg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -27,11 +27,11 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # Pre-defined configs | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ## | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| from isaaclab_assets.robots.franka import FRANKA_PANDA_HIGH_PD_CFG # isort: skip | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| from isaaclab_assets.robots.universal_robots import UR10e_ROBOTIQ_GRIPPER_CFG | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| #from isaaclab_assets.robots.universal_robots import UR10e_ROBOTIQ_GRIPPER_CFG | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| #from isaaclab_assets.robots.universal_robots import UR10e_ROBOTIQ_GRIPPER_CFG | |
| # from isaaclab_assets.robots.universal_robots import UR10e_ROBOTIQ_GRIPPER_CFG |
Copilot
AI
Mar 25, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SEMANTIC_MAPPING is referenced in the CameraCfg but is not defined/imported anywhere in this module, so importing this config will raise NameError. Define the mapping (as done in other cosmos/blueprint env cfgs) or import it from a shared location.
Copilot
AI
Mar 25, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These new image ObsTerms are assigned onto self.observations instead of the policy observation group (e.g., self.observations.policy.<term>). As written they won’t be part of the policy observation group (and may raise an attribute error depending on how configclass is implemented). Please attach them under self.observations.policy like the existing table_cam / wrist_cam terms.
| self.observations.table_cam_segmentation= ObsTerm( | |
| func = mdp.image, | |
| params = { | |
| "sensor_cfg": SceneEntityCfg("table_cam"), | |
| "data_type": "semantic_segmentation", | |
| "normalize" : True, | |
| } | |
| ) | |
| self.observations.table_cam_normals= ObsTerm( | |
| func=mdp.image, | |
| params={ | |
| "sensor_cfg": SceneEntityCfg("table_cam"), | |
| "data_type" : "normals", | |
| "normalize" : True, | |
| } | |
| ) | |
| self.observations.table_cam_depth = ObsTerm( | |
| func=mdp.image, | |
| params={ | |
| "sensor_cfg": SceneEntityCfg("table_cam"), | |
| "data_type": "distance_to_image_plane", | |
| "normalize" : True, | |
| } | |
| self.observations.policy.table_cam_segmentation = ObsTerm( | |
| func=mdp.image, | |
| params={ | |
| "sensor_cfg": SceneEntityCfg("table_cam"), | |
| "data_type": "semantic_segmentation", | |
| "normalize": True, | |
| }, | |
| ) | |
| self.observations.policy.table_cam_normals = ObsTerm( | |
| func=mdp.image, | |
| params={ | |
| "sensor_cfg": SceneEntityCfg("table_cam"), | |
| "data_type": "normals", | |
| "normalize": True, | |
| }, | |
| ) | |
| self.observations.policy.table_cam_depth = ObsTerm( | |
| func=mdp.image, | |
| params={ | |
| "sensor_cfg": SceneEntityCfg("table_cam"), | |
| "data_type": "distance_to_image_plane", | |
| "normalize": True, | |
| }, |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,7 @@ | |
| from isaaclab.assets import AssetBaseCfg | ||
| from isaaclab.sim.spawners.from_files import UsdFileCfg | ||
| from isaaclab.utils.assets import ISAAC_NUCLEUS_DIR | ||
| from source.isaaclab_assets.isaaclab_assets.robots.universal_robots import UR10_CFG | ||
| from isaaclab_assets.robots.universal_robots import UR10_CFG | ||
| from . import dev_env_cfg | ||
|
Comment on lines
12
to
16
|
||
| import math | ||
| from isaaclab.managers import SceneEntityCfg | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,6 @@ | |
| from isaaclab.assets import AssetBaseCfg | ||
| from isaaclab.sim.spawners.from_files import UsdFileCfg | ||
| from isaaclab.utils.assets import ISAAC_NUCLEUS_DIR, NVIDIA_NUCLEUS_DIR | ||
| #from source.isaaclab_assets.isaaclab_assets.robots.universal_robots import UR10_CFG | ||
| from isaaclab_assets.robots.universal_robots import UR10_CFG | ||
| from . import dev_env_cfg | ||
|
Comment on lines
12
to
16
|
||
| import isaaclab.sim as sim_utils | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,6 @@ | |
| from isaaclab.assets import AssetBaseCfg | ||
| from isaaclab.sim.spawners.from_files import UsdFileCfg | ||
| from isaaclab.utils.assets import ISAAC_NUCLEUS_DIR, NVIDIA_NUCLEUS_DIR | ||
| #from source.isaaclab_assets.isaaclab_assets.robots.universal_robots import UR10_CFG | ||
| from isaaclab_assets.robots.universal_robots import UR10_CFG | ||
| from . import dev_env_cfg | ||
|
Comment on lines
12
to
16
|
||
| import isaaclab.sim as sim_utils | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -294,7 +294,7 @@ class TerminationsCfg: | |
|
|
||
| time_out = DoneTerm(func=mdp.time_out, time_out=True) | ||
|
|
||
| joint_violation = DoneTerm(func=mdp.joint_pos_out_of_limit) | ||
| #joint_violation = DoneTerm(func=mdp.joint_pos_out_of_limit) | ||
|
|
||
|
Comment on lines
295
to
298
|
||
| #object_orientation = DoneTerm(func=mdp.bad_orientation) | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -44,7 +44,10 @@ class PolicyCfg(ObsGroup): | |||||||||||||||
| ) | ||||||||||||||||
| table_cam_normals = ObsTerm( | ||||||||||||||||
| func=mdp.image, | ||||||||||||||||
| params={"sensor_cfg": SceneEntityCfg("table_cam"), "data_type": "normals", "normalize": True}, | ||||||||||||||||
| params={ | ||||||||||||||||
| "sensor_cfg": SceneEntityCfg("table_cam"), | ||||||||||||||||
| "data_type": "normals", | ||||||||||||||||
| "normalize": True}, | ||||||||||||||||
|
Comment on lines
+48
to
+50
|
||||||||||||||||
| "sensor_cfg": SceneEntityCfg("table_cam"), | |
| "data_type": "normals", | |
| "normalize": True}, | |
| "sensor_cfg": SceneEntityCfg("table_cam"), | |
| "data_type": "normals", | |
| "normalize": True, | |
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debug
print()inside this termination will spam logs and can significantly slow down large batched envs (and forces a device sync for theif torch.any(...)). Prefer structured logging (e.g., at debug level) and log only the violating env indices / min-max values, or remove this side-effect entirely.