Skip to content
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[![License](https://img.shields.io/github/license/DexForce/EmbodiChain)](LICENSE)
[![GitHub Pages](https://img.shields.io/badge/GitHub%20Pages-docs-blue?logo=github&logoColor=white)](https://dexforce.github.io/EmbodiChain/introduction.html)
[![Python](https://img.shields.io/badge/python-3.10-blue.svg)](https://docs.python.org/3/whatsnew/3.10.html)
[![Python](https://img.shields.io/badge/python-3.10%20|%203.11-blue.svg)](https://docs.python.org/3/whatsnew/3.10.html)
[![Version](https://img.shields.io/badge/version-0.0.1-blue.svg)](https://github.com/DexForce/EmbodiChain/releases)

---
Expand Down
106 changes: 106 additions & 0 deletions configs/gym/special/simple_task_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"id": "simple_task_1",
"max_episodes": 30,
"env": {
"events": {
"random_light": {
"func": "randomize_light",
"mode": "interval",
"interval_step": 20,
"params": {
"entity_cfg": {"uid": "light_1"},
"position_range": [[-0.5, -0.5, 2], [0.5, 0.5, 2]],
"color_range": [[0.6, 0.6, 0.6], [1, 1, 1]],
"intensity_range": [50.0, 100.0]
}
},
"random_material": {
"func": "randomize_visual_material",
"mode": "interval",
"interval_step": 50,
"params": {
"entity_cfg": {"uid": "table"},
"random_texture_prob": 0.5,
"texture_path": "CocoBackground/coco",
"base_color_range": [[0.2, 0.2, 0.2], [1.0, 1.0, 1.0]]
}
}
},
"dataset": {
"save_path": "./",
"extra": {
"scene_type": "commercial",
"task_description": "Sinusoidal motion"
},
"robot_meta": {
"robot_type": "UR10",
"arm_dofs": 6,
"control_freq": 3,
"observation": {
"vision": {
"cam_high": []
},
"states": ["qpos"]
},
"action": "qpos",
"min_len_steps": 5
},
"instruction": {
"lang": "Perform sinusoidal joint motion"
}
}
},
"robot": {
"uid": "UR10",
"fpath": "UniversalRobots/UR10/UR10.urdf",
"init_pos": [0.0, 0.0, 0.7775],
"init_qpos": [1.57079, -1.57079, 1.57079, -1.57079, -1.57079, -3.14159]
},
"sensor": [
{
"sensor_type": "Camera",
"uid": "cam_high",
"width": 640,
"height": 480,
"intrinsics": [488.1665344238281, 488.1665344238281, 320.0, 240.0],
"extrinsics": {
"eye": [1, 0, 3],
"target": [0, 0, 1]
}
}
],
"light": {
"direct": [
{
"uid": "light_1",
"light_type": "point",
"color": [1.0, 1.0, 1.0],
"intensity": 50.0,
"init_pos": [2, 0, 2],
"radius": 10.0
}
]
},
"background": [
{
"uid": "table",
"shape": {
"shape_type": "Mesh",
"fpath": "CircleTableSimple/circle_table_simple.ply",
"compute_uv": true
},
"attrs" : {
"mass": 10.0,
"static_friction": 0.95,
"dynamic_friction": 0.9,
"restitution": 0.01
},
"body_scale": [1, 1, 1],
"body_type": "kinematic",
"init_pos": [0.8, 0.0, 0.825],
"init_rot": [0, 90, 0]
}
],
"rigid_object": [
]
}
106 changes: 106 additions & 0 deletions configs/gym/special/simple_task_2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"id": "simple_task_2",
"max_episodes": 30,
"env": {
"events": {
"random_light": {
"func": "randomize_light",
"mode": "interval",
"interval_step": 20,
"params": {
"entity_cfg": {"uid": "light_1"},
"position_range": [[-0.5, -0.5, 2], [0.5, 0.5, 2]],
"color_range": [[0.6, 0.6, 0.6], [1, 1, 1]],
"intensity_range": [50.0, 100.0]
}
},
"random_material": {
"func": "randomize_visual_material",
"mode": "interval",
"interval_step": 50,
"params": {
"entity_cfg": {"uid": "table"},
"random_texture_prob": 0.5,
"texture_path": "CocoBackground/coco",
"base_color_range": [[0.2, 0.2, 0.2], [1.0, 1.0, 1.0]]
}
}
},
"dataset": {
"save_path": "./",
"extra": {
"scene_type": "commercial",
"task_description": "Spiral motion"
},
"robot_meta": {
"robot_type": "UR10",
"arm_dofs": 6,
"control_freq": 3,
"observation": {
"vision": {
"cam_high": []
},
"states": ["qpos"]
},
"action": "qpos",
"min_len_steps": 5
},
"instruction": {
"lang": "Perform spiral joint motion"
}
}
},
"robot": {
"uid": "UR10",
"fpath": "UniversalRobots/UR10/UR10.urdf",
"init_pos": [0.0, 0.0, 0.7775],
"init_qpos": [1.57079, -1.57079, 1.57079, -1.57079, -1.57079, -3.14159]
},
"sensor": [
{
"sensor_type": "Camera",
"uid": "cam_high",
"width": 640,
"height": 480,
"intrinsics": [488.1665344238281, 488.1665344238281, 320.0, 240.0],
"extrinsics": {
"eye": [1, 0, 3],
"target": [0, 0, 1]
}
}
],
"light": {
"direct": [
{
"uid": "light_1",
"light_type": "point",
"color": [1.0, 1.0, 1.0],
"intensity": 50.0,
"init_pos": [2, 0, 2],
"radius": 10.0
}
]
},
"background": [
{
"uid": "table",
"shape": {
"shape_type": "Mesh",
"fpath": "CircleTableSimple/circle_table_simple.ply",
"compute_uv": true
},
"attrs" : {
"mass": 10.0,
"static_friction": 0.95,
"dynamic_friction": 0.9,
"restitution": 0.01
},
"body_scale": [1, 1, 1],
"body_type": "kinematic",
"init_pos": [0.8, 0.0, 0.825],
"init_rot": [0, 90, 0]
}
],
"rigid_object": [
]
}
106 changes: 106 additions & 0 deletions configs/gym/special/ur10_parallel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"id": "ParallelRollout-v1",
"max_episodes": 24,
"env": {
"events": {
"random_light": {
"func": "randomize_light",
"mode": "interval",
"interval_step": 20,
"params": {
"entity_cfg": {"uid": "light_1"},
"position_range": [[-0.5, -0.5, 2], [0.5, 0.5, 2]],
"color_range": [[0.6, 0.6, 0.6], [1, 1, 1]],
"intensity_range": [50.0, 100.0]
}
},
"random_material": {
"func": "randomize_visual_material",
"mode": "interval",
"interval_step": 50,
"params": {
"entity_cfg": {"uid": "table"},
"random_texture_prob": 0.5,
"texture_path": "CocoBackground/coco",
"base_color_range": [[0.2, 0.2, 0.2], [1.0, 1.0, 1.0]]
}
}
},
"dataset": {
"save_path": "./",
"extra": {
"scene_type": "commercial",
"task_description": "Simple reach"
},
"robot_meta": {
"robot_type": "UR10",
"arm_dofs": 6,
"control_freq": 3,
"observation": {
"vision": {
"cam_high": []
},
"states": ["qpos"]
},
"action": "qpos",
"min_len_steps": 5
},
"instruction": {
"lang": "Pour water from bottle to cup"
}
}
},
"robot": {
"uid": "UR10",
"fpath": "UniversalRobots/UR10/UR10.urdf",
"init_pos": [0.0, 0.0, 0.7775],
"init_qpos": [1.57079, -1.57079, 1.57079, -1.57079, -1.57079, -3.14159]
},
"sensor": [
{
"sensor_type": "Camera",
"uid": "cam_high",
"width": 640,
"height": 480,
"intrinsics": [488.1665344238281, 488.1665344238281, 320.0, 240.0],
"extrinsics": {
"eye": [1, 0, 3],
"target": [0, 0, 1]
}
}
],
"light": {
"direct": [
{
"uid": "light_1",
"light_type": "point",
"color": [1.0, 1.0, 1.0],
"intensity": 50.0,
"init_pos": [2, 0, 2],
"radius": 10.0
}
]
},
"background": [
{
"uid": "table",
"shape": {
"shape_type": "Mesh",
"fpath": "CircleTableSimple/circle_table_simple.ply",
"compute_uv": true
},
"attrs" : {
"mass": 10.0,
"static_friction": 0.95,
"dynamic_friction": 0.9,
"restitution": 0.01
},
"body_scale": [1, 1, 1],
"body_type": "kinematic",
"init_pos": [0.725, 0.0, 0.825],
"init_rot": [0, 90, 0]
}
],
"rigid_object": [
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,19 @@ Randomization

.. autosummary::

rendering
physics
visual
spatial

Rendering
Physics
~~~~~~~~~~~~~~~~~~~~~~~
.. automodule:: embodichain.lab.gym.envs.managers.randomization.physics
:members:

Visual
~~~~~~~~~~~~~~~~~~~~~~~

.. automodule:: embodichain.lab.gym.envs.managers.randomization.rendering
.. automodule:: embodichain.lab.gym.envs.managers.randomization.visual
:members:

Spatial
Expand Down
Loading