embodichain 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- embodichain-0.1.0/LICENSE +201 -0
- embodichain-0.1.0/MANIFEST.in +1 -0
- embodichain-0.1.0/PKG-INFO +107 -0
- embodichain-0.1.0/README.md +68 -0
- embodichain-0.1.0/VERSION +1 -0
- embodichain-0.1.0/docs/source/conf.py +71 -0
- embodichain-0.1.0/embodichain/VERSION +1 -0
- embodichain-0.1.0/embodichain/__init__.py +33 -0
- embodichain-0.1.0/embodichain/__pycache__/__init__.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/agents/hierarchy/__init__.py +19 -0
- embodichain-0.1.0/embodichain/agents/hierarchy/agent_base.py +94 -0
- embodichain-0.1.0/embodichain/agents/hierarchy/code_agent.py +288 -0
- embodichain-0.1.0/embodichain/agents/hierarchy/llm.py +72 -0
- embodichain-0.1.0/embodichain/agents/hierarchy/task_agent.py +157 -0
- embodichain-0.1.0/embodichain/agents/hierarchy/validation_agent.py +241 -0
- embodichain-0.1.0/embodichain/agents/mllm/prompt/__init__.py +8 -0
- embodichain-0.1.0/embodichain/agents/mllm/prompt/code_prompt.py +149 -0
- embodichain-0.1.0/embodichain/agents/mllm/prompt/task_prompt.py +144 -0
- embodichain-0.1.0/embodichain/agents/prompts/atom_actions.txt +136 -0
- embodichain-0.1.0/embodichain/agents/prompts/basic_background.txt +42 -0
- embodichain-0.1.0/embodichain/agents/prompts/code_example.txt +35 -0
- embodichain-0.1.0/embodichain/agents/prompts/code_prompt.txt +7 -0
- embodichain-0.1.0/embodichain/agents/rl/__pycache__/train.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/agents/rl/algo/__init__.py +52 -0
- embodichain-0.1.0/embodichain/agents/rl/algo/__pycache__/__init__.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/agents/rl/algo/__pycache__/base.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/agents/rl/algo/__pycache__/ppo.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/agents/rl/algo/base.py +52 -0
- embodichain-0.1.0/embodichain/agents/rl/algo/ppo.py +192 -0
- embodichain-0.1.0/embodichain/agents/rl/buffer/__init__.py +19 -0
- embodichain-0.1.0/embodichain/agents/rl/buffer/__pycache__/__init__.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/agents/rl/buffer/__pycache__/rollout_buffer.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/agents/rl/buffer/rollout_buffer.py +106 -0
- embodichain-0.1.0/embodichain/agents/rl/models/__init__.py +101 -0
- embodichain-0.1.0/embodichain/agents/rl/models/__pycache__/__init__.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/agents/rl/models/__pycache__/actor_critic.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/agents/rl/models/__pycache__/mlp.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/agents/rl/models/__pycache__/policy.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/agents/rl/models/actor_critic.py +96 -0
- embodichain-0.1.0/embodichain/agents/rl/models/mlp.py +121 -0
- embodichain-0.1.0/embodichain/agents/rl/models/policy.py +94 -0
- embodichain-0.1.0/embodichain/agents/rl/train.py +319 -0
- embodichain-0.1.0/embodichain/agents/rl/utils/__init__.py +23 -0
- embodichain-0.1.0/embodichain/agents/rl/utils/__pycache__/__init__.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/agents/rl/utils/__pycache__/config.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/agents/rl/utils/__pycache__/helper.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/agents/rl/utils/__pycache__/trainer.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/agents/rl/utils/config.py +29 -0
- embodichain-0.1.0/embodichain/agents/rl/utils/helper.py +52 -0
- embodichain-0.1.0/embodichain/agents/rl/utils/trainer.py +318 -0
- embodichain-0.1.0/embodichain/data/__init__.py +27 -0
- embodichain-0.1.0/embodichain/data/__pycache__/__init__.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/data/__pycache__/constants.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/data/__pycache__/dataset.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/data/__pycache__/enum.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/data/assets/__init__.py +23 -0
- embodichain-0.1.0/embodichain/data/assets/__pycache__/__init__.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/data/assets/__pycache__/demo_assets.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/data/assets/__pycache__/eef_assets.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/data/assets/__pycache__/materials.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/data/assets/__pycache__/obj_assets.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/data/assets/__pycache__/robot_assets.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/data/assets/__pycache__/scene_assets.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/data/assets/__pycache__/w1_assets.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/data/assets/demo_assets.py +51 -0
- embodichain-0.1.0/embodichain/data/assets/eef_assets.py +272 -0
- embodichain-0.1.0/embodichain/data/assets/materials.py +115 -0
- embodichain-0.1.0/embodichain/data/assets/obj_assets.py +217 -0
- embodichain-0.1.0/embodichain/data/assets/robot_assets.py +471 -0
- embodichain-0.1.0/embodichain/data/assets/scene_assets.py +67 -0
- embodichain-0.1.0/embodichain/data/assets/w1_assets.py +230 -0
- embodichain-0.1.0/embodichain/data/constants.py +27 -0
- embodichain-0.1.0/embodichain/data/dataset.py +169 -0
- embodichain-0.1.0/embodichain/data/enum.py +74 -0
- embodichain-0.1.0/embodichain/lab/__init__.py +19 -0
- embodichain-0.1.0/embodichain/lab/__pycache__/__init__.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/devices/__init__.py +23 -0
- embodichain-0.1.0/embodichain/lab/devices/__pycache__/__init__.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/devices/__pycache__/device.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/devices/__pycache__/device_controller.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/devices/device.py +44 -0
- embodichain-0.1.0/embodichain/lab/devices/device_controller.py +295 -0
- embodichain-0.1.0/embodichain/lab/gym/__init__.py +18 -0
- embodichain-0.1.0/embodichain/lab/gym/__pycache__/__init__.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/__init__.py +56 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/__pycache__/__init__.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/__pycache__/base_env.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/__pycache__/embodied_env.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/__pycache__/rl_env.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/action_bank/__pycache__/configurable_action.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/action_bank/__pycache__/utils.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/action_bank/configurable_action.py +1479 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/action_bank/utils.py +64 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/base_env.py +599 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/embodied_env.py +612 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/__init__.py +30 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/__pycache__/__init__.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/__pycache__/cfg.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/__pycache__/dataset_manager.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/__pycache__/datasets.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/__pycache__/event_manager.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/__pycache__/manager_base.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/__pycache__/observation_manager.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/__pycache__/reward_manager.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/cfg.py +346 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/dataset_manager.py +374 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/datasets.py +399 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/event_manager.py +353 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/events.py +611 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/manager_base.py +431 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/object/__init__.py +17 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/object/geometry.py +188 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/observation_manager.py +213 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/observations.py +777 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/randomization/__init__.py +24 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/randomization/geometry.py +158 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/randomization/physics.py +104 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/randomization/spatial.py +349 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/randomization/visual.py +642 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/record.py +287 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/reward_manager.py +229 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/managers/rewards.py +661 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/rl_env.py +249 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/rl/__init__.py +32 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/rl/__pycache__/__init__.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/rl/__pycache__/push_cube.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/rl/push_cube.py +67 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/special/__pycache__/simple_task.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/special/simple_task.py +88 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/tableware/__init__.py +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/tableware/__pycache__/__init__.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/tableware/__pycache__/base_agent_env.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/tableware/__pycache__/blocks_ranking_rgb.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/tableware/__pycache__/blocks_ranking_size.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/tableware/__pycache__/match_object_container.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/tableware/__pycache__/place_object_drawer.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/tableware/__pycache__/rearrangement.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/tableware/__pycache__/scoop_ice.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/tableware/__pycache__/stack_blocks_two.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/tableware/__pycache__/stack_cups.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/tableware/base_agent_env.py +203 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/tableware/blocks_ranking_rgb.py +313 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/tableware/blocks_ranking_size.py +89 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/tableware/match_object_container.py +176 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/tableware/place_object_drawer.py +83 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/tableware/pour_water/__init__.py +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/tableware/pour_water/__pycache__/__init__.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/tableware/pour_water/__pycache__/action_bank.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/tableware/pour_water/__pycache__/pour_water.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/tableware/pour_water/action_bank.py +233 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/tableware/pour_water/pour_water.py +162 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/tableware/rearrangement.py +90 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/tableware/scoop_ice.py +213 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/tableware/stack_blocks_two.py +297 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/tasks/tableware/stack_cups.py +118 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/wrapper/__init__.py +17 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/wrapper/__pycache__/__init__.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/wrapper/__pycache__/no_fail.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/envs/wrapper/no_fail.py +31 -0
- embodichain-0.1.0/embodichain/lab/gym/utils/__init__.py +15 -0
- embodichain-0.1.0/embodichain/lab/gym/utils/__pycache__/__init__.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/utils/__pycache__/gym_utils.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/utils/__pycache__/misc.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/utils/__pycache__/registration.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/gym/utils/gym_utils.py +680 -0
- embodichain-0.1.0/embodichain/lab/gym/utils/misc.py +1384 -0
- embodichain-0.1.0/embodichain/lab/gym/utils/registration.py +218 -0
- embodichain-0.1.0/embodichain/lab/scripts/preview_env.py +140 -0
- embodichain-0.1.0/embodichain/lab/scripts/run_agent.py +146 -0
- embodichain-0.1.0/embodichain/lab/scripts/run_env.py +211 -0
- embodichain-0.1.0/embodichain/lab/sim/__init__.py +24 -0
- embodichain-0.1.0/embodichain/lab/sim/__pycache__/__init__.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/__pycache__/cfg.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/__pycache__/common.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/__pycache__/material.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/__pycache__/shapes.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/__pycache__/sim_manager.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/__pycache__/types.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/atom_actions.py +949 -0
- embodichain-0.1.0/embodichain/lab/sim/cfg.py +1124 -0
- embodichain-0.1.0/embodichain/lab/sim/common.py +105 -0
- embodichain-0.1.0/embodichain/lab/sim/material.py +408 -0
- embodichain-0.1.0/embodichain/lab/sim/objects/__init__.py +76 -0
- embodichain-0.1.0/embodichain/lab/sim/objects/__pycache__/__init__.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/objects/__pycache__/articulation.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/objects/__pycache__/gizmo.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/objects/__pycache__/light.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/objects/__pycache__/rigid_object.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/objects/__pycache__/rigid_object_group.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/objects/__pycache__/robot.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/objects/__pycache__/soft_object.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/objects/articulation.py +1717 -0
- embodichain-0.1.0/embodichain/lab/sim/objects/gizmo.py +543 -0
- embodichain-0.1.0/embodichain/lab/sim/objects/light.py +299 -0
- embodichain-0.1.0/embodichain/lab/sim/objects/rigid_object.py +882 -0
- embodichain-0.1.0/embodichain/lab/sim/objects/rigid_object_group.py +571 -0
- embodichain-0.1.0/embodichain/lab/sim/objects/robot.py +1076 -0
- embodichain-0.1.0/embodichain/lab/sim/objects/soft_object.py +373 -0
- embodichain-0.1.0/embodichain/lab/sim/planners/__pycache__/base_planner.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/planners/__pycache__/motion_generator.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/planners/__pycache__/toppra_planner.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/planners/__pycache__/utils.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/planners/base_planner.py +201 -0
- embodichain-0.1.0/embodichain/lab/sim/planners/motion_generator.py +605 -0
- embodichain-0.1.0/embodichain/lab/sim/planners/toppra_planner.py +172 -0
- embodichain-0.1.0/embodichain/lab/sim/planners/utils.py +55 -0
- embodichain-0.1.0/embodichain/lab/sim/robots/__init__.py +18 -0
- embodichain-0.1.0/embodichain/lab/sim/robots/cobotmagic.py +203 -0
- embodichain-0.1.0/embodichain/lab/sim/robots/dexforce_w1/__init__.py +17 -0
- embodichain-0.1.0/embodichain/lab/sim/robots/dexforce_w1/cfg.py +390 -0
- embodichain-0.1.0/embodichain/lab/sim/robots/dexforce_w1/params.py +271 -0
- embodichain-0.1.0/embodichain/lab/sim/robots/dexforce_w1/types.py +66 -0
- embodichain-0.1.0/embodichain/lab/sim/robots/dexforce_w1/utils.py +747 -0
- embodichain-0.1.0/embodichain/lab/sim/sensors/__init__.py +24 -0
- embodichain-0.1.0/embodichain/lab/sim/sensors/__pycache__/__init__.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/sensors/__pycache__/base_sensor.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/sensors/__pycache__/camera.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/sensors/__pycache__/contact_sensor.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/sensors/__pycache__/stereo.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/sensors/base_sensor.py +175 -0
- embodichain-0.1.0/embodichain/lab/sim/sensors/camera.py +536 -0
- embodichain-0.1.0/embodichain/lab/sim/sensors/contact_sensor.py +368 -0
- embodichain-0.1.0/embodichain/lab/sim/sensors/stereo.py +546 -0
- embodichain-0.1.0/embodichain/lab/sim/shapes.py +141 -0
- embodichain-0.1.0/embodichain/lab/sim/sim_manager.py +1628 -0
- embodichain-0.1.0/embodichain/lab/sim/solvers/__init__.py +23 -0
- embodichain-0.1.0/embodichain/lab/sim/solvers/__pycache__/__init__.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/solvers/__pycache__/base_solver.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/solvers/__pycache__/differential_solver.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/solvers/__pycache__/opw_solver.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/solvers/__pycache__/pink_solver.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/solvers/__pycache__/pinocchio_solver.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/solvers/__pycache__/pytorch_solver.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/solvers/__pycache__/qpos_seed_sampler.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/solvers/__pycache__/srs_solver.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/solvers/base_solver.py +415 -0
- embodichain-0.1.0/embodichain/lab/sim/solvers/differential_solver.py +421 -0
- embodichain-0.1.0/embodichain/lab/sim/solvers/null_space_posture_task.py +270 -0
- embodichain-0.1.0/embodichain/lab/sim/solvers/opw_solver.py +730 -0
- embodichain-0.1.0/embodichain/lab/sim/solvers/pink_solver.py +378 -0
- embodichain-0.1.0/embodichain/lab/sim/solvers/pinocchio_solver.py +590 -0
- embodichain-0.1.0/embodichain/lab/sim/solvers/pytorch_solver.py +586 -0
- embodichain-0.1.0/embodichain/lab/sim/solvers/qpos_seed_sampler.py +88 -0
- embodichain-0.1.0/embodichain/lab/sim/solvers/srs_solver.py +1224 -0
- embodichain-0.1.0/embodichain/lab/sim/types.py +28 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/__init__.py +19 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/__pycache__/__init__.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/__pycache__/dynamic_pybind.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/__pycache__/gizmo_utils.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/__pycache__/import_utils.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/__pycache__/io_utils.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/__pycache__/mesh_utils.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/__pycache__/sim_utils.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/__pycache__/solver_utils.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/__pycache__/tensor.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/action_utils.py +337 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/atom_action_utils.py +293 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/cfg_utils.py +170 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/dynamic_pybind.py +65 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/gizmo_utils.py +46 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/import_utils.py +125 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/io_utils.py +26 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/mesh_utils.py +142 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/sim_utils.py +300 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/solver_utils.py +241 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/tensor.py +55 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/__init__.py +67 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/caches/__init__.py +31 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/caches/base_cache.py +76 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/caches/cache_manager.py +105 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/caches/cache_utils.py +277 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/caches/disk_cache.py +197 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/caches/memory_cache.py +78 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/configs/__init__.py +52 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/configs/cache_config.py +41 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/configs/dimension_constraint.py +45 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/configs/metric_config.py +114 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/configs/sampling_config.py +81 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/configs/visualization_config.py +96 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/constraints/__init__.py +24 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/constraints/base_constraint.py +199 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/constraints/workspace_constraint.py +279 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/metrics/__init__.py +35 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/metrics/base_metric.py +83 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/metrics/density_metric.py +152 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/metrics/manipulability_metric.py +151 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/metrics/reachability_metric.py +137 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/samplers/__init__.py +64 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/samplers/base_sampler.py +242 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/samplers/gaussian_sampler.py +265 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/samplers/halton_sampler.py +281 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/samplers/importance_sampler.py +274 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/samplers/iniform_sampler.py +169 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/samplers/lhs_sampler.py +226 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/samplers/random_sampler.py +112 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/samplers/sampler_factory.py +276 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/samplers/sobol_sampler.py +216 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/visualizers/__init__.py +56 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/visualizers/axis_visualizer.py +478 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/visualizers/base_visualizer.py +331 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/visualizers/point_cloud_visualizer.py +265 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/visualizers/sphere_visualizer.py +310 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/visualizers/visualizer_factory.py +274 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/visualizers/voxel_visualizer.py +342 -0
- embodichain-0.1.0/embodichain/lab/sim/utility/workspace_analyzer/workspace_analyzer.py +2151 -0
- embodichain-0.1.0/embodichain/toolkits/__init__.py +15 -0
- embodichain-0.1.0/embodichain/toolkits/acd/__init__.py +18 -0
- embodichain-0.1.0/embodichain/toolkits/acd/urdf_modifider.py +369 -0
- embodichain-0.1.0/embodichain/toolkits/code_generation.py +88 -0
- embodichain-0.1.0/embodichain/toolkits/graspkit/pg_grasp/__init__.py +21 -0
- embodichain-0.1.0/embodichain/toolkits/graspkit/pg_grasp/antipodal.py +670 -0
- embodichain-0.1.0/embodichain/toolkits/graspkit/pg_grasp/cone_sampler.py +121 -0
- embodichain-0.1.0/embodichain/toolkits/toolkits.py +33 -0
- embodichain-0.1.0/embodichain/toolkits/urdf_assembly/__init__.py +18 -0
- embodichain-0.1.0/embodichain/toolkits/urdf_assembly/component.py +342 -0
- embodichain-0.1.0/embodichain/toolkits/urdf_assembly/connection.py +212 -0
- embodichain-0.1.0/embodichain/toolkits/urdf_assembly/file_writer.py +211 -0
- embodichain-0.1.0/embodichain/toolkits/urdf_assembly/logging_utils.py +130 -0
- embodichain-0.1.0/embodichain/toolkits/urdf_assembly/mesh.py +190 -0
- embodichain-0.1.0/embodichain/toolkits/urdf_assembly/sensor.py +957 -0
- embodichain-0.1.0/embodichain/toolkits/urdf_assembly/signature.py +206 -0
- embodichain-0.1.0/embodichain/toolkits/urdf_assembly/urdf_assembly_manager.py +789 -0
- embodichain-0.1.0/embodichain/toolkits/urdf_assembly/utils.py +30 -0
- embodichain-0.1.0/embodichain/utils/__init__.py +59 -0
- embodichain-0.1.0/embodichain/utils/__pycache__/__init__.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/utils/__pycache__/configclass.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/utils/__pycache__/device_utils.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/utils/__pycache__/logger.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/utils/__pycache__/math.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/utils/__pycache__/module_utils.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/utils/__pycache__/string.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/utils/__pycache__/utility.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/utils/cfg.py +598 -0
- embodichain-0.1.0/embodichain/utils/configclass.py +616 -0
- embodichain-0.1.0/embodichain/utils/device_utils.py +39 -0
- embodichain-0.1.0/embodichain/utils/file.py +54 -0
- embodichain-0.1.0/embodichain/utils/img_utils.py +154 -0
- embodichain-0.1.0/embodichain/utils/logger.py +74 -0
- embodichain-0.1.0/embodichain/utils/math.py +2248 -0
- embodichain-0.1.0/embodichain/utils/module_utils.py +217 -0
- embodichain-0.1.0/embodichain/utils/string.py +336 -0
- embodichain-0.1.0/embodichain/utils/utility.py +637 -0
- embodichain-0.1.0/embodichain/utils/visualizer.py +573 -0
- embodichain-0.1.0/embodichain/utils/warp/__init__.py +32 -0
- embodichain-0.1.0/embodichain/utils/warp/__pycache__/__init__.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/utils/warp/__pycache__/kernels.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/utils/warp/kernels.py +93 -0
- embodichain-0.1.0/embodichain/utils/warp/kinematics/__init__.py +19 -0
- embodichain-0.1.0/embodichain/utils/warp/kinematics/__pycache__/__init__.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/utils/warp/kinematics/__pycache__/interpolate.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/utils/warp/kinematics/__pycache__/opw_solver.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/utils/warp/kinematics/__pycache__/srs_solver.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/utils/warp/kinematics/__pycache__/warp_trajectory.cpython-310.pyc +0 -0
- embodichain-0.1.0/embodichain/utils/warp/kinematics/interpolate.py +172 -0
- embodichain-0.1.0/embodichain/utils/warp/kinematics/opw_solver.py +500 -0
- embodichain-0.1.0/embodichain/utils/warp/kinematics/srs_solver.py +789 -0
- embodichain-0.1.0/embodichain/utils/warp/kinematics/warp_trajectory.py +180 -0
- embodichain-0.1.0/embodichain.egg-info/PKG-INFO +107 -0
- embodichain-0.1.0/embodichain.egg-info/SOURCES.txt +419 -0
- embodichain-0.1.0/embodichain.egg-info/dependency_links.txt +1 -0
- embodichain-0.1.0/embodichain.egg-info/requires.txt +28 -0
- embodichain-0.1.0/embodichain.egg-info/top_level.txt +11 -0
- embodichain-0.1.0/examples/sim/demo/grasp_cup_to_caffe.py +467 -0
- embodichain-0.1.0/examples/sim/demo/press_softbody.py +222 -0
- embodichain-0.1.0/examples/sim/demo/scoop_ice.py +567 -0
- embodichain-0.1.0/examples/sim/gizmo/gizmo_camera.py +229 -0
- embodichain-0.1.0/examples/sim/gizmo/gizmo_object.py +165 -0
- embodichain-0.1.0/examples/sim/gizmo/gizmo_robot.py +151 -0
- embodichain-0.1.0/examples/sim/gizmo/gizmo_scene.py +256 -0
- embodichain-0.1.0/examples/sim/gizmo/gizmo_w1.py +182 -0
- embodichain-0.1.0/examples/sim/planners/motion_generator.py +161 -0
- embodichain-0.1.0/examples/sim/robot/dexforce_w1.py +75 -0
- embodichain-0.1.0/examples/sim/scene/scene_demo.py +193 -0
- embodichain-0.1.0/examples/sim/sensors/batch_camera.py +148 -0
- embodichain-0.1.0/examples/sim/sensors/create_contact_sensor.py +298 -0
- embodichain-0.1.0/examples/sim/solvers/differential_solver.py +249 -0
- embodichain-0.1.0/examples/sim/solvers/opw_solver.py +194 -0
- embodichain-0.1.0/examples/sim/solvers/pink_solver.py +174 -0
- embodichain-0.1.0/examples/sim/solvers/pinocchio_solver.py +126 -0
- embodichain-0.1.0/examples/sim/solvers/pytorch_solver.py +225 -0
- embodichain-0.1.0/examples/sim/solvers/srs_solver.py +84 -0
- embodichain-0.1.0/examples/sim/utility/workspace_analyzer/analyze_cartesian_workspace.py +98 -0
- embodichain-0.1.0/examples/sim/utility/workspace_analyzer/analyze_joint_workspace.py +55 -0
- embodichain-0.1.0/examples/sim/utility/workspace_analyzer/analyze_plane_workspace.py +105 -0
- embodichain-0.1.0/pyproject.toml +68 -0
- embodichain-0.1.0/scripts/benchmark/opw_solver.py +155 -0
- embodichain-0.1.0/scripts/tutorials/gym/modular_env.py +227 -0
- embodichain-0.1.0/scripts/tutorials/gym/random_reach.py +170 -0
- embodichain-0.1.0/scripts/tutorials/sim/create_rigid_object_group.py +165 -0
- embodichain-0.1.0/scripts/tutorials/sim/create_robot.py +212 -0
- embodichain-0.1.0/scripts/tutorials/sim/create_scene.py +145 -0
- embodichain-0.1.0/scripts/tutorials/sim/create_sensor.py +338 -0
- embodichain-0.1.0/scripts/tutorials/sim/create_softbody.py +155 -0
- embodichain-0.1.0/scripts/tutorials/sim/gizmo_robot.py +154 -0
- embodichain-0.1.0/scripts/tutorials/sim/motion_generator.py +120 -0
- embodichain-0.1.0/scripts/tutorials/sim/srs_solver.py +84 -0
- embodichain-0.1.0/setup.cfg +4 -0
- embodichain-0.1.0/setup.py +138 -0
- embodichain-0.1.0/tests/agents/test_rl.py +105 -0
- embodichain-0.1.0/tests/common.py +64 -0
- embodichain-0.1.0/tests/gym/action_bank/test_configurable_action.py +246 -0
- embodichain-0.1.0/tests/gym/envs/test_base_env.py +193 -0
- embodichain-0.1.0/tests/gym/envs/test_embodied_env.py +169 -0
- embodichain-0.1.0/tests/sim/objects/test_articulation.py +215 -0
- embodichain-0.1.0/tests/sim/objects/test_light.py +154 -0
- embodichain-0.1.0/tests/sim/objects/test_rigid_object.py +296 -0
- embodichain-0.1.0/tests/sim/objects/test_rigid_object_group.py +140 -0
- embodichain-0.1.0/tests/sim/objects/test_robot.py +324 -0
- embodichain-0.1.0/tests/sim/objects/test_soft_object.py +104 -0
- embodichain-0.1.0/tests/sim/planners/test_motion_generator.py +250 -0
- embodichain-0.1.0/tests/sim/sensors/test_camera.py +164 -0
- embodichain-0.1.0/tests/sim/sensors/test_contact.py +240 -0
- embodichain-0.1.0/tests/sim/sensors/test_stereo.py +164 -0
- embodichain-0.1.0/tests/sim/solvers/test_differential_solver.py +135 -0
- embodichain-0.1.0/tests/sim/solvers/test_opw_solver.py +133 -0
- embodichain-0.1.0/tests/sim/solvers/test_pink_solver.py +140 -0
- embodichain-0.1.0/tests/sim/solvers/test_pinocchio_solver.py +120 -0
- embodichain-0.1.0/tests/sim/solvers/test_pytorch_solver.py +123 -0
- embodichain-0.1.0/tests/sim/solvers/test_srs_solver.py +301 -0
- embodichain-0.1.0/tests/sim/utility/test_workspace_analyze.py +326 -0
- embodichain-0.1.0/tests/toolkits/test_pg_grasp.py +96 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [2025] [DexForce Technology]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include VERSION
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: embodichain
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: An end-to-end, GPU-accelerated, and modular platform for building generalized Embodied Intelligence.
|
|
5
|
+
Home-page: https://github.com/DexForce/EmbodiChain
|
|
6
|
+
Author: EmbodiChain Developers
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Requires-Dist: dexsim_engine==0.3.9
|
|
11
|
+
Requires-Dist: setuptools>=78.1.1
|
|
12
|
+
Requires-Dist: gymnasium>=0.29.1
|
|
13
|
+
Requires-Dist: langchain
|
|
14
|
+
Requires-Dist: langchain-openai
|
|
15
|
+
Requires-Dist: toppra==0.6.3
|
|
16
|
+
Requires-Dist: pin
|
|
17
|
+
Requires-Dist: pin-pink
|
|
18
|
+
Requires-Dist: casadi
|
|
19
|
+
Requires-Dist: qpsolvers==4.8.1
|
|
20
|
+
Requires-Dist: py_opw_kinematics==0.1.6
|
|
21
|
+
Requires-Dist: pytorch_kinematics==0.7.6
|
|
22
|
+
Requires-Dist: polars==1.31.0
|
|
23
|
+
Requires-Dist: PyYAML>=6.0
|
|
24
|
+
Requires-Dist: accelerate>=1.10.0
|
|
25
|
+
Requires-Dist: wandb>=0.21.0
|
|
26
|
+
Requires-Dist: tensorboard>=2.20.0
|
|
27
|
+
Requires-Dist: transformers>=4.53.0
|
|
28
|
+
Requires-Dist: diffusers>=0.32.1
|
|
29
|
+
Requires-Dist: deepspeed>=0.16.2
|
|
30
|
+
Requires-Dist: ortools
|
|
31
|
+
Requires-Dist: prettytable
|
|
32
|
+
Requires-Dist: black==24.3.0
|
|
33
|
+
Requires-Dist: fvcore
|
|
34
|
+
Requires-Dist: h5py
|
|
35
|
+
Provides-Extra: lerobot
|
|
36
|
+
Requires-Dist: lerobot==0.4.2; extra == "lerobot"
|
|
37
|
+
Dynamic: home-page
|
|
38
|
+
Dynamic: license-file
|
|
39
|
+
|
|
40
|
+
# EmbodiChain
|
|
41
|
+
|
|
42
|
+

