diffneusim 1.0.0__py3-none-any.whl
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.
- diffneusim/__init__.py +1 -0
- diffneusim/_cache.py +42 -0
- diffneusim/_paths.py +5 -0
- diffneusim/bindings/rew14_ext.cu +115 -0
- diffneusim/bindings/soft14_capi.cpp +443 -0
- diffneusim/bindings/soft14_engine_ext.cu +596 -0
- diffneusim/bindings/soft_capi.cpp +782 -0
- diffneusim/bindings/soft_engine_ext.cu +495 -0
- diffneusim/core/cpu_engine/build.sh +40 -0
- diffneusim/core/cpu_engine/fiber/cuda_runtime.h +445 -0
- diffneusim/core/cpu_engine/x14_cpu.cpp +283 -0
- diffneusim/core/diff/dual.h +126 -0
- diffneusim/core/include/diffneusim/macros.h +35 -0
- diffneusim/core/kin/kinematic_tree.h +273 -0
- diffneusim/core/math/so3.h +182 -0
- diffneusim/core/soft/adj/out_adj.h +102 -0
- diffneusim/core/soft/adj/rnea_adj.h +425 -0
- diffneusim/core/soft/adj/rows_adj.h +439 -0
- diffneusim/core/soft/adj/rows_functor.h +89 -0
- diffneusim/core/soft/adj/rows_lanes.h +443 -0
- diffneusim/core/soft/adj/shell_adj.h +243 -0
- diffneusim/core/soft/adj/tree_adj.h +356 -0
- diffneusim/core/soft/collide.h +183 -0
- diffneusim/core/soft/gpu/adj14.cuh +233 -0
- diffneusim/core/soft/gpu/adj14_mus.cuh +98 -0
- diffneusim/core/soft/gpu/adj_shell.cuh +50 -0
- diffneusim/core/soft/gpu/adj_tab.cuh +49 -0
- diffneusim/core/soft/gpu/body14.cuh +47 -0
- diffneusim/core/soft/gpu/chol_rn.cuh +458 -0
- diffneusim/core/soft/gpu/chol_small.cuh +123 -0
- diffneusim/core/soft/gpu/chol_split.cuh +193 -0
- diffneusim/core/soft/gpu/engine_launch.cuh +263 -0
- diffneusim/core/soft/gpu/fk_rn.cuh +109 -0
- diffneusim/core/soft/gpu/generated/body_019e20820f86_mmfloor.cuh +28 -0
- diffneusim/core/soft/gpu/generated/body_62f77a4bb16b_mmfloor.cuh +52 -0
- diffneusim/core/soft/gpu/generated/body_77dbb7213f26_mmfloor_rampsb3l_n6t12.cuh +28 -0
- diffneusim/core/soft/gpu/generated/body_8989b60e4486_mmfloor_rampsb3l_n6t12.cuh +28 -0
- diffneusim/core/soft/gpu/generated/body_8989b60e4486_mmfloor_rhlsd05_n6t12.cuh +28 -0
- diffneusim/core/soft/gpu/generated/body_8989b60e4486_mmfloor_rhlsdef_n6t12.cuh +28 -0
- diffneusim/core/soft/gpu/generated/body_8989b60e4486_mmfloor_rhlsmjd_n6t12.cuh +28 -0
- diffneusim/core/soft/gpu/generated/body_a1e8b196b2cd_mmfloor_rampsb3l_n6t12.cuh +52 -0
- diffneusim/core/soft/gpu/generated/body_a944653edd64_mmfloor.cuh +25 -0
- diffneusim/core/soft/gpu/generated/body_a944653edd64_mmfloor_rampsb3l_n6t12.cuh +25 -0
- diffneusim/core/soft/gpu/generated/g1_soft_5db44fd45286.cuh +74 -0
- diffneusim/core/soft/gpu/generated/split_62f77a4bb16b_mmfloor.cuh +18 -0
- diffneusim/core/soft/gpu/generated/split_a1e8b196b2cd_mmfloor_rampsb3l_n6t12.cuh +18 -0
- diffneusim/core/soft/gpu/generated/x14_soft_019e20820f86_mmfloor.cuh +123 -0
- diffneusim/core/soft/gpu/generated/x14_soft_62f77a4bb16b_mmfloor.cuh +129 -0
- diffneusim/core/soft/gpu/generated/x14_soft_77dbb7213f26_mmfloor_rampsb3l_n6t12.cuh +123 -0
- diffneusim/core/soft/gpu/generated/x14_soft_8989b60e4486_mmfloor_rampsb3l_n6t12.cuh +123 -0
- diffneusim/core/soft/gpu/generated/x14_soft_8989b60e4486_mmfloor_rhlsd05_n6t12.cuh +123 -0
- diffneusim/core/soft/gpu/generated/x14_soft_8989b60e4486_mmfloor_rhlsdef_n6t12.cuh +123 -0
- diffneusim/core/soft/gpu/generated/x14_soft_8989b60e4486_mmfloor_rhlsmjd_n6t12.cuh +123 -0
- diffneusim/core/soft/gpu/generated/x14_soft_a1e8b196b2cd_mmfloor_rampsb3l_n6t12.cuh +129 -0
- diffneusim/core/soft/gpu/generated/x14_soft_a944653edd64_mmfloor.cuh +123 -0
- diffneusim/core/soft/gpu/generated/x14_soft_a944653edd64_mmfloor_rampsb3l_n6t12.cuh +123 -0
- diffneusim/core/soft/gpu/k_mus.cuh +1038 -0
- diffneusim/core/soft/gpu/k_mus_host.cuh +377 -0
- diffneusim/core/soft/gpu/k_pre.cuh +52 -0
- diffneusim/core/soft/gpu/kernel_p.cuh +490 -0
- diffneusim/core/soft/gpu/kp14.cuh +465 -0
- diffneusim/core/soft/gpu/l2v2.cuh +367 -0
- diffneusim/core/soft/gpu/l2x14.cuh +319 -0
- diffneusim/core/soft/gpu/l3.cuh +1483 -0
- diffneusim/core/soft/gpu/model_view.cuh +48 -0
- diffneusim/core/soft/gpu/mus_case_fits.h +15 -0
- diffneusim/core/soft/gpu/mus_classes.h +182 -0
- diffneusim/core/soft/gpu/mus_row_cf.h +44 -0
- diffneusim/core/soft/gpu/rew14.cuh +177 -0
- diffneusim/core/soft/gpu/rows_ctab.cuh +44 -0
- diffneusim/core/soft/gpu/tree_m.cuh +247 -0
- diffneusim/core/soft/gpu/x14_engine_kernels.cuh +260 -0
- diffneusim/core/soft/gpu/x14_rowcf.h +14 -0
- diffneusim/core/soft/hand.h +124 -0
- diffneusim/core/soft/impedance.h +115 -0
- diffneusim/core/soft/jvp.h +202 -0
- diffneusim/core/soft/kin.h +250 -0
- diffneusim/core/soft/muscle.h +1208 -0
- diffneusim/core/soft/newton.h +371 -0
- diffneusim/core/soft/rows.h +176 -0
- diffneusim/core/soft/step.h +188 -0
- diffneusim/core/soft/tape.h +313 -0
- diffneusim/core/soft/x14/collide14.h +69 -0
- diffneusim/core/soft/x14/jvp14.h +182 -0
- diffneusim/core/soft/x14/law14.h +453 -0
- diffneusim/core/soft/x14adj/collide14_adj.h +134 -0
- diffneusim/core/soft/x14adj/passive14_adj.h +162 -0
- diffneusim/core/soft/x14adj/reward14.h +484 -0
- diffneusim/core/soft/x14adj/rows14_adj.h +400 -0
- diffneusim/core/soft/x14adj/scan14.h +349 -0
- diffneusim/core/soft/x14adj/shell14_adj.h +122 -0
- diffneusim/core/soft/x14adj/sweep14.h +255 -0
- diffneusim/core/soft/x14adj/tree14_adj.h +500 -0
- diffneusim/core/soft/x14adj/x14adj_common.h +96 -0
- diffneusim/data/mirror/H1622v2k_geyer_hfdeq.npz +0 -0
- diffneusim/data/mirror/H1622v2k_hfd.npz +0 -0
- diffneusim/data/mirror/H1622v2k_millard_hfdeq.npz +0 -0
- diffneusim/data/mirror/fullbody_contact.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_armless_ball_lspine_millard.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_armless_ball_lspine_millard_stickspin_wrapvia_mtp60k25_trunkfix_toepair_n1_p2str.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_armless_ball_lspine_millard_stickspin_wrapvia_mtp60k25_trunkfix_toepair_n1_p2str_rigid.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_armless_ball_lspine_millard_stickspin_wrapvia_mtp60k25_trunkfix_toepair_n1_src.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_armless_ball_lspine_millard_stickspin_wrapvia_mtp60k25_trunkfix_toepair_n1_src_rigid.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_armless_ball_lspine_osimeq.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_armless_ball_lspine_osimeq_stickspin.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_armless_ball_lspine_osimeq_stickspin_wrapvia_mtp60k25_calf2_pe.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_armless_ball_lspine_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_armless_ball_lspine_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc_axfix.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_armless_ball_lspine_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc_axfixlegs01.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_armless_ball_lspine_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc_jd01.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_armless_ball_lspine_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc_jd01legs.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_armless_ball_lspine_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc_jd01lumbar.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_armless_ball_lspine_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc_lumbfix.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_armless_ball_lspine_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc_lumbfixlegs01.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_armless_ball_lspine_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc_n1.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_armless_ball_lspine_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc_n1a.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_armless_ball_lspine_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc_n2.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_armless_ball_lspine_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc_rom23.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_fusedhand_ball_lspine_girdle_millard_stickspin_wrapvia_mtp60k25_trunkfix_toepair.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_fusedhand_ball_lspine_girdle_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_fusedhand_ball_lspine_girdle_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc_hinge.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_fusedhand_ball_lspine_girdle_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc_n1.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_fusedhand_ball_lspine_girdle_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc_n1a.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_fusedhand_ball_lspine_girdle_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc_n2.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_fusedhand_ball_lspine_girdle_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc_rom23.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_fusedhand_lspine_girdle_osimeq.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_lspine_girdle_millard.npz +0 -0
- diffneusim/data/mirror/fullbody_contact_spinecoupled_lspine_girdle_osimeq.npz +0 -0
- diffneusim/data/mirror/myoleg26_3d_compound_g14eq.npz +0 -0
- diffneusim/data/mirror/myoleg26_3d_kneeexp_g14eq.npz +0 -0
- diffneusim/data/mirror/myoleg26_3d_kneeexp_g14eq_trunkpose.npz +0 -0
- diffneusim/data/mirror/myoleg26_3d_kneeexp_g14eq_trunkpose_spin.npz +0 -0
- diffneusim/data/mirror/myoleg26_3d_kneeexp_g14eq_trunkpose_spin_ank30.npz +0 -0
- diffneusim/data/mirror/myoleg26_3d_kneeexp_g14eq_trunkpose_spin_ank30_hip30.npz +0 -0
- diffneusim/data/mirror/myoleg26_3d_kneeexp_g14eq_trunkpose_spin_ank30_hip30_luispe.npz +0 -0
- diffneusim/data/mirror/myoleg26_3d_kneeexp_g14eq_trunkpose_spin_ank30_hip30_trunk0701.npz +0 -0
- diffneusim/data/muscle_fit/wang_mass_volume_14t.json +91 -0
- diffneusim/data/muscle_fit/wang_mass_volume_14t_axfix.json +91 -0
- diffneusim/data/muscle_fit/wang_mass_volume_14t_axfixlegs01.json +91 -0
- diffneusim/data/muscle_fit/wang_mass_volume_14t_jd01.json +91 -0
- diffneusim/data/muscle_fit/wang_mass_volume_14t_jd01legs.json +91 -0
- diffneusim/data/muscle_fit/wang_mass_volume_14t_jd01lumbar.json +91 -0
- diffneusim/data/muscle_fit/wang_mass_volume_14t_lumbfix.json +91 -0
- diffneusim/data/muscle_fit/wang_mass_volume_14t_lumbfixlegs01.json +91 -0
- diffneusim/data/muscle_fit/wang_mass_volume_14t_n1.json +91 -0
- diffneusim/data/muscle_fit/wang_mass_volume_14t_n1a.json +91 -0
- diffneusim/data/muscle_fit/wang_mass_volume_14t_n2.json +91 -0
- diffneusim/data/muscle_fit/wang_mass_volume_14t_rom23.json +91 -0
- diffneusim/data/reference/musclemimic/myofullbody_mimic_sites.json +261 -0
- diffneusim/data/reference/pose3/pose3_scone.json +305 -0
- diffneusim/data/reference/pose3/pose3_scone.txt +3 -0
- diffneusim/data/reference/pose3/pose3_scone_gait.npz +0 -0
- diffneusim/data/reference/pose3/pose3_scone_mirror.npz +0 -0
- diffneusim/data/reference/pose3/pose3_scone_stand.npz +0 -0
- diffneusim/data/reference/x016run/MD5SUMS +241 -0
- diffneusim/data/reference/x016run/x016run_states.txt +240 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s0_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s0_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s0_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s0_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s0_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s0_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s0_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s0_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s1_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s1_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s1_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s1_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s1_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s1_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s1_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s1_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s2_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s2_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s2_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s2_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s2_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s2_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s2_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s2_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s3_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s3_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s3_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s3_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s3_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s3_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s3_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s3_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s4_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s4_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s4_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s4_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s4_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s4_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s4_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s4_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s5_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s5_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s5_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s5_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s5_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s5_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s5_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s5_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s6_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s6_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s6_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s6_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s6_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s6_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s6_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s6_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s7_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s7_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s7_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s7_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s7_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s7_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s7_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p00_s7_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s0_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s0_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s0_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s0_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s0_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s0_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s0_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s0_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s1_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s1_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s1_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s1_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s1_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s1_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s1_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s1_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s2_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s2_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s2_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s2_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s2_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s2_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s2_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s2_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s3_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s3_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s3_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s3_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s3_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s3_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s3_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s3_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s4_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s4_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s4_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s4_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s4_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s4_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s4_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s4_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s5_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s5_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s5_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s5_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s5_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s5_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s5_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s5_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s6_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s6_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s6_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s6_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s6_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s6_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s6_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s6_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s7_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s7_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s7_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s7_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s7_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s7_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s7_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p25_s7_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s0_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s0_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s0_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s0_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s0_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s0_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s0_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s0_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s1_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s1_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s1_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s1_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s1_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s1_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s1_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s1_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s2_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s2_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s2_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s2_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s2_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s2_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s2_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s2_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s3_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s3_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s3_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s3_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s3_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s3_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s3_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s3_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s5_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s5_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s5_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s5_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s5_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s5_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s5_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s5_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s6_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s6_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s6_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s6_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s6_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s6_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s6_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s6_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s7_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s7_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s7_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s7_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s7_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s7_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s7_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p50_s7_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s0_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s0_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s0_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s0_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s0_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s0_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s0_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s0_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s1_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s1_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s1_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s1_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s1_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s1_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s1_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s1_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s2_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s2_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s2_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s2_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s2_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s2_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s2_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s2_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s3_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s3_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s3_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s3_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s3_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s3_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s3_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s3_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s5_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s5_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s5_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s5_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s5_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s5_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s5_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s5_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s6_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s6_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s6_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s6_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s6_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s6_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s6_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s6_r3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s7_l0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s7_l1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s7_l2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s7_l3.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s7_r0.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s7_r1.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s7_r2.npz +0 -0
- diffneusim/data/reference/x016run/x016run_v3p75_s7_r3.npz +0 -0
- diffneusim/data/state_prior/lumbar_poly_fullbody_contact_spinecoupled_armless_ball_lspine_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc.npz +0 -0
- diffneusim/engine/__init__.py +0 -0
- diffneusim/engine/build_tag.py +52 -0
- diffneusim/engine/case_tables.py +46 -0
- diffneusim/engine/d16_body.py +80 -0
- diffneusim/engine/engine14.py +367 -0
- diffneusim/engine/gen_split.py +159 -0
- diffneusim/engine/hand_format.py +69 -0
- diffneusim/engine/live14.py +149 -0
- diffneusim/engine/phase_b_tree.py +137 -0
- diffneusim/engine/soft14.py +130 -0
- diffneusim/engine/soft_capi.py +373 -0
- diffneusim/engine/soft_engine.py +165 -0
- diffneusim/engine/step14.py +132 -0
- diffneusim/engine/tape_format.py +89 -0
- diffneusim/engine/x14cpu.py +163 -0
- diffneusim/env/__init__.py +0 -0
- diffneusim/env/absent.py +20 -0
- diffneusim/env/cpu14.py +105 -0
- diffneusim/env/e0loop14.py +224 -0
- diffneusim/env/env14.py +568 -0
- diffneusim/env/kin_contact14.py +193 -0
- diffneusim/env/mimic_sites_x14.json +366 -0
- diffneusim/env/old_count.py +78 -0
- diffneusim/env/rew14.py +114 -0
- diffneusim/env/rew14_hook.py +105 -0
- diffneusim/g1/__init__.py +1 -0
- diffneusim/g1/arm_a2.py +165 -0
- diffneusim/g1/arm_a3.py +576 -0
- diffneusim/g1/read_a3.py +79 -0
- diffneusim/g1/rg1_read.py +89 -0
- diffneusim/model/__init__.py +66 -0
- diffneusim/model/case.py +17 -0
- diffneusim/model/dnmodel.py +79 -0
- diffneusim/model/fuse_fixed.py +281 -0
- diffneusim/model/monitor.py +834 -0
- diffneusim/models/BODIES.toml +48 -0
- diffneusim/models/MANIFEST.toml +979 -0
- diffneusim/models/cases/G290/case.bin +0 -0
- diffneusim/models/cases/G290/case.json +1 -0
- diffneusim/models/cases/G356-SRC/case.bin +0 -0
- diffneusim/models/cases/G356-SRC/case.json +1 -0
- diffneusim/models/cases/G416/case.bin +0 -0
- diffneusim/models/cases/G416/case.json +1 -0
- diffneusim/models/cases/M290C-SRC/case.bin +0 -0
- diffneusim/models/cases/M290C-SRC/case.json +1 -0
- diffneusim/models/cases/M290R-SRC/case.bin +0 -0
- diffneusim/models/cases/M290R-SRC/case.json +1 -0
- diffneusim/models/cases/M356C-SRC/case.bin +0 -0
- diffneusim/models/cases/M356C-SRC/case.json +1 -0
- diffneusim/models/cases/M356R-SRC/case.bin +0 -0
- diffneusim/models/cases/M356R-SRC/case.json +1 -0
- diffneusim/models/cases/M416C-SRC/case.bin +0 -0
- diffneusim/models/cases/M416C-SRC/case.json +1 -0
- diffneusim/models/derived/d16_expanded_62f77a4bb16b1e67_mmfloor.xml +673 -0
- diffneusim/models/derived/d16_expanded_a1e8b196b2cd7b3c_mmfloor.xml +673 -0
- diffneusim/models/derived/d16_soft_law_019e20820f8633b9_mmfloor.json +7844 -0
- diffneusim/models/derived/d16_soft_law_62f77a4bb16b1e67_mmfloor.json +16855 -0
- diffneusim/models/derived/d16_soft_law_77dbb7213f26e821_mmfloor_rampsb3l_n6t12.json +7883 -0
- diffneusim/models/derived/d16_soft_law_8989b60e44860c5b_mmfloor_rampsb3l_n6t12.json +7883 -0
- diffneusim/models/derived/d16_soft_law_8989b60e44860c5b_mmfloor_rhlsd05_n6t12.json +7868 -0
- diffneusim/models/derived/d16_soft_law_8989b60e44860c5b_mmfloor_rhlsdef_n6t12.json +7868 -0
- diffneusim/models/derived/d16_soft_law_8989b60e44860c5b_mmfloor_rhlsmjd_n6t12.json +7868 -0
- diffneusim/models/derived/d16_soft_law_a1e8b196b2cd7b3c_mmfloor_rampsb3l_n6t12.json +16894 -0
- diffneusim/models/derived/d16_soft_law_a944653edd642082_mmfloor.json +12655 -0
- diffneusim/models/derived/d16_soft_law_a944653edd642082_mmfloor_rampsb3l_n6t12.json +12700 -0
- diffneusim/models/derived/unitree_g1_soft_law.json +15580 -0
- diffneusim/models/fullbody_contact_spinecoupled_armless_ball_lspine_millard_stickspin_wrapvia_mtp60k25_trunkfix_toepair_n1_src.dnmodel +28913 -0
- diffneusim/models/fullbody_contact_spinecoupled_armless_ball_lspine_millard_stickspin_wrapvia_mtp60k25_trunkfix_toepair_n1_src_qk.txt +1 -0
- diffneusim/models/fullbody_contact_spinecoupled_armless_ball_lspine_millard_stickspin_wrapvia_mtp60k25_trunkfix_toepair_n1_src_rigid.dnmodel +29202 -0
- diffneusim/models/fullbody_contact_spinecoupled_armless_ball_lspine_millard_stickspin_wrapvia_mtp60k25_trunkfix_toepair_n1_src_rigid_qk.txt +1 -0
- diffneusim/models/fullbody_contact_spinecoupled_armless_ball_lspine_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc_axfixlegs01.dnmodel +1 -0
- diffneusim/models/fullbody_contact_spinecoupled_armless_ball_lspine_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc_n1.dnmodel +1 -0
- diffneusim/models/fullbody_contact_spinecoupled_armless_ball_lspine_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc_n1_qk.txt +1 -0
- diffneusim/models/fullbody_contact_spinecoupled_ball_lspine_girdle_millard_stickspin_wrapvia_mtp60k25_trunkfix_toepair_n1_src.dnmodel +46970 -0
- diffneusim/models/fullbody_contact_spinecoupled_ball_lspine_girdle_millard_stickspin_wrapvia_mtp60k25_trunkfix_toepair_n1_src_qk.txt +1 -0
- diffneusim/models/fullbody_contact_spinecoupled_ball_lspine_girdle_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc_n1.dnmodel +1 -0
- diffneusim/models/fullbody_contact_spinecoupled_ball_lspine_girdle_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc_n1_qk.txt +1 -0
- diffneusim/models/fullbody_contact_spinecoupled_fusedhand_ball_lspine_girdle_millard_stickspin_wrapvia_mtp60k25_trunkfix_toepair_n1_src.dnmodel +38570 -0
- diffneusim/models/fullbody_contact_spinecoupled_fusedhand_ball_lspine_girdle_millard_stickspin_wrapvia_mtp60k25_trunkfix_toepair_n1_src_qk.txt +1 -0
- diffneusim/models/fullbody_contact_spinecoupled_fusedhand_ball_lspine_girdle_millard_stickspin_wrapvia_mtp60k25_trunkfix_toepair_n1_src_rigid.dnmodel +38923 -0
- diffneusim/models/fullbody_contact_spinecoupled_fusedhand_ball_lspine_girdle_millard_stickspin_wrapvia_mtp60k25_trunkfix_toepair_n1_src_rigid_qk.txt +1 -0
- diffneusim/models/fullbody_contact_spinecoupled_fusedhand_ball_lspine_girdle_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc_n1.dnmodel +1 -0
- diffneusim/models/fullbody_contact_spinecoupled_fusedhand_ball_lspine_girdle_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc_n1_qk.txt +1 -0
- diffneusim/models/fullbody_meshes/1mc.stl +0 -0
- diffneusim/models/fullbody_meshes/2distph.stl +0 -0
- diffneusim/models/fullbody_meshes/2mc.stl +0 -0
- diffneusim/models/fullbody_meshes/2midph.stl +0 -0
- diffneusim/models/fullbody_meshes/2proxph.stl +0 -0
- diffneusim/models/fullbody_meshes/3distph.stl +0 -0
- diffneusim/models/fullbody_meshes/3mc.stl +0 -0
- diffneusim/models/fullbody_meshes/3midph.stl +0 -0
- diffneusim/models/fullbody_meshes/3proxph.stl +0 -0
- diffneusim/models/fullbody_meshes/4distph.stl +0 -0
- diffneusim/models/fullbody_meshes/4mc.stl +0 -0
- diffneusim/models/fullbody_meshes/4midph.stl +0 -0
- diffneusim/models/fullbody_meshes/4proxph.stl +0 -0
- diffneusim/models/fullbody_meshes/5distph.stl +0 -0
- diffneusim/models/fullbody_meshes/5mc.stl +0 -0
- diffneusim/models/fullbody_meshes/5midph.stl +0 -0
- diffneusim/models/fullbody_meshes/5proxph.stl +0 -0
- diffneusim/models/fullbody_meshes/NOTICE +2 -0
- diffneusim/models/fullbody_meshes/capitate.stl +0 -0
- diffneusim/models/fullbody_meshes/clavicle.stl +0 -0
- diffneusim/models/fullbody_meshes/hamate.stl +0 -0
- diffneusim/models/fullbody_meshes/hat_cervical.stl +0 -0
- diffneusim/models/fullbody_meshes/hat_jaw.stl +0 -0
- diffneusim/models/fullbody_meshes/hat_skull.stl +0 -0
- diffneusim/models/fullbody_meshes/humerus.stl +0 -0
- diffneusim/models/fullbody_meshes/l_bofoot.stl +0 -0
- diffneusim/models/fullbody_meshes/l_femur.stl +0 -0
- diffneusim/models/fullbody_meshes/l_fibula.stl +0 -0
- diffneusim/models/fullbody_meshes/l_foot.stl +0 -0
- diffneusim/models/fullbody_meshes/l_patella.stl +0 -0
- diffneusim/models/fullbody_meshes/l_pelvis.stl +0 -0
- diffneusim/models/fullbody_meshes/l_talus.stl +0 -0
- diffneusim/models/fullbody_meshes/l_tibia.stl +0 -0
- diffneusim/models/fullbody_meshes/lumbar1.stl +0 -0
- diffneusim/models/fullbody_meshes/lumbar2.stl +0 -0
- diffneusim/models/fullbody_meshes/lumbar3.stl +0 -0
- diffneusim/models/fullbody_meshes/lumbar4.stl +0 -0
- diffneusim/models/fullbody_meshes/lumbar5.stl +0 -0
- diffneusim/models/fullbody_meshes/lunate.stl +0 -0
- diffneusim/models/fullbody_meshes/pisiform.stl +0 -0
- diffneusim/models/fullbody_meshes/r_bofoot.stl +0 -0
- diffneusim/models/fullbody_meshes/r_femur.stl +0 -0
- diffneusim/models/fullbody_meshes/r_fibula.stl +0 -0
- diffneusim/models/fullbody_meshes/r_foot.stl +0 -0
- diffneusim/models/fullbody_meshes/r_patella.stl +0 -0
- diffneusim/models/fullbody_meshes/r_pelvis.stl +0 -0
- diffneusim/models/fullbody_meshes/r_talus.stl +0 -0
- diffneusim/models/fullbody_meshes/r_tibia.stl +0 -0
- diffneusim/models/fullbody_meshes/radius.stl +0 -0
- diffneusim/models/fullbody_meshes/sacrum.stl +0 -0
- diffneusim/models/fullbody_meshes/scaphoid.stl +0 -0
- diffneusim/models/fullbody_meshes/scapula.stl +0 -0
- diffneusim/models/fullbody_meshes/thoracic10_s.stl +0 -0
- diffneusim/models/fullbody_meshes/thoracic11_s.stl +0 -0
- diffneusim/models/fullbody_meshes/thoracic12_s.stl +0 -0
- diffneusim/models/fullbody_meshes/thoracic1_s.stl +0 -0
- diffneusim/models/fullbody_meshes/thoracic2_s.stl +0 -0
- diffneusim/models/fullbody_meshes/thoracic3_s.stl +0 -0
- diffneusim/models/fullbody_meshes/thoracic4_s.stl +0 -0
- diffneusim/models/fullbody_meshes/thoracic5_s.stl +0 -0
- diffneusim/models/fullbody_meshes/thoracic6_s.stl +0 -0
- diffneusim/models/fullbody_meshes/thoracic7_s.stl +0 -0
- diffneusim/models/fullbody_meshes/thoracic8_s.stl +0 -0
- diffneusim/models/fullbody_meshes/thoracic9_s.stl +0 -0
- diffneusim/models/fullbody_meshes/thorax.stl +0 -0
- diffneusim/models/fullbody_meshes/thumbdist.stl +0 -0
- diffneusim/models/fullbody_meshes/thumbprox.stl +0 -0
- diffneusim/models/fullbody_meshes/trapezium.stl +0 -0
- diffneusim/models/fullbody_meshes/trapezoid.stl +0 -0
- diffneusim/models/fullbody_meshes/triquetrum.stl +0 -0
- diffneusim/models/fullbody_meshes/ulna.stl +0 -0
- diffneusim/models/source/myo_fullbody/UPSTREAM.md +91 -0
- diffneusim/models/source/myoleg/UPSTREAM.md +52 -0
- diffneusim/models/source/unitree_g1/LICENSE.mjlab +202 -0
- diffneusim/models/source/unitree_g1/UPSTREAM.md +38 -0
- diffneusim/models/source/unitree_g1/assets/head_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/left_ankle_pitch_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/left_ankle_roll_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/left_elbow_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/left_hip_pitch_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/left_hip_roll_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/left_hip_yaw_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/left_knee_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/left_rubber_hand.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/left_shoulder_pitch_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/left_shoulder_roll_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/left_shoulder_yaw_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/left_wrist_pitch_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/left_wrist_roll_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/left_wrist_yaw_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/logo_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/pelvis.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/pelvis_contour_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/right_ankle_pitch_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/right_ankle_roll_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/right_elbow_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/right_hip_pitch_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/right_hip_roll_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/right_hip_yaw_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/right_knee_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/right_rubber_hand.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/right_shoulder_pitch_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/right_shoulder_roll_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/right_shoulder_yaw_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/right_wrist_pitch_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/right_wrist_roll_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/right_wrist_yaw_link.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/torso_link_rev_1_0.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/waist_roll_link_rev_1_0.STL +0 -0
- diffneusim/models/source/unitree_g1/assets/waist_yaw_link_rev_1_0.STL +0 -0
- diffneusim/models/source/unitree_g1/dump_mjlab_reference.py +30 -0
- diffneusim/models/source/unitree_g1/g1.xml +308 -0
- diffneusim/models/source/unitree_g1/g1_constants.py +298 -0
- diffneusim/models/source/unitree_g1/mjlab_compiled_reference.json +857 -0
- diffneusim/models/unitree_g1.dnmodel +4393 -0
- diffneusim/models/unitree_g1_selfcol.dnmodel +20824 -0
- diffneusim/rl/__init__.py +2 -0
- diffneusim/rl/dynsyn_layer.py +146 -0
- diffneusim/rl/footstep_plan.py +337 -0
- diffneusim/rl/g1_bm_env.py +572 -0
- diffneusim/rl/g1_bm_eval.py +168 -0
- diffneusim/rl/g1_bm_fused.py +275 -0
- diffneusim/rl/g1_bm_ppo.py +622 -0
- diffneusim/rl/g1_bm_sapo.py +551 -0
- diffneusim/rl/g1_ppo.py +395 -0
- diffneusim/rl/g1_sapo_soft.py +240 -0
- diffneusim/rl/g1_soft_env.py +452 -0
- diffneusim/rl/g1_soft_grad.py +145 -0
- diffneusim/rl/geyer_curves_torch.py +108 -0
- diffneusim/rl/gpu_fullbody_vec_env.py +1241 -0
- diffneusim/rl/imitation.py +2027 -0
- diffneusim/rl/imitation_reward_v2.py +248 -0
- diffneusim/rl/imitation_reward_v3.py +349 -0
- diffneusim/rl/latent_task.py +175 -0
- diffneusim/rl/llc_reward.py +316 -0
- diffneusim/rl/millard_curves_torch.py +154 -0
- diffneusim/rl/mirror_symmetry.py +212 -0
- diffneusim/rl/model_path.py +35 -0
- diffneusim/rl/mvae_recon.py +123 -0
- diffneusim/rl/nets_shac.py +599 -0
- diffneusim/rl/reset_pool.py +154 -0
- diffneusim/rl/sapo_capture.py +873 -0
- diffneusim/rl/sapo_vec.py +1051 -0
- diffneusim/rl/shac_vec.py +346 -0
- diffneusim/rl/state_prior.py +151 -0
- diffneusim/rl/step_library.py +105 -0
- diffneusim/rl/task_walk_env.py +1793 -0
- diffneusim/rl/task_walk_reward.py +3300 -0
- diffneusim/run.py +23 -0
- diffneusim/run_env.py +46 -0
- diffneusim/tasks/__init__.py +147 -0
- diffneusim/tasks/legacy_names.py +63 -0
- diffneusim/tasks/paths.py +79 -0
- diffneusim/tasks/settings.py +202 -0
- diffneusim/third_party/instantmimic_947430ee/LICENSE +202 -0
- diffneusim/third_party/instantmimic_947430ee/NOTICE +19 -0
- diffneusim/third_party/instantmimic_947430ee/README.md +31 -0
- diffneusim/third_party/instantmimic_947430ee/instantmimic/envs/unitree_g1/tasks/beyondmimic_tracking/benchmark_protocol.py +106 -0
- diffneusim/third_party/instantmimic_947430ee/instantmimic/envs/unitree_g1/tasks/beyondmimic_tracking/metrics.py +214 -0
- diffneusim/third_party/instantmimic_947430ee/instantmimic/envs/unitree_g1/tasks/beyondmimic_tracking/reference.py +513 -0
- diffneusim/third_party/instantmimic_947430ee/instantmimic/motion/quaternion.py +193 -0
- diffneusim/train/__init__.py +0 -0
- diffneusim/train/eval_ckpt.py +239 -0
- diffneusim/train/eval_mimic.py +133 -0
- diffneusim/train/gait_report.py +203 -0
- diffneusim/train/gcot_chain.py +51 -0
- diffneusim/train/levers.py +135 -0
- diffneusim/train/masked_reset.py +314 -0
- diffneusim/train/rl_algorithm_suite.py +917 -0
- diffneusim/train/train14.py +240 -0
- diffneusim/train/train_tw14.py +674 -0
- diffneusim/viz/__init__.py +5 -0
- diffneusim/viz/__main__.py +41 -0
- diffneusim/viz/camera.py +115 -0
- diffneusim/viz/dnrec.py +118 -0
- diffneusim/viz/dnrec_io.py +686 -0
- diffneusim/viz/hud.py +565 -0
- diffneusim/viz/meshes.py +458 -0
- diffneusim/viz/play.py +237 -0
- diffneusim/viz/record.py +74 -0
- diffneusim/viz/render.py +1402 -0
- diffneusim/viz/renderer.py +268 -0
- diffneusim/viz/rl_env_render.py +635 -0
- diffneusim/viz/snapshot.py +54 -0
- diffneusim/viz/strobe.py +124 -0
- diffneusim/viz/to_mp4.py +58 -0
- diffneusim/viz/ui.py +481 -0
- diffneusim/viz/viewer.py +2086 -0
- diffneusim-1.0.0.dist-info/METADATA +226 -0
- diffneusim-1.0.0.dist-info/RECORD +682 -0
- diffneusim-1.0.0.dist-info/WHEEL +5 -0
- diffneusim-1.0.0.dist-info/licenses/LICENSE +201 -0
- diffneusim-1.0.0.dist-info/licenses/LICENSES/BSD-3-Clause-NC-ARMS-hand-wrist-4.3.txt +20 -0
- diffneusim-1.0.0.dist-info/licenses/LICENSES/BSD-3-Clause-NC-MoBL-ARMS.txt +25 -0
- diffneusim-1.0.0.dist-info/licenses/LICENSES/CC-BY-3.0-OpenSim-geometry.txt +25 -0
- diffneusim-1.0.0.dist-info/licenses/LICENSES/MIT-Christophy2012-lumbarspine.txt +10 -0
- diffneusim-1.0.0.dist-info/licenses/LICENSES/MIT-Lai2017-model-high-flex.txt +10 -0
- diffneusim-1.0.0.dist-info/licenses/LICENSES/MIT-Lee2015-hand_muscle.txt +11 -0
- diffneusim-1.0.0.dist-info/licenses/LICENSES/MIT-Rajagopal2016-full_body.txt +11 -0
- diffneusim-1.0.0.dist-info/licenses/LICENSES/MIT-Uhlrich2022-fbmodpassivecal.txt +10 -0
- diffneusim-1.0.0.dist-info/licenses/NOTICE +274 -0
- diffneusim-1.0.0.dist-info/top_level.txt +1 -0
diffneusim/run.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"""Run a task file: python -m diffneusim.run TASK.toml --out DIR [--case DIR] [--refs FILE] [--init CKPT] [--set KEY=VALUE ...]"""
|
|
2
|
+
import argparse
|
|
3
|
+
|
|
4
|
+
from diffneusim.tasks import Task
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def main():
|
|
8
|
+
ap = argparse.ArgumentParser(description="run a DiffNeuSim task file (settings + trainer)")
|
|
9
|
+
ap.add_argument("task", help="the task file (.toml)")
|
|
10
|
+
ap.add_argument("--out", required=True, help="the run directory")
|
|
11
|
+
ap.add_argument("--case", help="the muscle case directory ({case}); default: the task body's shipped case")
|
|
12
|
+
ap.add_argument("--refs", help="the reference clip list ({refs})")
|
|
13
|
+
ap.add_argument("--init", help="a starting checkpoint ({init})")
|
|
14
|
+
ap.add_argument("--set", action="append", default=[], metavar="KEY=VALUE",
|
|
15
|
+
help="replace or add one setting (e.g. a shorter stop for a check run); recorded in the run's task.toml")
|
|
16
|
+
a = ap.parse_args()
|
|
17
|
+
over = dict(kv.split("=", 1) for kv in a.set)
|
|
18
|
+
assert all("=" in kv for kv in a.set), a.set
|
|
19
|
+
Task.load(a.task).with_settings(**over).run(a.out, case=a.case, refs=a.refs, init=a.init)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
if __name__ == "__main__":
|
|
23
|
+
main()
|
diffneusim/run_env.py
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""The run's execution environment, recorded and printed at start: what bitwise reproduction of a run depends on beyond its settings.
|
|
2
|
+
|
|
3
|
+
A paper-exact run is bit for bit with the paper's own only on the same GPU model, the same CPU thread count (CPU reductions chunk by
|
|
4
|
+
OMP_NUM_THREADS: 6 vs 8 threads changed a KIT run's trajectory in the release check), the same compile-cache state (two walking runs from
|
|
5
|
+
separate cold caches differed after one update) and the same library versions; elsewhere it agrees to rounding at first and then
|
|
6
|
+
diverges, as any rerun does. The cache state is not recorded here (its kernel choices are made once, partly by timing).
|
|
7
|
+
|
|
8
|
+
run_env() reads without changing the process: no CUDA context is created (the GPU name comes from nvidia-smi) and the thread count
|
|
9
|
+
is the environment's, as torch will read it.
|
|
10
|
+
"""
|
|
11
|
+
import importlib.metadata
|
|
12
|
+
import importlib.util
|
|
13
|
+
import os
|
|
14
|
+
import platform
|
|
15
|
+
import shutil
|
|
16
|
+
import subprocess
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def _version(dist):
|
|
20
|
+
return importlib.metadata.version(dist) if importlib.util.find_spec(dist) is not None else "absent"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def run_env():
|
|
24
|
+
"""{name: value} of the execution environment (all strings)"""
|
|
25
|
+
smi = shutil.which("nvidia-smi")
|
|
26
|
+
gpu = (subprocess.run([smi, "--query-gpu=name,driver_version", "--format=csv,noheader", "--id=0"], capture_output=True, text=True,
|
|
27
|
+
check=True).stdout.strip() if smi else "none (no nvidia-smi)")
|
|
28
|
+
cuda_env = os.environ.get("CUDA_VISIBLE_DEVICES")
|
|
29
|
+
cxx = os.environ.get("CXX") # a record (conda's compiler packages export it), not a task setting
|
|
30
|
+
cxx_path = shutil.which(cxx or "c++")
|
|
31
|
+
cxx_ver = (subprocess.run([cxx_path, "--version"], capture_output=True, text=True, check=True).stdout.splitlines()[0]
|
|
32
|
+
if cxx_path else "not found")
|
|
33
|
+
import torch # import only: torch.version.cuda creates no CUDA context
|
|
34
|
+
return {
|
|
35
|
+
"OMP_NUM_THREADS": os.environ.get("OMP_NUM_THREADS", "unset (torch's default: the core count)"),
|
|
36
|
+
"gpu": gpu + ("" if cuda_env is None else f" (CUDA_VISIBLE_DEVICES={cuda_env}; the name is device 0's)"),
|
|
37
|
+
"torch": _version("torch"),
|
|
38
|
+
"triton": _version("triton"),
|
|
39
|
+
"cuda": f"{torch.version.cuda} (torch's build); toolkit CUDA_HOME={os.environ.get('CUDA_HOME', 'unset')}",
|
|
40
|
+
"python": platform.python_version(),
|
|
41
|
+
"cxx": f"CXX={cxx if cxx is not None else 'unset'}; {cxx_path or (cxx or 'c++')} ({cxx_ver})",
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def describe(env):
|
|
46
|
+
return "[run_env] " + ", ".join(f"{k}={v}" for k, v in env.items())
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"""Task objects: one of the paper's runs as a named, validated set of settings, its trainer and the trainer's arguments. A task
|
|
2
|
+
file selects and configures the tasks this package implements (the paper's); a new task or reward needs a change to the package.
|
|
3
|
+
|
|
4
|
+
from diffneusim.tasks import Task
|
|
5
|
+
task = Task.load("walk_x016p1.toml") # or Task(name, trainer, settings, args)
|
|
6
|
+
task.run(out="runs/walk_s3") # sets the settings, then runs the trainer in this process
|
|
7
|
+
|
|
8
|
+
A task file (TOML):
|
|
9
|
+
|
|
10
|
+
name = "walk_x016p1"
|
|
11
|
+
trainer = "walking" # "walking" (diffneusim.train.train_tw14) or "imitation" (diffneusim.train.train14)
|
|
12
|
+
args = ["--tw1-e5", "--tw1-capture", ..., "train", "--envs", "fullbody", "--algos", "sapo", "--n-env", "512", "--seed", "3",
|
|
13
|
+
"--epochs", "2000"]
|
|
14
|
+
[settings]
|
|
15
|
+
D16_BODY = "8989b60e4486_mmfloor_rampsb3l_n6t12"
|
|
16
|
+
E0_MUSCLE_CASE = "{case}"
|
|
17
|
+
...
|
|
18
|
+
|
|
19
|
+
Settings are the names in diffneusim.tasks.settings.SETTINGS (every setting the package reads, with its code defaults and read sites).
|
|
20
|
+
A task refuses a name that is not there (a typo, or a setting the release removed), and the run refuses to start when the calling shell
|
|
21
|
+
already exports any of them, so a run's settings are exactly its task's. Values may name these placeholders, filled at run time:
|
|
22
|
+
{root} the package directory {out} the run directory {case} the muscle case directory
|
|
23
|
+
{refs} the reference clip list {init} a starting checkpoint
|
|
24
|
+
{case} defaults to the task body's shipped case (models/BODIES.toml: the body FULLBODY_DNMODEL names), and the task's D16_BODY must be
|
|
25
|
+
that body's engine build or one of its contact floors.
|
|
26
|
+
The run directory receives task.toml (the resolved task) beside the trainer's own records. The trainer runs with the package directory
|
|
27
|
+
as its working directory, as the paper's runs ran in their tree's root, so a task's data paths (data/...) resolve there; the paths given
|
|
28
|
+
to run() are made absolute first.
|
|
29
|
+
"""
|
|
30
|
+
import dataclasses
|
|
31
|
+
import os
|
|
32
|
+
import pathlib
|
|
33
|
+
import runpy
|
|
34
|
+
import sys
|
|
35
|
+
|
|
36
|
+
if sys.version_info >= (3, 11):
|
|
37
|
+
import tomllib
|
|
38
|
+
else: # Python 3.10 (the GPU hosts' venvs): the same parser, as a package
|
|
39
|
+
import tomli as tomllib
|
|
40
|
+
|
|
41
|
+
from diffneusim._paths import ROOT
|
|
42
|
+
from diffneusim.tasks.settings import SETTINGS, is_setting
|
|
43
|
+
|
|
44
|
+
TRAINERS = {"walking": "diffneusim.train.train_tw14", "imitation": "diffneusim.train.train14"}
|
|
45
|
+
PLACEHOLDERS = ("root", "out", "case", "refs", "init")
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
@dataclasses.dataclass(frozen=True)
|
|
49
|
+
class Task:
|
|
50
|
+
name: str
|
|
51
|
+
trainer: str
|
|
52
|
+
settings: dict
|
|
53
|
+
args: tuple = ()
|
|
54
|
+
|
|
55
|
+
def __post_init__(self):
|
|
56
|
+
assert self.trainer in TRAINERS, f"task {self.name}: trainer {self.trainer!r} is not one of {sorted(TRAINERS)}"
|
|
57
|
+
unknown = sorted(k for k in self.settings if not is_setting(k))
|
|
58
|
+
assert not unknown, f"task {self.name}: settings the package does not read: {unknown}"
|
|
59
|
+
bad = sorted(k for k, v in self.settings.items() if not isinstance(v, str))
|
|
60
|
+
assert not bad, f"task {self.name}: setting values are strings (as the environment holds them): {bad}"
|
|
61
|
+
assert all(isinstance(a, str) for a in self.args), f"task {self.name}: args are strings"
|
|
62
|
+
|
|
63
|
+
@classmethod
|
|
64
|
+
def load(cls, path):
|
|
65
|
+
d = tomllib.loads(pathlib.Path(path).read_text(encoding="utf-8"))
|
|
66
|
+
extra = sorted(set(d) - {"name", "trainer", "args", "settings", "run_env"}) # run_env: a run's record, not part of the task
|
|
67
|
+
assert not extra, f"{path}: unknown task fields {extra}"
|
|
68
|
+
return cls(d["name"], d["trainer"], dict(d.get("settings", {})), tuple(d.get("args", ())))
|
|
69
|
+
|
|
70
|
+
def body(self):
|
|
71
|
+
"""the shipped body this task runs (FULLBODY_DNMODEL), checked against its engine build (D16_BODY); None if it names none"""
|
|
72
|
+
from diffneusim.model import body_info, body_of
|
|
73
|
+
f = self.settings.get("FULLBODY_DNMODEL")
|
|
74
|
+
if f is None:
|
|
75
|
+
return None
|
|
76
|
+
name = body_of(ROOT / "models" / f)
|
|
77
|
+
assert name is not None, f"task {self.name}: FULLBODY_DNMODEL {f} is not a shipped body (models/BODIES.toml)"
|
|
78
|
+
b = body_info(name)
|
|
79
|
+
tag = self.settings.get("D16_BODY")
|
|
80
|
+
assert tag is None or tag == b["tag"] or tag in b.get("floors", []), f"task {self.name}: D16_BODY {tag} is not {name}'s engine build ({b['tag']}) or one of its floors"
|
|
81
|
+
return name
|
|
82
|
+
|
|
83
|
+
def resolved(self, **paths):
|
|
84
|
+
"""the settings and args with the placeholders filled; a placeholder a value uses but no path gives is an error. {case}
|
|
85
|
+
defaults to the task body's shipped case."""
|
|
86
|
+
given = {"root": str(ROOT), **{k: str(v) for k, v in paths.items() if v is not None}}
|
|
87
|
+
name = self.body()
|
|
88
|
+
if "case" not in given and name is not None:
|
|
89
|
+
from diffneusim.model import body_info
|
|
90
|
+
given["case"] = str(body_info(name)["case"])
|
|
91
|
+
assert set(given) <= set(PLACEHOLDERS), sorted(set(given) - set(PLACEHOLDERS))
|
|
92
|
+
|
|
93
|
+
from diffneusim.tasks.paths import resolve
|
|
94
|
+
base, base_args, _, _ = resolve(self.trainer, self.settings, self.args) # DN_PATH: the fused set (default) or the task's own settings
|
|
95
|
+
|
|
96
|
+
def fill(v):
|
|
97
|
+
for p in PLACEHOLDERS:
|
|
98
|
+
tok = "{" + p + "}"
|
|
99
|
+
if tok in v:
|
|
100
|
+
assert p in given, f"task {self.name}: {v!r} needs the {p!r} path"
|
|
101
|
+
v = v.replace(tok, given[p])
|
|
102
|
+
return v
|
|
103
|
+
settings, args = {k: fill(v) for k, v in base.items()}, [fill(a) for a in base_args]
|
|
104
|
+
uses = lambda p: any("{" + p + "}" in v for v in [*base.values(), *base_args])
|
|
105
|
+
if "init" in given and not uses("init"): # a task without {init} (the walking tasks): the warm start goes in as the setting itself
|
|
106
|
+
assert "SUITE_INIT_CKPT" not in settings, f"task {self.name}: sets SUITE_INIT_CKPT itself and has no {{init}}"
|
|
107
|
+
settings["SUITE_INIT_CKPT"] = given["init"]
|
|
108
|
+
unused = [p for p in paths if paths[p] is not None and p not in ("init", "case", "out") and not uses(p)]
|
|
109
|
+
assert not unused, f"task {self.name}: does not use the given {unused} path(s)"
|
|
110
|
+
return settings, args
|
|
111
|
+
|
|
112
|
+
def toml(self, settings, args, run_env=None):
|
|
113
|
+
q = lambda s: '"' + s.replace("\\", "\\\\").replace('"', '\\"') + '"'
|
|
114
|
+
lines = [f"name = {q(self.name)}", f"trainer = {q(self.trainer)}", "args = [" + ", ".join(q(a) for a in args) + "]", "", "[settings]"]
|
|
115
|
+
lines += [f"{k} = {q(v)}" for k, v in sorted(settings.items())]
|
|
116
|
+
if run_env is not None: # the execution environment the run started in (diffneusim.run_env); ignored when loaded as a task
|
|
117
|
+
lines += ["", "[run_env]"] + [f"{k} = {q(v)}" for k, v in run_env.items()]
|
|
118
|
+
return "\n".join(lines) + "\n"
|
|
119
|
+
|
|
120
|
+
def with_settings(self, **overrides):
|
|
121
|
+
"""this task with some settings replaced or added (validated as any setting; recorded in the run's task.toml)"""
|
|
122
|
+
return Task(self.name, self.trainer, {**self.settings, **overrides}, self.args)
|
|
123
|
+
|
|
124
|
+
def run(self, out, **paths):
|
|
125
|
+
"""set this task's settings and run its trainer here (the process's environment is the task's from then on)"""
|
|
126
|
+
inherited = sorted(k for k in os.environ if is_setting(k))
|
|
127
|
+
assert not inherited, f"the shell already sets {inherited}: a task run takes its settings from the task only (unset them first)"
|
|
128
|
+
out = pathlib.Path(out).resolve()
|
|
129
|
+
out.mkdir(parents=True, exist_ok=True)
|
|
130
|
+
paths = {k: (None if v is None else str(pathlib.Path(v).resolve())) for k, v in paths.items()}
|
|
131
|
+
settings, args = self.resolved(out=out, **paths)
|
|
132
|
+
os.environ.update(settings)
|
|
133
|
+
from diffneusim.run_env import describe as env_line, run_env
|
|
134
|
+
renv = run_env() # after the settings are set; it initializes no CUDA context (the GPU name comes from nvidia-smi)
|
|
135
|
+
(out / "task.toml").write_text(self.toml(settings, args, renv), encoding="utf-8")
|
|
136
|
+
print(env_line(renv), flush=True)
|
|
137
|
+
hb = settings.get("LEARN_HEARTBEAT")
|
|
138
|
+
if hb:
|
|
139
|
+
pathlib.Path(hb).parent.mkdir(parents=True, exist_ok=True)
|
|
140
|
+
pathlib.Path(hb).touch()
|
|
141
|
+
from diffneusim.tasks.paths import describe, resolve
|
|
142
|
+
_, _, add, add_args = resolve(self.trainer, self.settings, self.args)
|
|
143
|
+
print(describe(settings["DN_PATH"], add, add_args), flush=True)
|
|
144
|
+
sys.argv = [TRAINERS[self.trainer].rsplit(".", 1)[1]] + args
|
|
145
|
+
print(f"[task] {self.name}: {len(settings)} settings, trainer {TRAINERS[self.trainer]}, out {out}", flush=True)
|
|
146
|
+
os.chdir(ROOT)
|
|
147
|
+
runpy.run_module(TRAINERS[self.trainer], run_name="__main__", alter_sys=True)
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"""The setting names the paper's run records use (their resolved_env.txt files), mapped to this package's names.
|
|
2
|
+
|
|
3
|
+
The paper's runs were recorded under the development names: settings JINSIMUL_* / MYOLEG_* (now DN_*), body files *.jmodel (now
|
|
4
|
+
*.dnmodel), and the record format named jplay (now dnrec). current_name() and current_value() map one setting; translate() maps a
|
|
5
|
+
whole recorded environment, so a paper run's record can be turned into a task:
|
|
6
|
+
|
|
7
|
+
python -m diffneusim.tasks.legacy_names RESOLVED_ENV.txt prints the translated KEY=VALUE lines
|
|
8
|
+
python -m diffneusim.tasks.legacy_names --export prints shell lines that rename this process's settings
|
|
9
|
+
"""
|
|
10
|
+
import os
|
|
11
|
+
import re
|
|
12
|
+
import sys
|
|
13
|
+
|
|
14
|
+
_RULES = [(r"^JINSIMUL_", "DN_"), (r"^MYOLEG_", "DN_"), (r"JMODEL", "DNMODEL"), (r"JPLAY", "DNREC")]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def current_name(key):
|
|
18
|
+
for pat, rep in _RULES:
|
|
19
|
+
key = re.sub(pat, rep, key)
|
|
20
|
+
return key
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def current_value(value):
|
|
24
|
+
"""a recorded value: body file names end in .dnmodel now"""
|
|
25
|
+
return re.sub(r"\.jmodel\b", ".dnmodel", value)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def translate(env):
|
|
29
|
+
out = {}
|
|
30
|
+
for k, v in env.items():
|
|
31
|
+
nk = current_name(k)
|
|
32
|
+
assert nk not in out, f"two recorded settings map to {nk}"
|
|
33
|
+
out[nk] = current_value(v)
|
|
34
|
+
return out
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def _read(path):
|
|
38
|
+
d = {}
|
|
39
|
+
for line in open(path, encoding="utf-8"):
|
|
40
|
+
line = line.rstrip("\r\n")
|
|
41
|
+
if "=" in line and line.split("=", 1)[0].replace("_", "").isalnum():
|
|
42
|
+
k, v = line.split("=", 1)
|
|
43
|
+
d[k] = v
|
|
44
|
+
return d
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def main():
|
|
48
|
+
if sys.argv[1:] == ["--export"]:
|
|
49
|
+
import shlex
|
|
50
|
+
for k, v in sorted(os.environ.items()):
|
|
51
|
+
nk, nv = current_name(k), current_value(v)
|
|
52
|
+
if (nk, nv) != (k, v):
|
|
53
|
+
if nk != k:
|
|
54
|
+
print(f"unset {k}")
|
|
55
|
+
print(f"export {nk}={shlex.quote(nv)}")
|
|
56
|
+
return
|
|
57
|
+
assert len(sys.argv) == 2, __doc__
|
|
58
|
+
for k, v in sorted(translate(_read(sys.argv[1])).items()):
|
|
59
|
+
print(f"{k}={v}")
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
if __name__ == "__main__":
|
|
63
|
+
main()
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"""The two training paths, chosen by one setting, DN_PATH.
|
|
2
|
+
|
|
3
|
+
fused (the default) the speed settings below: a task's unset speed settings take them.
|
|
4
|
+
paper the task's own settings and nothing else; the paper's task files set DN_PATH = "paper", so they replay the paper's runs bit for
|
|
5
|
+
bit (on the same GPU model, OMP_NUM_THREADS and compile-cache state; see diffneusim.run_env).
|
|
6
|
+
|
|
7
|
+
A setting the task sets itself always wins. Every run prints its path at start ("[path] ...") and records DN_PATH and every added setting in
|
|
8
|
+
the run's task.toml. The fused sets are the paper's own speed settings for each trainer: the imitation runs used all of them; the walking
|
|
9
|
+
runs used all but --tw1-m1c and DN_FK_POINTWISE, which fused adds (1.11x on walking x016.1 in the release's throughput check). Where fused
|
|
10
|
+
adds a setting the paper's run did not use, it is not bitwise with DN_PATH=paper and its runs diverge from the paper path's, as reruns do:
|
|
11
|
+
each addition computes the same function to float32 rounding (the release check: the kinematics within 3.2 eps32 of eager, as the paper's
|
|
12
|
+
own compiled kinematics, with no contact decision changed; the compiled critic within 5.2 eps32). The fused
|
|
13
|
+
reward node (E0_ENV14_REW14) turns itself off for a configuration it does not support (env14.rew14_default), so it is not listed here.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
PATHS = ("fused", "paper")
|
|
17
|
+
|
|
18
|
+
FUSED = {
|
|
19
|
+
"imitation": {
|
|
20
|
+
"E0_ENGINE14": "1", "E0_ENV14_GLUE": "1", "E0_ENV14_EQUIL14": "1", "E0_REW14_SKIP_ENV_ACT": "1",
|
|
21
|
+
"DN_FK_COMPILE": "1", "DN_TWIST_COMPILE": "1", "DN_FK_POINTWISE": "1",
|
|
22
|
+
"E0_P3": "1", "E0_P4": "1", "E0_P4B": "1", "E0_P4_P3MODE": "graph", "E0_P4_CHECK": "", "E0_P4_STATS": "0", "P4_OUT": "{out}/p4",
|
|
23
|
+
"E0SPEED_LEVERS": "m1c",
|
|
24
|
+
},
|
|
25
|
+
# walking: the D16 engine switches the walking trainer requires (its only engine path; REW14 off: the fused reward node does not
|
|
26
|
+
# support task walking) and the speed settings
|
|
27
|
+
"walking": {"E0_ENGINE14": "1", "E0_ENV14_GLUE": "1", "E0_ENV14_ACT14": "1", "E0_ENV14_KINLATCH": "1", "E0_ENV14_GROUND14": "1",
|
|
28
|
+
"E0_ENV14_NO_OLD": "1", "E0_ENV14_EQUIL14": "1", "E0_ENV14_REW14": "0", "DN_FK_COMPILE": "1", "DN_FK_POINTWISE": "1"},
|
|
29
|
+
}
|
|
30
|
+
FUSED_ARGS = {"walking": ["--tw1-m1c"]}
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def path_of(settings):
|
|
34
|
+
p = settings.get("DN_PATH", "fused")
|
|
35
|
+
assert p in PATHS, f"DN_PATH={p!r}: one of {PATHS}"
|
|
36
|
+
return p
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def fused_settings(trainer, settings):
|
|
40
|
+
"""the settings DN_PATH=fused adds for this trainer: the trainer's fused set minus what the task sets itself, and minus a key that
|
|
41
|
+
conflicts with the task's own choices (named in the run's [path] line)"""
|
|
42
|
+
add = {k: v for k, v in FUSED.get(trainer, {}).items() if k not in settings}
|
|
43
|
+
if trainer == "imitation":
|
|
44
|
+
if settings.get("DN_IM_MIMIC", "0") == "1" and "DN_MIMIC_COMPILE" not in settings:
|
|
45
|
+
add["DN_MIMIC_COMPILE"] = "1"
|
|
46
|
+
if settings.get("E0_ENV14_ACT14", "0") == "1": # one owner of the activation: env14's own (ACT14) or the reward node's skip
|
|
47
|
+
add.pop("E0_REW14_SKIP_ENV_ACT", None)
|
|
48
|
+
return add
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def fused_args(trainer, args):
|
|
52
|
+
return [a for a in FUSED_ARGS.get(trainer, []) if a not in args]
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def resolve(trainer, settings, args):
|
|
56
|
+
"""(settings, args, added settings, added args) for the task's DN_PATH; DN_PATH itself is always recorded"""
|
|
57
|
+
p = path_of(settings)
|
|
58
|
+
add, add_args = (fused_settings(trainer, settings), fused_args(trainer, args)) if p == "fused" else ({}, [])
|
|
59
|
+
return {**add, **settings, "DN_PATH": p}, add_args + list(args), add, add_args
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def describe(path, add, add_args):
|
|
63
|
+
if path == "paper":
|
|
64
|
+
return ("[path] paper-exact: the task's own settings only (bit for bit with the paper's runs on the same GPU model, "
|
|
65
|
+
"OMP_NUM_THREADS and compile cache); DN_PATH=fused for the fast path")
|
|
66
|
+
extra = ", ".join([f"{k}={v}" for k, v in sorted(add.items())] + add_args)
|
|
67
|
+
return (f"[path] fused: added {extra or 'nothing (the task sets every speed setting)'}"
|
|
68
|
+
+ ("; not bitwise with DN_PATH=paper, which replays the paper's settings exactly" if extra else ""))
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def announce(entry):
|
|
72
|
+
"""the start line of an entry point started directly (not through python -m diffneusim.run): its path, or that no path was resolved"""
|
|
73
|
+
import os
|
|
74
|
+
p = os.environ.get("DN_PATH")
|
|
75
|
+
print(f"[path] {entry}: " + (f"DN_PATH={p}" if p else "no DN_PATH (started directly, the code defaults apply; run a task through "
|
|
76
|
+
"python -m diffneusim.run for the fused path)"), flush=True)
|
|
77
|
+
if not p: # a task run printed and recorded its run_env already (Task.run)
|
|
78
|
+
from diffneusim.run_env import describe as env_line, run_env
|
|
79
|
+
print(env_line(run_env()), flush=True)
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
"""Every setting the package reads, generated from the code (release step 3b): name -> (the code default at each read site, the read sites).
|
|
2
|
+
A task sets settings by these names only; the default is what runs when a task leaves a setting out. A setting whose read sites disagree
|
|
3
|
+
on the default (more than one entry) must be set explicitly by every task that reaches it."""
|
|
4
|
+
|
|
5
|
+
SETTINGS = {
|
|
6
|
+
'D16_BODY': (('""', "'(14x)'"), ('diffneusim/engine/d16_body.py:15', 'diffneusim/train/train_tw14.py:211')),
|
|
7
|
+
'D16_ENGINE_EXTRA': (('""',), ('diffneusim/engine/soft_engine.py:65',)),
|
|
8
|
+
'D16_ENGINE_SRC_ROOT': (('None', 'REQUIRED'), ('diffneusim/engine/soft_engine.py:55', 'diffneusim/engine/soft_engine.py:55')),
|
|
9
|
+
'D16_G1_LAW': (('None', 'REQUIRED'), ('diffneusim/engine/soft_capi.py:20', 'diffneusim/engine/soft_capi.py:20')),
|
|
10
|
+
'D16_TW_CHAIN': (('None',), ('diffneusim/train/train_tw14.py:610', 'diffneusim/train/train_tw14.py:161', 'diffneusim/train/train_tw14.py:184')),
|
|
11
|
+
'D16_TW_CHAIN_SRC': (('REQUIRED',), ('diffneusim/train/train_tw14.py:168',)),
|
|
12
|
+
'D16_TW_RESET': (('"keyframe"', 'None'), ('diffneusim/env/env14.py:265', 'diffneusim/train/train_tw14.py:84')),
|
|
13
|
+
'DN_ACTION_GRAD_CLIP': (('None',), ('diffneusim/train/rl_algorithm_suite.py:119',)),
|
|
14
|
+
'DN_ACTOR_UNITS': (('units(COMMON["actor_units"])',), ('diffneusim/train/rl_algorithm_suite.py:96',)),
|
|
15
|
+
'DN_CONTROL_HZ': (('"30"',), ('diffneusim/train/rl_algorithm_suite.py:72',)),
|
|
16
|
+
'DN_CRITIC_UNITS': (('units(COMMON["critic_units"])',), ('diffneusim/train/rl_algorithm_suite.py:97',)),
|
|
17
|
+
'DN_DNREC_MTU': (('"1"',), ('diffneusim/viz/rl_env_render.py:571',)),
|
|
18
|
+
'DN_DNREC_VEC': (('"0"',), ('diffneusim/train/gait_report.py:70', 'diffneusim/viz/rl_env_render.py:238')),
|
|
19
|
+
'DN_DYNSYN': (('"0"',), ('diffneusim/rl/gpu_fullbody_vec_env.py:162',)),
|
|
20
|
+
'DN_EPISODE': (('"30000"', 'REQUIRED', 'str(cfg.episode_length)'), ('diffneusim/train/eval_mimic.py:63', 'diffneusim/train/eval_mimic.py:68', 'diffneusim/train/rl_algorithm_suite.py:69')),
|
|
21
|
+
'DN_FIBER_INIT_ITERS': (('"8"',), ('diffneusim/env/env14.py:469', 'diffneusim/train/masked_reset.py:263')),
|
|
22
|
+
'DN_FK_COMPILE': (('"0"',), ('diffneusim/model/monitor.py:237',)),
|
|
23
|
+
'DN_FK_POINTWISE': (('"0"',), ('diffneusim/model/monitor.py:108',)),
|
|
24
|
+
'DN_GAMMA': (('PRESENCE', 'REQUIRED'), ('diffneusim/train/rl_algorithm_suite.py:112', 'diffneusim/train/rl_algorithm_suite.py:113')),
|
|
25
|
+
'DN_GEOM_DEBUG': (('None',), ('diffneusim/viz/render.py:440', 'diffneusim/viz/render.py:449', 'diffneusim/viz/render.py:885')),
|
|
26
|
+
'DN_IMITATION': (('"0"',), ('diffneusim/rl/gpu_fullbody_vec_env.py:261', 'diffneusim/train/train_tw14.py:147')),
|
|
27
|
+
'DN_IM_MIMIC': (('"0"', 'None'), ('diffneusim/env/e0loop14.py:33', 'diffneusim/rl/imitation.py:770', 'diffneusim/train/eval_mimic.py:62')),
|
|
28
|
+
'DN_MIMIC_COMPILE': (('"0"',), ('diffneusim/rl/imitation.py:775',)),
|
|
29
|
+
'DN_MIRROR_SYM': (('"0"',), ('diffneusim/rl/gpu_fullbody_vec_env.py:682',)),
|
|
30
|
+
'DN_MM_ET': (('None',), ('diffneusim/rl/imitation.py:1727',)),
|
|
31
|
+
'DN_OUT_BIAS': (('PRESENCE', 'REQUIRED'), ('diffneusim/train/rl_algorithm_suite.py:99', 'diffneusim/train/rl_algorithm_suite.py:100', 'diffneusim/train/rl_algorithm_suite.py:100')),
|
|
32
|
+
'DN_PASSIVE_D_LIM': (('None',), ('diffneusim/rl/task_walk_reward.py:983',)),
|
|
33
|
+
'DN_PASSIVE_EXP_A': (('None', 'REQUIRED'), ('diffneusim/rl/task_walk_reward.py:1002', 'diffneusim/rl/task_walk_reward.py:1003')),
|
|
34
|
+
'DN_PASSIVE_EXP_W': (('None', 'REQUIRED'), ('diffneusim/rl/task_walk_reward.py:1006', 'diffneusim/rl/task_walk_reward.py:1007')),
|
|
35
|
+
'DN_PATH': (('"fused"', 'None'), ('diffneusim/g1/arm_a3.py:418', 'diffneusim/tasks/paths.py:72')),
|
|
36
|
+
'DN_REF': (('None', 'REQUIRED', 'str(ROOT / "data/reference/cmu" / _ref_default)'), ('diffneusim/rl/gpu_fullbody_vec_env.py:319', 'diffneusim/train/eval_mimic.py:65', 'diffneusim/train/rl_algorithm_suite.py:504', 'diffneusim/viz/viewer.py:461')),
|
|
37
|
+
'DN_RENDER_LOOK': (('None',), ('diffneusim/viz/render.py:51',)),
|
|
38
|
+
'DN_RENDER_SELFCOL': (('"1"', 'None'), ('diffneusim/viz/dnrec_io.py:295', 'diffneusim/viz/dnrec_io.py:384')),
|
|
39
|
+
'DN_RSI_NO_NOISE': (('None',), ('diffneusim/rl/imitation.py:1584', 'diffneusim/train/masked_reset.py:262')),
|
|
40
|
+
'DN_RSI_WINDOW': (('None', 'REQUIRED'), ('diffneusim/rl/imitation.py:542', 'diffneusim/rl/imitation.py:543')),
|
|
41
|
+
'DN_STEPS_NUM': (("'unset'", 'None', 'PRESENCE', 'cfg.steps_num'), ('diffneusim/rl/task_walk_env.py:283', 'diffneusim/train/rl_algorithm_suite.py:107', 'diffneusim/train/train_tw14.py:500', 'diffneusim/train/train_tw14.py:499')),
|
|
42
|
+
'DN_SUBSTEPS': (('"20"',), ('diffneusim/train/rl_algorithm_suite.py:73',)),
|
|
43
|
+
'DN_TASKWALK': (('"0"',), ('diffneusim/rl/gpu_fullbody_vec_env.py:267',)),
|
|
44
|
+
'DN_TWIST_COMPILE': (('"0"',), ('diffneusim/model/monitor.py:245',)),
|
|
45
|
+
'DN_VIEW_CPU_F64': (('"0"',), ('diffneusim/engine/live14.py:71',)),
|
|
46
|
+
'DN_VIEW_FIBER_INIT_ITERS': (('"8"',), ('diffneusim/engine/live14.py:104',)),
|
|
47
|
+
'E0SPEED_LEVERS': (('""', 'None', 'REQUIRED'), ('diffneusim/rl/sapo_vec.py:66', 'diffneusim/rl/sapo_vec.py:70', 'diffneusim/rl/sapo_vec.py:70', 'diffneusim/train/levers.py:134')),
|
|
48
|
+
'E0_ENGINE14': (('"0"',), ('diffneusim/env/env14.py:554',)),
|
|
49
|
+
'E0_ENV14_ACT14': (('"0"',), ('diffneusim/env/env14.py:63',)),
|
|
50
|
+
'E0_ENV14_BACKEND': (('"cuda"',), ('diffneusim/env/env14.py:78', 'diffneusim/train/train_tw14.py:259', 'diffneusim/train/train_tw14.py:654')),
|
|
51
|
+
'E0_ENV14_CPU_LIB': (('REQUIRED',), ('diffneusim/env/env14.py:179',)),
|
|
52
|
+
'E0_ENV14_EQUIL14': (('None',), ('diffneusim/env/env14.py:109', 'diffneusim/train/masked_reset.py:264')),
|
|
53
|
+
'E0_ENV14_GLUE': (('"0"',), ('diffneusim/env/env14.py:49',)),
|
|
54
|
+
'E0_ENV14_GROUND14': (('"0"',), ('diffneusim/env/env14.py:75',)),
|
|
55
|
+
'E0_ENV14_KINLATCH': (('"0"',), ('diffneusim/env/env14.py:68',)),
|
|
56
|
+
'E0_ENV14_NO_OLD': (('"0"',), ('diffneusim/env/env14.py:71',)),
|
|
57
|
+
'E0_ENV14_REW14': (('None',), ('diffneusim/env/env14.py:123', 'diffneusim/train/train_tw14.py:81')),
|
|
58
|
+
'E0_MUSCLE_CASE': (('""', 'REQUIRED'), ('diffneusim/env/env14.py:557', 'diffneusim/env/env14.py:485', 'diffneusim/rl/task_walk_reward.py:622', 'diffneusim/train/train_tw14.py:211')),
|
|
59
|
+
'E0_P3': (('"0"', 'None'), ('diffneusim/rl/sapo_capture.py:852', 'diffneusim/train/masked_reset.py:265', 'diffneusim/train/train14.py:152')),
|
|
60
|
+
'E0_P4': (('None',), ('diffneusim/train/train14.py:235',)),
|
|
61
|
+
'E0_P4B': (('None',), ('diffneusim/train/train14.py:234',)),
|
|
62
|
+
'E0_P4_CHECK': (('None',), ('diffneusim/train/train14.py:235',)),
|
|
63
|
+
'E0_P4_P3MODE': (('"graph"',), ('diffneusim/train/train14.py:236',)),
|
|
64
|
+
'E0_P4_STATS': (('"0"',), ('diffneusim/train/train14.py:235',)),
|
|
65
|
+
'E0_REW14_RV_ANG': (('None',), ('diffneusim/env/rew14.py:34',)),
|
|
66
|
+
'E0_REW14_SKIP_ENV_ACT': (('"0"',), ('diffneusim/env/env14.py:215', 'diffneusim/env/rew14_hook.py:48')),
|
|
67
|
+
'E0_TERM': (('""',), ('diffneusim/rl/gpu_fullbody_vec_env.py:193',)),
|
|
68
|
+
'E0_TREE14': (('REQUIRED',), ('diffneusim/env/env14.py:556', 'diffneusim/train/train_tw14.py:150')),
|
|
69
|
+
'ENGINE14_KFIB': (('str(KFIB)',), ('diffneusim/engine/engine14.py:29',)),
|
|
70
|
+
'FULLBODY_DNMODEL': (('""', '"fullbody_contact_spinecoupled_fusedhand_lspine_girdle_osimeq.dnmodel"', '"fullbody_contact_spinecoupled_lspine_girdle_osimeq.dnmodel"', "''"), ('diffneusim/rl/gpu_fullbody_vec_env.py:39', 'diffneusim/rl/task_walk_reward.py:472', 'diffneusim/rl/task_walk_reward.py:658', 'diffneusim/viz/rl_env_render.py:508')),
|
|
71
|
+
'FULLBODY_QK': (('None',), ('diffneusim/rl/gpu_fullbody_vec_env.py:202',)),
|
|
72
|
+
'FULLBODY_UPRIGHT_MIN': (('"0.5"',), ('diffneusim/rl/gpu_fullbody_vec_env.py:187',)),
|
|
73
|
+
'LEARN_ARM': (('REQUIRED',), ('diffneusim/train/train14.py:22',)),
|
|
74
|
+
'LEARN_EMA': (('"0"',), ('diffneusim/train/train14.py:25', 'diffneusim/train/train_tw14.py:215')),
|
|
75
|
+
'LEARN_HB_MAX_S': (('"300"',), ('diffneusim/train/train14.py:28',)),
|
|
76
|
+
'LEARN_HEARTBEAT': (('REQUIRED',), ('diffneusim/train/train14.py:26',)),
|
|
77
|
+
'LEARN_STOP_AT': (('"0"',), ('diffneusim/train/train14.py:23',)),
|
|
78
|
+
'P4_OUT': (('REQUIRED',), ('diffneusim/train/train14.py:238',)),
|
|
79
|
+
'SAPO_ACTOR_OPT': (('"adamw"',), ('diffneusim/train/rl_algorithm_suite.py:164',)),
|
|
80
|
+
'SAPO_ACTOR_SGD_LR_SCALE': (('"1.0"',), ('diffneusim/train/rl_algorithm_suite.py:165',)),
|
|
81
|
+
'SAPO_FREEZE_CRITIC_BPTT': (('"0"',), ('diffneusim/rl/sapo_vec.py:278',)),
|
|
82
|
+
'SAPO_INIT_ALPHA': (('"1.0"',), ('diffneusim/train/rl_algorithm_suite.py:141',)),
|
|
83
|
+
'SAPO_ONE_BOOTSTRAP': (('"0"',), ('diffneusim/rl/sapo_vec.py:279',)),
|
|
84
|
+
'SAPO_TARGET_ENTROPY_SCALAR': (('"0.5"',), ('diffneusim/train/rl_algorithm_suite.py:143',)),
|
|
85
|
+
'SOFT14_EXTRA': (('""',), ('diffneusim/engine/soft14.py:11',)),
|
|
86
|
+
'SOFT_CAPI_EXTRA': (('""',), ('diffneusim/engine/soft_capi.py:15',)),
|
|
87
|
+
'SUITE_CKPT_AT_WALL_S': (('""',), ('diffneusim/train/rl_algorithm_suite.py:617',)),
|
|
88
|
+
'SUITE_INIT_CKPT': (('None', 'REQUIRED'), ('diffneusim/train/rl_algorithm_suite.py:552', 'diffneusim/train/train14.py:193', 'diffneusim/train/train_tw14.py:151', 'diffneusim/train/train_tw14.py:228', 'diffneusim/train/train_tw14.py:153')),
|
|
89
|
+
'SUITE_INIT_RESUME_ENV_STEPS': (('"0"',), ('diffneusim/train/rl_algorithm_suite.py:600',)),
|
|
90
|
+
'SUITE_SAVE_CKPTS': (('None',), ('diffneusim/train/rl_algorithm_suite.py:716',)),
|
|
91
|
+
'SUITE_SAVE_CKPTS_EVERY': (('"0"',), ('diffneusim/train/rl_algorithm_suite.py:712',)),
|
|
92
|
+
'SUITE_SKIP_DNREC': (('None',), ('diffneusim/env/e0loop14.py:33', 'diffneusim/train/rl_algorithm_suite.py:361', 'diffneusim/train/rl_algorithm_suite.py:427')),
|
|
93
|
+
'TASKWALK_ACCEL_COUPLED': (('flag01(0)',), ('diffneusim/rl/task_walk_reward.py:1335',)),
|
|
94
|
+
'TASKWALK_ACTIVATION_EXP': (('float(2.0)',), ('diffneusim/rl/task_walk_reward.py:1084',)),
|
|
95
|
+
'TASKWALK_ACTIVATION_WEIGHTING': (('"unit"',), ('diffneusim/rl/task_walk_reward.py:1097',)),
|
|
96
|
+
'TASKWALK_BOLT_HEADING_DEG': (('"0"',), ('diffneusim/rl/task_walk_env.py:298',)),
|
|
97
|
+
'TASKWALK_BOLT_LANE_TOES_W': (('"0"',), ('diffneusim/rl/task_walk_env.py:297',)),
|
|
98
|
+
'TASKWALK_BRAKE_THR_BW': (('float(0.35)',), ('diffneusim/rl/task_walk_reward.py:1870',)),
|
|
99
|
+
'TASKWALK_COM_FLOOR_H': (('REQUIRED',), ('diffneusim/rl/task_walk_reward.py:2139',)),
|
|
100
|
+
'TASKWALK_COM_RATE_COUPLED': (('flag01(0)',), ('diffneusim/rl/task_walk_reward.py:1317',)),
|
|
101
|
+
'TASKWALK_FALL_FOOT_GEOM': (('"0"',), ('diffneusim/rl/task_walk_env.py:309',)),
|
|
102
|
+
'TASKWALK_FALL_H': (('float(0.50)',), ('diffneusim/rl/task_walk_reward.py:2045',)),
|
|
103
|
+
'TASKWALK_FALL_NONFOOT': (('"0"', 'None', 'REQUIRED'), ('diffneusim/env/env14.py:247', 'diffneusim/env/env14.py:248', 'diffneusim/env/env14.py:248', 'diffneusim/rl/task_walk_reward.py:2062', 'diffneusim/rl/task_walk_reward.py:2061', 'diffneusim/rl/task_walk_reward.py:2062')),
|
|
104
|
+
'TASKWALK_FALL_ROOT_H': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:2051',)),
|
|
105
|
+
'TASKWALK_HEAD_ACCEL_BAND_X': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:1711',)),
|
|
106
|
+
'TASKWALK_HEAD_ACCEL_BAND_Z': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:1711',)),
|
|
107
|
+
'TASKWALK_HEAD_ACCEL_CAP': (('float(1e9)',), ('diffneusim/rl/task_walk_reward.py:1697',)),
|
|
108
|
+
'TASKWALK_HEAD_ANGVEL_VAR_PITCH': (('float(1.40)',), ('diffneusim/rl/task_walk_reward.py:2012',)),
|
|
109
|
+
'TASKWALK_HEAD_ANGVEL_VAR_ROLL': (('float(0.60)',), ('diffneusim/rl/task_walk_reward.py:2010',)),
|
|
110
|
+
'TASKWALK_HEAD_ANGVEL_VAR_YAW': (('float(0.65)',), ('diffneusim/rl/task_walk_reward.py:2011',)),
|
|
111
|
+
'TASKWALK_HIP_ROTATION_BAND': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:1634',)),
|
|
112
|
+
'TASKWALK_INIT_REF': (('""', 'None', 'REQUIRED'), ('diffneusim/rl/gpu_fullbody_vec_env.py:275', 'diffneusim/train/train_tw14.py:95', 'diffneusim/train/train_tw14.py:105', 'diffneusim/train/train_tw14.py:107', 'diffneusim/train/train_tw14.py:107', 'diffneusim/train/train_tw14.py:111', 'diffneusim/train/train_tw14.py:111', 'diffneusim/train/train_tw14.py:128', 'diffneusim/train/train_tw14.py:128', 'diffneusim/train/train_tw14.py:141', 'diffneusim/train/train_tw14.py:141')),
|
|
113
|
+
'TASKWALK_JOINT_LIMIT_BETA': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:1163',)),
|
|
114
|
+
'TASKWALK_KNEE_MIN_DEG': (('float(math.degrees(self._model_knee_bound(env)))',), ('diffneusim/rl/task_walk_reward.py:2039',)),
|
|
115
|
+
'TASKWALK_LANE_HALF_W': (('"0"',), ('diffneusim/rl/task_walk_env.py:527', 'diffneusim/rl/task_walk_env.py:306')),
|
|
116
|
+
'TASKWALK_LCE_DOT_COUPLED': (('"0"',), ('diffneusim/rl/task_walk_env.py:1134', 'diffneusim/rl/task_walk_env.py:1403')),
|
|
117
|
+
'TASKWALK_LIMIT_TORQUE_FLOOR': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:1773',)),
|
|
118
|
+
'TASKWALK_LIMIT_TORQUE_JOINTS': (('""',), ('diffneusim/rl/task_walk_reward.py:1753',)),
|
|
119
|
+
'TASKWALK_LIMIT_TORQUE_POW': (('float(1.0)',), ('diffneusim/rl/task_walk_reward.py:1800',)),
|
|
120
|
+
'TASKWALK_LIMIT_TORQUE_REF': (('float(10.0)',), ('diffneusim/rl/task_walk_reward.py:1728',)),
|
|
121
|
+
'TASKWALK_LIMIT_TORQUE_SPRINGS': (('flag01(0)',), ('diffneusim/rl/task_walk_reward.py:1763',)),
|
|
122
|
+
'TASKWALK_LIMIT_TORQUE_STOP': (('"0"', 'flag01(0)'), ('diffneusim/env/env14.py:262', 'diffneusim/rl/task_walk_reward.py:1794')),
|
|
123
|
+
'TASKWALK_LIMIT_TORQUE_STOP_JOINTS': (('""',), ('diffneusim/rl/task_walk_reward.py:1795',)),
|
|
124
|
+
'TASKWALK_LOG_TERMS': (('flag01(0)',), ('diffneusim/rl/task_walk_reward.py:2085',)),
|
|
125
|
+
'TASKWALK_LOG_VTGT_EVERY': (('"0"',), ('diffneusim/rl/task_walk_env.py:428',)),
|
|
126
|
+
'TASKWALK_METABOLIC_FORCE_FLOOR': (('"0"',), ('diffneusim/rl/task_walk_reward.py:1510',)),
|
|
127
|
+
'TASKWALK_METABOLIC_RATE_TERMS': (('"all"',), ('diffneusim/rl/task_walk_reward.py:1183',)),
|
|
128
|
+
'TASKWALK_METABOLIC_SHORT_K': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:1486',)),
|
|
129
|
+
'TASKWALK_METABOLIC_SHORT_LREF': (('REQUIRED',), ('diffneusim/rl/task_walk_reward.py:1493',)),
|
|
130
|
+
'TASKWALK_METABOLIC_SHORT_MUSCLES': (('r"^(soleus|gasmed|gaslat)_[lr]$"',), ('diffneusim/rl/task_walk_reward.py:1496',)),
|
|
131
|
+
'TASKWALK_MID_LANE_FORM': (('"offset"',), ('diffneusim/rl/task_walk_reward.py:1405',)),
|
|
132
|
+
'TASKWALK_MID_LANE_K': (('float(2.5)',), ('diffneusim/rl/task_walk_reward.py:1393',)),
|
|
133
|
+
'TASKWALK_MILLARD_MASS_DNMODEL': (('""',), ('diffneusim/rl/task_walk_reward.py:617', 'diffneusim/rl/task_walk_reward.py:506', 'diffneusim/rl/task_walk_reward.py:762')),
|
|
134
|
+
'TASKWALK_SLOPE_HI_DEG': (('"5"', 'None'), ('diffneusim/rl/task_walk_env.py:466', 'diffneusim/rl/task_walk_reward.py:2054')),
|
|
135
|
+
'TASKWALK_SLOPE_LO_DEG': (('"-5"', 'None'), ('diffneusim/rl/task_walk_env.py:465', 'diffneusim/rl/task_walk_reward.py:2054')),
|
|
136
|
+
'TASKWALK_SLOPE_N': (('"11"',), ('diffneusim/rl/task_walk_env.py:467',)),
|
|
137
|
+
'TASKWALK_SPEED_LAT_TOL': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:2014',)),
|
|
138
|
+
'TASKWALK_SPEED_MAX_SIGNAL': (('"com"',), ('diffneusim/rl/task_walk_reward.py:1252',)),
|
|
139
|
+
'TASKWALK_SPEED_P_GAIN': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:1262',)),
|
|
140
|
+
'TASKWALK_SPEED_TERM_GRACE_S': (('REQUIRED',), ('diffneusim/rl/task_walk_env.py:447',)),
|
|
141
|
+
'TASKWALK_SPEED_TERM_WIN_S': (('REQUIRED',), ('diffneusim/rl/task_walk_env.py:446',)),
|
|
142
|
+
'TASKWALK_SPEED_TOL': (('float(0.05)',), ('diffneusim/rl/task_walk_reward.py:1934',)),
|
|
143
|
+
'TASKWALK_TRUNK_UPRIGHT_USE_HEAD': (('flag01(0)',), ('diffneusim/rl/task_walk_reward.py:2013',)),
|
|
144
|
+
'TASKWALK_UP_BODY': (('"root"',), ('diffneusim/rl/task_walk_reward.py:1365',)),
|
|
145
|
+
'TASKWALK_V_CYCLIC': (('"0"',), ('diffneusim/rl/task_walk_env.py:363',)),
|
|
146
|
+
'TASKWALK_V_FIXED': (('""',), ('diffneusim/rl/task_walk_env.py:364',)),
|
|
147
|
+
'TASKWALK_V_HI': (('"1.5"',), ('diffneusim/rl/task_walk_env.py:361',)),
|
|
148
|
+
'TASKWALK_V_HI_AFTER': (('"0"',), ('diffneusim/rl/task_walk_env.py:397',)),
|
|
149
|
+
'TASKWALK_V_HI_END': (('None',), ('diffneusim/rl/task_walk_env.py:391',)),
|
|
150
|
+
'TASKWALK_V_HI_STEPS': (('"0"',), ('diffneusim/rl/task_walk_env.py:392',)),
|
|
151
|
+
'TASKWALK_V_LO': (('"0.7"',), ('diffneusim/rl/task_walk_env.py:360',)),
|
|
152
|
+
'TASKWALK_V_LO_AFTER': (('"0"',), ('diffneusim/rl/task_walk_env.py:408',)),
|
|
153
|
+
'TASKWALK_V_LO_END': (('None',), ('diffneusim/rl/task_walk_env.py:406',)),
|
|
154
|
+
'TASKWALK_V_LO_STEPS': (('"0"',), ('diffneusim/rl/task_walk_env.py:407',)),
|
|
155
|
+
'TASKWALK_V_PERIOD': (('"400"',), ('diffneusim/rl/task_walk_env.py:362',)),
|
|
156
|
+
'TASKWALK_WANG_MASS_FILE': (('""', "''"), ('diffneusim/rl/task_walk_reward.py:465', 'diffneusim/rl/task_walk_reward.py:708', 'diffneusim/rl/task_walk_reward.py:655')),
|
|
157
|
+
'TASKWALK_W_ACTION_RATE': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:1424',)),
|
|
158
|
+
'TASKWALK_W_ACTIVATION': (('float(10.0)',), ('diffneusim/rl/task_walk_reward.py:1083',)),
|
|
159
|
+
'TASKWALK_W_ALIVE_BONUS': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:1216',)),
|
|
160
|
+
'TASKWALK_W_BRAKE': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:1844',)),
|
|
161
|
+
'TASKWALK_W_COM_FLOOR': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:2137',)),
|
|
162
|
+
'TASKWALK_W_COM_POS_WORK': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:1853',)),
|
|
163
|
+
'TASKWALK_W_FALL_PENALTY': (('float(250.0)',), ('diffneusim/rl/task_walk_reward.py:1202',)),
|
|
164
|
+
'TASKWALK_W_HEAD_ACCEL': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:1676',)),
|
|
165
|
+
'TASKWALK_W_HIP_ADDUCTION': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:1597',)),
|
|
166
|
+
'TASKWALK_W_HIP_ROTATION': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:1605',)),
|
|
167
|
+
'TASKWALK_W_JOINT_LIMIT': (('float(25.0)',), ('diffneusim/rl/task_walk_reward.py:1100',)),
|
|
168
|
+
'TASKWALK_W_KNEE_LOAD': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:1476', 'diffneusim/rl/task_walk_reward.py:1482')),
|
|
169
|
+
'TASKWALK_W_LIMIT_POWER': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:1875',)),
|
|
170
|
+
'TASKWALK_W_LIMIT_TORQUE': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:1727', 'diffneusim/rl/task_walk_reward.py:1874')),
|
|
171
|
+
'TASKWALK_W_METABOLIC_RATE': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:1174', 'diffneusim/rl/task_walk_reward.py:1480')),
|
|
172
|
+
'TASKWALK_W_METABOLIC_SQ': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:1200', 'diffneusim/rl/task_walk_reward.py:1481')),
|
|
173
|
+
'TASKWALK_W_MID_LANE': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:1392', 'diffneusim/rl/task_walk_reward.py:1412')),
|
|
174
|
+
'TASKWALK_W_ROOT_HEADING': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:1353',)),
|
|
175
|
+
'TASKWALK_W_ROOT_UP': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:1352',)),
|
|
176
|
+
'TASKWALK_W_SPEED_MAX': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:1240',)),
|
|
177
|
+
'TASKWALK_W_SPEED_TRACK': (('float(10.0)',), ('diffneusim/rl/task_walk_reward.py:1079',)),
|
|
178
|
+
'TASKWALK_W_TOE_SPRING': (('float(0.0)',), ('diffneusim/rl/task_walk_reward.py:1873',)),
|
|
179
|
+
'TORCHINDUCTOR_DETERMINISTIC': (('None',), ('diffneusim/rl/g1_bm_fused.py:252',)),
|
|
180
|
+
'TW14_DRY_EPOCHS': (('"0"',), ('diffneusim/train/train_tw14.py:660',)),
|
|
181
|
+
'TW14_EMA_RESTART': (('None',), ('diffneusim/train/train_tw14.py:236',)),
|
|
182
|
+
'TW14_LR_SCHED': (('None', 'REQUIRED'), ('diffneusim/train/train_tw14.py:530', 'diffneusim/train/train_tw14.py:531')),
|
|
183
|
+
'TW14_PARSE_ONLY': (('None',), ('diffneusim/train/train_tw14.py:657',)),
|
|
184
|
+
'X14_MILLARD_EQUIL_SCHEDULE': (('""',), ('diffneusim/engine/engine14.py:144', 'diffneusim/env/cpu14.py:46')),
|
|
185
|
+
'X14_MILLARD_RESET_F32': (('"0"',), ('diffneusim/engine/engine14.py:151',)),
|
|
186
|
+
'X14_VARIANT': (('"mm"', 'None'), ('diffneusim/engine/engine14.py:59', 'diffneusim/engine/soft14.py:15', 'diffneusim/env/e0loop14.py:201')),
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
# A reward weight's schedule (diffneusim/rl/task_walk_env.py, the weight-schedule reader): for a weight TASKWALK_W_<NAME> above, the keys
|
|
190
|
+
# TASKWALK_W_<NAME>_END / _STEPS / _AFTER walk it from its start value to _END over _STEPS control steps from step _AFTER, and
|
|
191
|
+
# _END2 / _STEPS2 / _AFTER2 walk it on from _END to _END2. They are read by name, built from the weight's attribute.
|
|
192
|
+
SCHEDULE_SUFFIXES = ("_END", "_STEPS", "_AFTER", "_END2", "_STEPS2", "_AFTER2")
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
def is_setting(key):
|
|
196
|
+
"""a setting the package reads: a listed one, or a listed reward weight's schedule key"""
|
|
197
|
+
if key in SETTINGS:
|
|
198
|
+
return True
|
|
199
|
+
for suf in SCHEDULE_SUFFIXES:
|
|
200
|
+
if key.startswith("TASKWALK_W_") and key.endswith(suf) and key[: -len(suf)] in SETTINGS:
|
|
201
|
+
return True
|
|
202
|
+
return False
|