Repository navigation
Add CableObject state and lifecycle support for DexSim 0.6 - #838
Conversation
Migrate DexUni example settings to the current namespaced solver interface and preserve the existing cloth contact values. Update the Newton config regression test and document the new mapping contract.
Port the retained MJVBD V2 integration consumers to the current DexUni public interface, while keeping AutoSolver as the Newton default. Preserve namespaced solver options, tutorial calibration, reset/mimic handling, and current task configuration.
Allow geometry-only ContactQuery data for DexUni VBD paths and full impulse/friction data for pure MuJoCo. Add capability tests and GPU end-to-end coverage.
…e-adaptation # Conflicts: # embodichain/lab/sim/cfg/simulation.py # tests/sim/test_cfg.py
Expose pre-build Newton articulation and collision options, runtime-control registration, authored tetrahedral meshes and direct nodal-state writes. Support cloth rest angles and pneumatic cavities through native descriptors, and forward renderer synchronization and graph-capture settings. Keep native follower drives and mimic constraints by default; retain the Default-parity mimic stabilizer as an explicit opt-in. Include focused tests and the owning simulation context documentation. Validation: 718 CPU/context tests passed (2 GPU cases skipped in that run); 3 explicit-tetrahedra/nodal-state GPU tests and both W1 mimic modes passed. Black 26.3.1 (black .), API docs coverage (3269/3269), context checks and whitespace checks passed. Robot/visualization context ownership remains accurate; changed contracts are documented in simulation-system context. Technical-report experiments, output artifacts and the local integration report are intentionally excluded.
Synchronize origin/main at 460939c. Resolve deformable configuration, Spawn descriptor, example, metadata and context conflicts while retaining explicit tetrahedral meshes, cloth extensions and the native contact sampling fixes. Validation in conda open: 737 focused regressions, 147 integration regressions and 15 native physics regressions passed. Black 26.10.1 leaves all 2301 files unchanged; API coverage is 4440/4440 and context validation passes.
Check original tetrahedral and surface indices before int32 narrowing. Declare the native GLB pan frame in all placement suites and propagate it through grasp, target and footprint qualification. Require complete footprint coverage, nonpenetrating sampled gaps and an interior-floor support witness for measured placement, including curved undersides. Align two-way contact guidance and resolve the Task Engine bundle fixture's execution-policy component selector through the production resolver. Cover overflow, geometry failure cases and the real GLB loader in Default and Newton.
[Medium impact] The PR appears safe to merge with no actionable defects identified. SummaryAdds cable configuration, batched segment state, external loads, endpoint attachments, and manager lifecycle support for DexSim 0.6.
|
Document Python 3.11/3.12 support and the actual py311 CI activation. Distinguish the current rc1 profiles from historical 0.5.1 images. Retry the official fixed-release Miniforge alias after a versioned-URL failure while retaining the original SHA256 check. Validated both published rc1 ABI wheels and profile hashes, core-wheel Python-version acceptance/rejection, and 45 release/workflow regressions. Container build qualification follows separately.
Co-authored-by: kioxli <162790769+kioxli@users.noreply.github.com>
Record published cp311/cp312 wheel hashes, Python-version dry runs, unchanged locked resolutions, successful public/internal container builds and final pip checks. Keep image promotion and full native runtime acceptance separate from these build/dependency results.
Preserve origin/codex/adapt-latest-dexsim at e14fc4e while integrating the completed Python distribution and container dependency follow-up. Dependency and Docker build inputs remain identical to the qualified runtime snapshot. Post-integration: 46 release/workflow tests pass, Black leaves 2312 files unchanged, API coverage is 4449/4449 and context validation passes.
han-xudong
left a comment
There was a problem hiding this comment.
Merge-readiness follow-up for 0e304ee8 against #829 (c6e991c2): GitHub reports CONFLICTING / DIRTY. The branches diverge at 28f8b6a9; local three-way content merges confirm conflicts in at least five files: agent_context/MAP.yaml, embodichain/lab/sim/{sim_manager.py,physics/newton.py,spawn/scene.py}, and pyproject.toml. Please preserve both fluid/cable registration, Spawn dispatch and cleanup when resolving them.
Merge order: #829 → #838 → #839 → #834 → #923. After #829 lands, align this layer with main and retarget it, preserving a cable-only diff.
Resolve the runtime/CI issue below, then retain existing assertions and physical acceptance thresholds; attach cable lifecycle/partial-reset, two-way contact, fluid regression and full-CI results on the final integrated head, including the runtime/wheel provenance and logs.
Match SimulationManager's fluid registry in the SimpleNamespace reset fixture. Preserve every reset count, canonical row ID, sensor exclusion and row-isolation assertion. Reproduced all five AttributeError failures before the change. Validation in conda open: 165 focused Gym/reset and fluid regressions plus 5 native fluid lifecycle/visibility regressions passed without skips.
#838 线缆基础层修改方案(0e304ee8)保留 DexUni 统一求解器链路。刚体、线缆和流体的求解归属继续由 DexUni 决定。建议本层负责运行时兼容性预检、完整 episode reset 和声明失败后的状态一致性。 合入前必须修复
后续优化可新增按材料模量建模的可选入口,保留 YAM 已校准的逐连接刚度与阻尼。Isaac Lab 的同名刚度字段按截面和段长离散化。若引入换算,以同长度、同截面的 50 段与 100 段线缆验证静态伸长和悬臂挠度;提前定义误差容限。 |
0e304ee to
91ae175
Compare
han-xudong
left a comment
There was a problem hiding this comment.
Follow-up on 2b336891 with DexSim 0.6.0rc1 (build 1b968250). The focused suite passed 422 CPU and 7 GPU cases. Please fix the two inline cases and rerun both declaration orders, native selected-env reset, and resource preservation. Keep existing tolerances and report the cable/fluid regressions and full CI on the final head.
Description
Add typed
CableObjectCfg,CableObjectand batched segment state/load APIs through DexSim's public Scene/Spawn lifecycle. Cable declaration, preparation, endpoint attachments, selected-environment episode reset and teardown share the existing simulation owners.Cable resets restore creation state and joint drive targets for every physical asset in the selected environments. Unsupported cable/particle mixtures are rejected at declaration; failed declarations and rejected topology changes preserve the existing scene and mounted cameras.
Runtime: published
dexsim-engine==0.6.0rc1, engine build1b968250ada2b06b210bc7aa08ef219769f01217, with Linux CPython 3.11/3.12 wheels recorded in the dependency locks.The standalone
create_cable.pytutorial demonstrates procedural cable creation, gravity stepping, world-state reads and episode reset through DexUni. USD particle regression inputs are authored into each test's temporary directory.Stack
main, synchronized through33a81cd25f367b4968b71423252af20873c8e8c8.mainthrough feat(robots): add standalone I2RT YAM support #1143.Review fixes
Addresses the five required review items and the unavailable-runtime comment.
0.6.0rc1release for both SDK ABIs. The same CPython 3.12 wheel passes pure cable and pure fluid declare/prepare/step/reset checks.reservedavailable for a green visual. The original cable continues to step and reset.Primary coverage: cable declaration/state tests, joint runtime controls, native cable lifecycle, fluid lifecycle and mounted-camera lifecycle.
Main compatibility and CI repairs
This branch incorporates #795 and uses its USD import recipe to check the selected descriptors. The synchronization preserves main's batched camera/light integration, stereo-camera coverage, marker attachments and isolated native-test setup. Spawn owns a shared removal preflight used before detaching mounted render resources. The extended regression first reproduced four marker-detachment failures in finalized cable/particle scenes; all 16 pending/finalized, camera/no-camera combinations pass with the fix. NoRender declaration-only visual removal remains supported.
The former CI run had 21 failed tests. Main fixes the 13 camera-reset cases and the Viser-aware example check. This update fixes the remaining seven:
DefaultPhysicsBackenddefault reset hook instead of an incomplete namespace stub. Their sensor/physical UID isolation assertions remain intact.cables, exercising both backends without allocating a GPU.Existing regression tests cover these failures; the capability matrix is extended in place.
Tutorial and fixture validation
The tutorial and fixture update is committed at
9da9f00a75c363142a67953733cc2370e4a2c71c.88ac9206e0cb9c7894df6c7780f3e157806f0239on an RTX 5090. The release-wheel qualification for the foundation commit is recorded below.Run from the source checkout:
Foundation validation
Results apply to
b125040e194824b238651a1befc0193e3960dd14(base33a81cd2). Local native tests use Python 3.12.14, the pinned DexSim release build, Torch 2.11.0+cu130, Newton 1.7.0 and Warp 1.17.0 on the RTX 5090 D v2.2b336891) confirmed that the released SDK rejects missing URDF files during declaration. After that rejection, a separate failed prepare can still remove/replace robots, preserve the caller control, restore the new0.025joint default and reset env 1 without changing env 0.--no-depsand the pinned runtime dependencies. An isolated (python -I) check imports cable facades/configuration and the YAM preset from that installed wheel and lowers a cable descriptor successfully.b125040e.b125040e.Reproduce native checks
Scope and limits
Cable scenes require Newton/DexUni on CUDA without gradient mode. Finalized physical topology and mixed cable/particle arenas are unsupported; cable episode reset requires all physical assets in each selected environment. An attached articulation with a nonzero initial joint pose is rejected before commit because the current engine initialization hook cannot author that attachment pose safely. Material-modulus conversion and segment-count convergence comparisons remain follow-up work.
Type of change
Screenshots
This layer changes simulation state/lifecycle APIs and CI contracts. The robot screenshots are included in the independent YAM PR #1143; the dependent cable layer is #839.
Checklist
black .with Black 26.10.1.4757/4757documented).