|
|
43
|
+
|
|
44
|
+
[](LICENSE)
|
|
45
|
+
[](https://dexforce.com/embodichain/index.html#/)
|
|
46
|
+
[](https://dexforce.github.io/EmbodiChain/introduction.html)
|
|
47
|
+
[](https://docs.python.org/3/whatsnew/3.10.html)
|
|
48
|
+
[](https://github.com/DexForce/EmbodiChain/releases)
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
EmbodiChain is an end-to-end, GPU-accelerated framework for Embodied AI. It streamlines research and development by unifying high-performance simulation, real-to-sim data pipelines, modular model architectures, and efficient training workflows. This integration enables rapid experimentation, seamless deployment of intelligent agents, and effective Sim2Real transfer for real-world robotic systems.
|
|
52
|
+
|
|
53
|
+
> [!NOTE]
|
|
54
|
+
> EmbodiChain is in Alpha and under active development:
|
|
55
|
+
> * More features will be continually added in the coming months. You can find more details in the [roadmap](https://dexforce.github.io/EmbodiChain/resources/roadmap.html).
|
|
56
|
+
> * Since this is an early release, we welcome feedback (bug reports, feature requests, etc.) via GitHub Issues.
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
## Key Features
|
|
60
|
+
|
|
61
|
+
- 🚀 **High-Fidelity GPU Simulation**: Realistic physics for rigid & deformable objects, advanced ray-traced sensors, all GPU-accelerated for high-throughput batch simulation.
|
|
62
|
+
- 🤖 **Unified Robot Learning Environment**: Standardized interfaces for Imitation Learning, Reinforcement Learning, and more.
|
|
63
|
+
- 📊 **Scalable Data Pipeline**: Automated data collection, efficient processing, and large-scale generation for model training.
|
|
64
|
+
- ⚡ **Efficient Training & Evaluation**: Online data streaming, parallel environment rollouts, and modern training paradigms.
|
|
65
|
+
- 🧩 **Modular & Extensible**: Easily integrate new robots, environments, and learning algorithms.
|
|
66
|
+
|
|
67
|
+
The figure below illustrates the overall architecture of EmbodiChain:
|
|
68
|
+
|
|
69
|
+
<p align="center">
|
|
70
|
+
<img src="assets/imgs/frameworks.jpg" alt="architecture" width="90%"/>
|
|
71
|
+
</p>
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
## Getting Started
|
|
76
|
+
|
|
77
|
+
To get started with EmbodiChain, follow these steps:
|
|
78
|
+
|
|
79
|
+
- [Installation Guide](https://dexforce.github.io/EmbodiChain/quick_start/install.html)
|
|
80
|
+
- [Quick Start Tutorial](https://dexforce.github.io/EmbodiChain/tutorial/index.html)
|
|
81
|
+
- [API Reference](https://dexforce.github.io/EmbodiChain/api_reference/index.html)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
## Citation
|
|
85
|
+
|
|
86
|
+
If you find EmbodiChain helpful for your research, please consider citing our work:
|
|
87
|
+
|
|
88
|
+
```bibtex
|
|
89
|
+
@misc{EmbodiChain,
|
|
90
|
+
author = {EmbodiChain Developers},
|
|
91
|
+
title = {EmbodiChain: An end-to-end, GPU-accelerated, and modular platform for building generalized Embodied Intelligence},
|
|
92
|
+
month = {November},
|
|
93
|
+
year = {2025},
|
|
94
|
+
url = {https://github.com/DexForce/EmbodiChain}
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
```bibtex
|
|
99
|
+
@misc{GS-World,
|
|
100
|
+
author = {Liu, G., Deng, Y., Liu, Z., and Jia, K},
|
|
101
|
+
title = {GS-World: An Efficient, Engine-driven Learning Paradigm for Pursuing Embodied Intelligence using World
|
|
102
|
+
Models of Generative Simulation},
|
|
103
|
+
month = {October},
|
|
104
|
+
year = {2025},
|
|
105
|
+
journal = {TechRxiv}
|
|
106
|
+
}
|
|
107
|
+
```
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# EmbodiChain
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
[](LICENSE)
|
|
6
|
+
[](https://dexforce.com/embodichain/index.html#/)
|
|
7
|
+
[](https://dexforce.github.io/EmbodiChain/introduction.html)
|
|
8
|
+
[](https://docs.python.org/3/whatsnew/3.10.html)
|
|
9
|
+
[](https://github.com/DexForce/EmbodiChain/releases)
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
EmbodiChain is an end-to-end, GPU-accelerated framework for Embodied AI. It streamlines research and development by unifying high-performance simulation, real-to-sim data pipelines, modular model architectures, and efficient training workflows. This integration enables rapid experimentation, seamless deployment of intelligent agents, and effective Sim2Real transfer for real-world robotic systems.
|
|
13
|
+
|
|
14
|
+
> [!NOTE]
|
|
15
|
+
> EmbodiChain is in Alpha and under active development:
|
|
16
|
+
> * More features will be continually added in the coming months. You can find more details in the [roadmap](https://dexforce.github.io/EmbodiChain/resources/roadmap.html).
|
|
17
|
+
> * Since this is an early release, we welcome feedback (bug reports, feature requests, etc.) via GitHub Issues.
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## Key Features
|
|
21
|
+
|
|
22
|
+
- 🚀 **High-Fidelity GPU Simulation**: Realistic physics for rigid & deformable objects, advanced ray-traced sensors, all GPU-accelerated for high-throughput batch simulation.
|
|
23
|
+
- 🤖 **Unified Robot Learning Environment**: Standardized interfaces for Imitation Learning, Reinforcement Learning, and more.
|
|
24
|
+
- 📊 **Scalable Data Pipeline**: Automated data collection, efficient processing, and large-scale generation for model training.
|
|
25
|
+
- ⚡ **Efficient Training & Evaluation**: Online data streaming, parallel environment rollouts, and modern training paradigms.
|
|
26
|
+
- 🧩 **Modular & Extensible**: Easily integrate new robots, environments, and learning algorithms.
|
|
27
|
+
|
|
28
|
+
The figure below illustrates the overall architecture of EmbodiChain:
|
|
29
|
+
|
|
30
|
+
<p align="center">
|
|
31
|
+
<img src="assets/imgs/frameworks.jpg" alt="architecture" width="90%"/>
|
|
32
|
+
</p>
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## Getting Started
|
|
37
|
+
|
|
38
|
+
To get started with EmbodiChain, follow these steps:
|
|
39
|
+
|
|
40
|
+
- [Installation Guide](https://dexforce.github.io/EmbodiChain/quick_start/install.html)
|
|
41
|
+
- [Quick Start Tutorial](https://dexforce.github.io/EmbodiChain/tutorial/index.html)
|
|
42
|
+
- [API Reference](https://dexforce.github.io/EmbodiChain/api_reference/index.html)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
## Citation
|
|
46
|
+
|
|
47
|
+
If you find EmbodiChain helpful for your research, please consider citing our work:
|
|
48
|
+
|
|
49
|
+
```bibtex
|
|
50
|
+
@misc{EmbodiChain,
|
|
51
|
+
author = {EmbodiChain Developers},
|
|
52
|
+
title = {EmbodiChain: An end-to-end, GPU-accelerated, and modular platform for building generalized Embodied Intelligence},
|
|
53
|
+
month = {November},
|
|
54
|
+
year = {2025},
|
|
55
|
+
url = {https://github.com/DexForce/EmbodiChain}
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
```bibtex
|
|
60
|
+
@misc{GS-World,
|
|
61
|
+
author = {Liu, G., Deng, Y., Liu, Z., and Jia, K},
|
|
62
|
+
title = {GS-World: An Efficient, Engine-driven Learning Paradigm for Pursuing Embodied Intelligence using World
|
|
63
|
+
Models of Generative Simulation},
|
|
64
|
+
month = {October},
|
|
65
|
+
year = {2025},
|
|
66
|
+
journal = {TechRxiv}
|
|
67
|
+
}
|
|
68
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.1.0
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Configuration file for the Sphinx documentation builder.
|
|
2
|
+
#
|
|
3
|
+
# For the full list of built-in configuration values, see the documentation:
|
|
4
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
|
5
|
+
|
|
6
|
+
# -- Project information -----------------------------------------------------
|
|
7
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
|
|
8
|
+
|
|
9
|
+
import os
|
|
10
|
+
import sys
|
|
11
|
+
|
|
12
|
+
os.environ.setdefault(
|
|
13
|
+
"AZURE_OPENAI_ENDPOINT", "https://mock-endpoint.openai.azure.com/"
|
|
14
|
+
)
|
|
15
|
+
os.environ.setdefault("AZURE_OPENAI_API_KEY", "mock-api-key-for-docs-build")
|
|
16
|
+
|
|
17
|
+
sys.path.insert(0, os.path.abspath("../.."))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
project = "EmbodiChain"
|
|
21
|
+
copyright = "2025, The EmbodiChain Project Developers"
|
|
22
|
+
author = "The EmbodiChain Project Developers"
|
|
23
|
+
|
|
24
|
+
# Read version from VERSION file if it exists
|
|
25
|
+
with open(os.path.join(os.path.dirname(__file__), "..", "..", "VERSION")) as f:
|
|
26
|
+
full_version = f.read().strip()
|
|
27
|
+
version = ".".join(full_version.split(".")[:3])
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# -- General configuration ---------------------------------------------------
|
|
31
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
extensions = [
|
|
35
|
+
"autodocsumm",
|
|
36
|
+
"sphinx.ext.autodoc",
|
|
37
|
+
"sphinx.ext.autosummary",
|
|
38
|
+
"sphinx.ext.napoleon",
|
|
39
|
+
"sphinx.ext.viewcode",
|
|
40
|
+
"sphinx_autodoc_typehints", # optional, shows type hints
|
|
41
|
+
"sphinx_design",
|
|
42
|
+
"myst_parser", # if you prefer Markdown pages
|
|
43
|
+
]
|
|
44
|
+
# Napoleon settings if using Google/NumPy docstring style:
|
|
45
|
+
napoleon_google_docstring = True
|
|
46
|
+
napoleon_numpy_docstring = True
|
|
47
|
+
|
|
48
|
+
autodoc_typehints = "signature"
|
|
49
|
+
autodoc_class_signature = "separated"
|
|
50
|
+
# generate autosummary even if no references
|
|
51
|
+
autosummary_generate = True
|
|
52
|
+
autosummary_generate_overwrite = False
|
|
53
|
+
# default autodoc settings
|
|
54
|
+
autodoc_default_options = {
|
|
55
|
+
"autosummary": True,
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
# If using MyST and writing .md API stubs:
|
|
59
|
+
myst_enable_extensions = ["colon_fence", "deflist", "html_admonition"]
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
templates_path = ["_templates"]
|
|
63
|
+
exclude_patterns = []
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
# -- Options for HTML output -------------------------------------------------
|
|
67
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
|
|
68
|
+
|
|
69
|
+
html_theme = "sphinx_book_theme"
|
|
70
|
+
html_static_path = ["_static"]
|
|
71
|
+
# html_logo = "_static/logo_e.png"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.1.0
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# ----------------------------------------------------------------------------
|
|
2
|
+
# Copyright (c) 2021-2025 DexForce Technology Co., Ltd.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
# ----------------------------------------------------------------------------
|
|
16
|
+
|
|
17
|
+
import os
|
|
18
|
+
|
|
19
|
+
embodichain_dir = os.path.dirname(__file__)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# Read version from VERSION file
|
|
23
|
+
def _get_version():
|
|
24
|
+
version_file = os.path.join(embodichain_dir, "VERSION")
|
|
25
|
+
try:
|
|
26
|
+
with open(version_file, "r") as f:
|
|
27
|
+
return f.read().strip()
|
|
28
|
+
except FileNotFoundError:
|
|
29
|
+
print("VERSION file not found.")
|
|
30
|
+
return "unknown"
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
__version__ = _get_version()
|
|
Binary file
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# ----------------------------------------------------------------------------
|
|
2
|
+
# Copyright (c) 2021-2025 DexForce Technology Co., Ltd.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
# ----------------------------------------------------------------------------
|
|
16
|
+
|
|
17
|
+
from langchain_openai import AzureChatOpenAI
|
|
18
|
+
from langchain_openai import ChatOpenAI
|
|
19
|
+
import os
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# ----------------------------------------------------------------------------
|
|
2
|
+
# Copyright (c) 2021-2025 DexForce Technology Co., Ltd.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
# ----------------------------------------------------------------------------
|
|
16
|
+
|
|
17
|
+
from abc import ABCMeta
|
|
18
|
+
import os
|
|
19
|
+
from pathlib import Path
|
|
20
|
+
from embodichain.utils.utility import load_txt
|
|
21
|
+
import embodichain.agents.mllm.prompt as mllm_prompt
|
|
22
|
+
from embodichain.data import database_2d_dir
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def _resolve_prompt_path(file_name: str, config_dir: str = None) -> str:
|
|
26
|
+
# If absolute path, use directly
|
|
27
|
+
if os.path.isabs(file_name):
|
|
28
|
+
if os.path.exists(file_name):
|
|
29
|
+
return file_name
|
|
30
|
+
raise FileNotFoundError(f"Prompt file not found: {file_name}")
|
|
31
|
+
|
|
32
|
+
# Try config directory first (for task-specific prompts)
|
|
33
|
+
if config_dir:
|
|
34
|
+
config_path = os.path.join(config_dir, file_name)
|
|
35
|
+
if os.path.exists(config_path):
|
|
36
|
+
return config_path
|
|
37
|
+
|
|
38
|
+
# Try agents/prompts directory (for reusable prompts)
|
|
39
|
+
agents_prompts_dir = os.path.join(
|
|
40
|
+
os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "prompts"
|
|
41
|
+
)
|
|
42
|
+
agents_path = os.path.join(agents_prompts_dir, file_name)
|
|
43
|
+
if os.path.exists(agents_path):
|
|
44
|
+
return agents_path
|
|
45
|
+
|
|
46
|
+
# If still not found, raise error with search paths
|
|
47
|
+
searched_paths = []
|
|
48
|
+
if config_dir:
|
|
49
|
+
searched_paths.append(f" - {config_dir}/{file_name}")
|
|
50
|
+
searched_paths.append(f" - {agents_prompts_dir}/{file_name}")
|
|
51
|
+
|
|
52
|
+
raise FileNotFoundError(
|
|
53
|
+
f"Prompt file not found: {file_name}\n"
|
|
54
|
+
f"Searched in:\n" + "\n".join(searched_paths)
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class AgentBase(metaclass=ABCMeta):
|
|
59
|
+
def __init__(self, **kwargs) -> None:
|
|
60
|
+
|
|
61
|
+
assert (
|
|
62
|
+
"prompt_kwargs" in kwargs.keys()
|
|
63
|
+
), "Key prompt_kwargs must exist in config."
|
|
64
|
+
|
|
65
|
+
for key, value in kwargs.items():
|
|
66
|
+
setattr(self, key, value)
|
|
67
|
+
|
|
68
|
+
# Get config directory if provided
|
|
69
|
+
config_dir = kwargs.get("config_dir", None)
|
|
70
|
+
if config_dir:
|
|
71
|
+
config_dir = os.path.dirname(os.path.abspath(config_dir))
|
|
72
|
+
|
|
73
|
+
# Preload and store prompt contents inside self.prompt_kwargs
|
|
74
|
+
for key, val in self.prompt_kwargs.items():
|
|
75
|
+
if val["type"] == "text":
|
|
76
|
+
file_path = _resolve_prompt_path(val["name"], config_dir)
|
|
77
|
+
val["content"] = load_txt(file_path) # ← store content here
|
|
78
|
+
else:
|
|
79
|
+
raise ValueError(
|
|
80
|
+
f"Now only support `text` type but {val['type']} is given."
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
def generate(self, *args, **kwargs):
|
|
84
|
+
pass
|
|
85
|
+
|
|
86
|
+
def act(self, *args, **kwargs):
|
|
87
|
+
pass
|
|
88
|
+
|
|
89
|
+
def get_composed_observations(self, **kwargs):
|
|
90
|
+
ret = {"observations": kwargs.get("env").get_obs_for_agent()}
|
|
91
|
+
for key, val in self.prompt_kwargs.items():
|
|
92
|
+
ret[key] = val["content"]
|
|
93
|
+
ret.update(kwargs)
|
|
94
|
+
return ret
|