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
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
// The split factor (2026-11-06; tools/d16_bodies/PHASE_B.md section 4, step B3a), included by chol_rn.cuh inside namespace chol under D16_NV_GT64, after the dense
|
|
3
|
+
// routines, with a body's generated split header (core/soft/gpu/generated/split_<tag>.cuh, tools/d16_bodies/gen_split.py) included before. For one world per 32-thread block.
|
|
4
|
+
//
|
|
5
|
+
// The matrix (M, the Newton matrix H or L_Q) of order NV = NC + NCH CL in the split storage of WORDS values:
|
|
6
|
+
// [0, NTRI_C) the core's packed lower triangle, core-local indices (gSplitCore order)
|
|
7
|
+
// NTRI_C + c CW + tri(k, j) chain c's own lower triangle, chain-local, elimination order (the leaf first)
|
|
8
|
+
// NTRI_C + c CW + CEE + a CL + k chain c's rows against its core ancestors: ancestor a (gSplitAnc[c][a]), chain dof k
|
|
9
|
+
// Vectors in split order: [core NC][chain 0's CL] ... [chain NCH - 1's CL] (split_gather / split_scatter from the global dof order).
|
|
10
|
+
// rinv: [core NC][the chains' NCH CL], the reciprocal pivots.
|
|
11
|
+
//
|
|
12
|
+
// The factor eliminates the chains first, then factors the core's Schur complement with chol_rn's dense factor at NC (the 14x's NV 37 kernel, unchanged). This is the Cholesky
|
|
13
|
+
// factor of the matrix in the order [chains; core], exact because no chain is coupled to another or off its core ancestors (gen_split.py asserts it). chol_rn's rule on every
|
|
14
|
+
// pivot, in both phases: under mindiag it becomes mindiag and is counted, and its column below is zeroed. That is NOT MuJoCo's rule (mju_cholFactor keeps the column, scaled
|
|
15
|
+
// by 1 / sqrt(mindiag): chol_rn.cuh's header); the split follows chol_rn so that the 416 takes whatever is decided for both, and returns the count. Deterministic: fixed
|
|
16
|
+
// lanes, each shared word one writer, the Schur updates in the generated order. Every __syncwarp is reached by all 32 lanes.
|
|
17
|
+
#if !defined(D16_SPLIT_DEVICE)
|
|
18
|
+
#error "D16_NV_GT64 needs the body's generated split header (core/soft/gpu/generated/split_<tag>.cuh) included before chol_rn.cuh"
|
|
19
|
+
#endif
|
|
20
|
+
namespace SPL = ::d16::split;
|
|
21
|
+
|
|
22
|
+
__device__ __forceinline__ int split_ld(const int* p) {
|
|
23
|
+
#if defined(__CUDA_ARCH__)
|
|
24
|
+
return __ldg(p); // lane-varying table reads through the read-only path, not __constant__ (constant-tables-with-lane-divergent-index-serialize)
|
|
25
|
+
#else
|
|
26
|
+
return *p;
|
|
27
|
+
#endif
|
|
28
|
+
}
|
|
29
|
+
template <class T> __device__ __forceinline__ T* split_chain(T* S, int c) { return S + SPL::NTRI_C + c * SPL::CW; }
|
|
30
|
+
|
|
31
|
+
// xs[i] = xg[core[i]], xs[NC + c CL + k] = xg[chain[c][k]]; and back
|
|
32
|
+
template <class T> __device__ __forceinline__ void split_gather(const T* xg, T* xs, int lane) {
|
|
33
|
+
for (int i = lane; i < SPL::NC; i += 32) xs[i] = xg[split_ld(&SPL::gSplitCore[i])];
|
|
34
|
+
for (int i = lane; i < SPL::NCH * SPL::CL; i += 32) xs[SPL::NC + i] = xg[split_ld(&SPL::gSplitChain[i])];
|
|
35
|
+
__syncwarp();
|
|
36
|
+
}
|
|
37
|
+
template <class T> __device__ __forceinline__ void split_scatter(const T* xs, T* xg, int lane) {
|
|
38
|
+
for (int i = lane; i < SPL::NC; i += 32) xg[split_ld(&SPL::gSplitCore[i])] = xs[i];
|
|
39
|
+
for (int i = lane; i < SPL::NCH * SPL::CL; i += 32) xg[split_ld(&SPL::gSplitChain[i])] = xs[SPL::NC + i];
|
|
40
|
+
__syncwarp();
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// the core's right-hand side after the chains' forward: b_c -= L_cE y_E (lanes over core dofs, each chain's updates in the generated order)
|
|
44
|
+
template <class T> __device__ __forceinline__ void split_core_rhs(const T* S, T* xs, int lane) {
|
|
45
|
+
for (int i = lane; i < SPL::NC; i += 32) {
|
|
46
|
+
T s = xs[i];
|
|
47
|
+
const int r0 = split_ld(&SPL::gSplitRuOff[i]), r1 = split_ld(&SPL::gSplitRuOff[i + 1]);
|
|
48
|
+
for (int r = r0; r < r1; ++r) {
|
|
49
|
+
const int u = split_ld(&SPL::gSplitRu[r]), c = u >> 8, a = u & 255;
|
|
50
|
+
const T* Lce = split_chain(S, c) + SPL::CEE + a * SPL::CL;
|
|
51
|
+
const T* y = xs + SPL::NC + c * SPL::CL;
|
|
52
|
+
#pragma unroll
|
|
53
|
+
for (int k = 0; k < SPL::CL; ++k) s = s - Lce[k] * y[k];
|
|
54
|
+
}
|
|
55
|
+
xs[i] = s;
|
|
56
|
+
}
|
|
57
|
+
__syncwarp();
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// the chains' forward substitution on a stored factor (lane c owns chain c): y_E = L_EE^-1 b_E in place, then the core's right-hand side
|
|
61
|
+
template <class T> __device__ __forceinline__ void split_fwd_chains(const T* S, const T* rinv, T* xs, int lane) {
|
|
62
|
+
if (lane < SPL::NCH) {
|
|
63
|
+
const T* C = split_chain(S, lane);
|
|
64
|
+
T* y = xs + SPL::NC + lane * SPL::CL;
|
|
65
|
+
const T* ri = rinv + SPL::NC + lane * SPL::CL;
|
|
66
|
+
#pragma unroll
|
|
67
|
+
for (int k = 0; k < SPL::CL; ++k) {
|
|
68
|
+
T s = y[k];
|
|
69
|
+
#pragma unroll
|
|
70
|
+
for (int j = 0; j < k; ++j) s = s - C[tri(k, j)] * y[j];
|
|
71
|
+
y[k] = s * ri[k];
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
__syncwarp();
|
|
75
|
+
split_core_rhs<T>(S, xs, lane);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// The factor, in place, with the forward solve fused in: on return xs = L^-1 xs (split order); split_solve_bwd finishes. Returns the clamped pivots (uniform).
|
|
79
|
+
// col0 / col1: chol_rn's column buffers (32 entries, 16-byte aligned); col0[0 .. NCH) carries each chain's clamped-pivot mask from phase 1a to 1b first.
|
|
80
|
+
template <class T>
|
|
81
|
+
__device__ __noinline__ int split_factor_fwd(T* S, T* rinv, T* col0, T* col1, T mindiag, int lane, T* xs) {
|
|
82
|
+
static_assert(SPL::NCH <= 32 && SPL::CL <= 8 && SPL::NC > 32 && SPL::NC <= 37, "the split's shape: a chain per lane, the core in chol_rn's dense range");
|
|
83
|
+
int nlow = 0;
|
|
84
|
+
// 1a: each chain's own factor (lane c), left looking, and its part of the forward solve
|
|
85
|
+
if (lane < SPL::NCH) {
|
|
86
|
+
T* C = split_chain(S, lane);
|
|
87
|
+
T* ri = rinv + SPL::NC + lane * SPL::CL;
|
|
88
|
+
T* y = xs + SPL::NC + lane * SPL::CL;
|
|
89
|
+
int mask = 0;
|
|
90
|
+
#pragma unroll
|
|
91
|
+
for (int k = 0; k < SPL::CL; ++k) {
|
|
92
|
+
T piv = C[tri(k, k)];
|
|
93
|
+
#pragma unroll
|
|
94
|
+
for (int j = 0; j < k; ++j) piv = piv - C[tri(k, j)] * C[tri(k, j)];
|
|
95
|
+
const bool low = piv < mindiag;
|
|
96
|
+
if (low) { piv = mindiag; ++nlow; mask |= 1 << k; }
|
|
97
|
+
T d, inv;
|
|
98
|
+
pivot_inv(piv, d, inv);
|
|
99
|
+
C[tri(k, k)] = d;
|
|
100
|
+
ri[k] = inv;
|
|
101
|
+
#pragma unroll
|
|
102
|
+
for (int i = k + 1; i < SPL::CL; ++i) {
|
|
103
|
+
T s = C[tri(i, k)];
|
|
104
|
+
#pragma unroll
|
|
105
|
+
for (int j = 0; j < k; ++j) s = s - C[tri(i, j)] * C[tri(k, j)];
|
|
106
|
+
C[tri(i, k)] = low ? T(0) : s * inv;
|
|
107
|
+
}
|
|
108
|
+
T s = y[k];
|
|
109
|
+
#pragma unroll
|
|
110
|
+
for (int j = 0; j < k; ++j) s = s - C[tri(k, j)] * y[j];
|
|
111
|
+
y[k] = s * inv;
|
|
112
|
+
}
|
|
113
|
+
col0[lane] = T(mask);
|
|
114
|
+
}
|
|
115
|
+
__syncwarp();
|
|
116
|
+
// 1b: each chain's rows against its core ancestors, L_cE = H_cE L_EE^-T (lanes over (chain, ancestor))
|
|
117
|
+
for (int p = lane; p < SPL::NCH * SPL::NA; p += 32) {
|
|
118
|
+
const int c = p / SPL::NA, a = p - c * SPL::NA;
|
|
119
|
+
T* C = split_chain(S, c);
|
|
120
|
+
T* r = C + SPL::CEE + a * SPL::CL;
|
|
121
|
+
const T* ri = rinv + SPL::NC + c * SPL::CL;
|
|
122
|
+
const int mask = static_cast<int>(col0[c]);
|
|
123
|
+
#pragma unroll
|
|
124
|
+
for (int k = 0; k < SPL::CL; ++k) {
|
|
125
|
+
T s = r[k];
|
|
126
|
+
#pragma unroll
|
|
127
|
+
for (int j = 0; j < k; ++j) s = s - r[j] * C[tri(k, j)];
|
|
128
|
+
r[k] = ((mask >> k) & 1) ? T(0) : s * ri[k];
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
__syncwarp();
|
|
132
|
+
// 1c: the core's Schur complement, S_cc -= L_cE L_cE' per chain, each entry's updates in the generated order (lanes over the core's packed entries)
|
|
133
|
+
for (int e = lane; e < SPL::NTRI_C; e += 32) {
|
|
134
|
+
const int u0 = split_ld(&SPL::gSplitUpdOff[e]), u1 = split_ld(&SPL::gSplitUpdOff[e + 1]);
|
|
135
|
+
if (u0 == u1) continue;
|
|
136
|
+
T s = S[e];
|
|
137
|
+
for (int q = u0; q < u1; ++q) {
|
|
138
|
+
const int u = split_ld(&SPL::gSplitUpd[q]), c = u >> 16, ai = (u >> 8) & 255, aj = u & 255;
|
|
139
|
+
const T* Lc = split_chain(S, c) + SPL::CEE;
|
|
140
|
+
#pragma unroll
|
|
141
|
+
for (int k = 0; k < SPL::CL; ++k) s = s - Lc[ai * SPL::CL + k] * Lc[aj * SPL::CL + k];
|
|
142
|
+
}
|
|
143
|
+
S[e] = s;
|
|
144
|
+
}
|
|
145
|
+
// 1d (no barrier: 1c writes only the core's triangle, 1d only the core's right-hand side; both read 1a's and 1b's results)
|
|
146
|
+
split_core_rhs<T>(S, xs, lane);
|
|
147
|
+
// the chains' clamped count, uniform across the warp
|
|
148
|
+
#pragma unroll
|
|
149
|
+
for (int o = 16; o >= 1; o >>= 1) nlow += __shfl_xor_sync(kFull, nlow, o);
|
|
150
|
+
// 2: the core, chol_rn's dense factor with its forward solve (col0 / col1 are its buffers again)
|
|
151
|
+
return nlow + factor_fwd<T, SPL::NC>(S, rinv, col0, col1, mindiag, lane, xs);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// x = L^-T xs in place (split order), after split_factor_fwd or split_solve_fwd: the core first, then each chain (lane c), back to front
|
|
155
|
+
template <class T, int Tag = 0> __device__ __noinline__ void split_solve_bwd(const T* S, const T* rinv, T* xs, int lane) {
|
|
156
|
+
solve_bwd<T, SPL::NC, Tag>(S, rinv, xs, lane);
|
|
157
|
+
if (lane < SPL::NCH) {
|
|
158
|
+
const T* C = split_chain(S, lane);
|
|
159
|
+
const T* ri = rinv + SPL::NC + lane * SPL::CL;
|
|
160
|
+
T* x = xs + SPL::NC + lane * SPL::CL;
|
|
161
|
+
T t[SPL::CL];
|
|
162
|
+
#pragma unroll
|
|
163
|
+
for (int k = 0; k < SPL::CL; ++k) {
|
|
164
|
+
T s = x[k];
|
|
165
|
+
#pragma unroll
|
|
166
|
+
for (int a = 0; a < SPL::NA; ++a) s = s - C[SPL::CEE + a * SPL::CL + k] * xs[split_ld(&SPL::gSplitAnc[lane * SPL::NA + a])];
|
|
167
|
+
t[k] = s;
|
|
168
|
+
}
|
|
169
|
+
#pragma unroll
|
|
170
|
+
for (int k = SPL::CL - 1; k >= 0; --k) {
|
|
171
|
+
T s = t[k];
|
|
172
|
+
#pragma unroll
|
|
173
|
+
for (int i = k + 1; i < SPL::CL; ++i) s = s - C[tri(i, k)] * x[i];
|
|
174
|
+
x[k] = s * ri[k];
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
__syncwarp();
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// xs = L^-1 xs on a stored factor (split order)
|
|
181
|
+
template <class T, int Tag = 0> __device__ __noinline__ void split_solve_fwd(const T* S, const T* rinv, T* xs, int lane) {
|
|
182
|
+
split_fwd_chains<T>(S, rinv, xs, lane);
|
|
183
|
+
solve_fwd<T, SPL::NC, Tag>(S, rinv, xs, lane);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// the reciprocal pivots of a factor stored elsewhere (the adjoint's L_H)
|
|
187
|
+
template <class T> __device__ __forceinline__ void split_set_rinv(const T* S, T* rinv, int lane) {
|
|
188
|
+
for (int i = lane; i < SPL::NCH * SPL::CL; i += 32) {
|
|
189
|
+
const int c = i / SPL::CL, k = i - c * SPL::CL;
|
|
190
|
+
rinv[SPL::NC + i] = T(1) / S[SPL::NTRI_C + c * SPL::CW + tri(k, k)];
|
|
191
|
+
}
|
|
192
|
+
set_rinv<T, SPL::NC>(S, rinv, lane);
|
|
193
|
+
}
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
// D16 engine binding's kernels (d5, 2026-11-02; tools/d16_binding/PLAN.md, the launch rules):
|
|
3
|
+
// kpre_kernel k_pre (the p_world + the L2 v2 -> the hand), copied as is from bindings/soft_gpu_test.cu (the rule: moved)
|
|
4
|
+
// k_post_f32 / k_post_big_f32 (and f64) the k_post on the hand (core/soft/gpu/l3.cuh world_hand), from
|
|
5
|
+
// bindings/soft_l3_test.cu: the fast path holds NR = 128 rows in shared memory, the big path NRH = 192
|
|
6
|
+
// k_order the row-count order on the device (the l3_time.py order: most rows first, stable): a deterministic counting
|
|
7
|
+
// sort of nefc, one block; the worlds over NR rows come first (the big kernel takes them), the rest go to the
|
|
8
|
+
// fast kernel in descending row count. Identity dispatch (order null) keeps v0's one fast launch.
|
|
9
|
+
// k_substep_tail per world after k_post: the flag word (k_post's overflow / cap and k_pre's hand overflow, OR-ed) and the
|
|
10
|
+
// stats row (ncon, nefc, niter, warm used, 0, 0: the decision hash is not computed on the device)
|
|
11
|
+
// k_frames the tracked bodies' frames and world velocities at (q_{t+1}, v_{t+1}): the fk_rn (bitwise with the adjoint's
|
|
12
|
+
// replay) and the twist recursion, level-parallel; the CPU reference is soft_capi's body_frames
|
|
13
|
+
// Every launch is <<<n, 32>>> on the caller's stream, with caller-owned buffers only (graph-capturable).
|
|
14
|
+
#include <cstdint>
|
|
15
|
+
#include <vector>
|
|
16
|
+
|
|
17
|
+
#include "generated/g1_soft_5db44fd45286.cuh"
|
|
18
|
+
#ifndef D16_MODEL_NS
|
|
19
|
+
#define D16_MODEL_NS d16::g1_soft_5db44fd45286
|
|
20
|
+
#endif
|
|
21
|
+
#include "k_pre.cuh"
|
|
22
|
+
#include "l3.cuh"
|
|
23
|
+
#include "adj_tab.cuh"
|
|
24
|
+
#include "../adj/rnea_adj.h"
|
|
25
|
+
#include "../adj/rows_functor.h"
|
|
26
|
+
#include "adj_shell.cuh"
|
|
27
|
+
#include "rows_ctab.cuh"
|
|
28
|
+
|
|
29
|
+
namespace js::soft::eng {
|
|
30
|
+
|
|
31
|
+
namespace MDK = d16::g1_soft_5db44fd45286;
|
|
32
|
+
namespace l3 = js::soft::gpu::l3;
|
|
33
|
+
constexpr int NV = 35, NR = 128, NC = 64, NRH = 192, KD = js::soft::kHandKdof;
|
|
34
|
+
constexpr int kV2NG = 34, kV2NP = 502, kV2NC = 64, kV2NR = 192; // the G1's geoms and pairs; the hand's capacities (soft_gpu_test.cu)
|
|
35
|
+
constexpr js::soft::HandLayout HL = js::soft::hand_layout(NV, NC, NRH, KD);
|
|
36
|
+
constexpr int kStatW = 6; // stats per world and substep
|
|
37
|
+
// the tape record (core/soft/tape.h; the k_post writes every word but POSE, k_pre the POSE block): [nw][nsub][TL.words], world-major
|
|
38
|
+
// as the adjoint reads it (B's RowsB and the shell: rec + s TL.words inside a world)
|
|
39
|
+
constexpr js::soft::TapeLayout TL = js::soft::tape_layout(MDK::NQ, NV, NC, NRH, l3::kTapeNpose);
|
|
40
|
+
static_assert(l3::kTapeNpose == MDK::NB && js::soft::adj::kNB == MDK::NB, "the tape's POSE block holds every body");
|
|
41
|
+
constexpr int kZoneWords = NRH / 32; // k_post's zone stride (Args.zone_words): the 192-row big kernel writes 6 words
|
|
42
|
+
|
|
43
|
+
// ---- k_pre (bindings/soft_gpu_test.cu; L2 v2.2, 45c87412) ----
|
|
44
|
+
#ifdef D16_G1_COMDR
|
|
45
|
+
// COMDR (deck-only): ipo [nw, 3] the worlds' CoM offsets of body ipo_body (kernel_p.cuh's ComExt)
|
|
46
|
+
template <class T>
|
|
47
|
+
__global__ void __launch_bounds__(32) kpre_kernel(const T* __restrict__ V, js::soft::gpu::L2Tab<T> m2, js::soft::HandLayout h,
|
|
48
|
+
int nw, const T* qpos, const T* qvel, const T* ctrl, const T* fric, T* hand,
|
|
49
|
+
int* nefc, T* pose, long long pose_stride, long long* tmr, const T* ipo, int ipo_body) {
|
|
50
|
+
using namespace js::soft::gpu;
|
|
51
|
+
__shared__ KPreShared<T, kV2NG, kV2NP, kV2NC> sh;
|
|
52
|
+
const int w = blockIdx.x, lane = threadIdx.x & 31;
|
|
53
|
+
if (w >= nw) return;
|
|
54
|
+
k_pre_world<T, kV2NG, kV2NP, kV2NC, kV2NR, d16::kp::ComExt<T>>(
|
|
55
|
+
sh, V, m2, h, qpos + static_cast<size_t>(w) * MDK::NQ, qvel + static_cast<size_t>(w) * MDK::NV,
|
|
56
|
+
ctrl + static_cast<size_t>(w) * MDK::NU, fric[w], hand + static_cast<size_t>(w) * h.words, nefc + w,
|
|
57
|
+
pose ? pose + static_cast<size_t>(w) * static_cast<size_t>(pose_stride) : nullptr, lane, nullptr, nullptr,
|
|
58
|
+
d16::kp::ComExt<T>{ipo_body, ipo + static_cast<size_t>(w) * 3});
|
|
59
|
+
}
|
|
60
|
+
#else
|
|
61
|
+
template <class T>
|
|
62
|
+
__global__ void __launch_bounds__(32) kpre_kernel(const T* __restrict__ V, js::soft::gpu::L2Tab<T> m2, js::soft::HandLayout h,
|
|
63
|
+
int nw, const T* qpos, const T* qvel, const T* ctrl, const T* fric, T* hand,
|
|
64
|
+
int* nefc, T* pose, long long pose_stride, long long* tmr) {
|
|
65
|
+
using namespace js::soft::gpu;
|
|
66
|
+
__shared__ KPreShared<T, kV2NG, kV2NP, kV2NC> sh;
|
|
67
|
+
const int w = blockIdx.x, lane = threadIdx.x & 31;
|
|
68
|
+
if (w >= nw) return;
|
|
69
|
+
k_pre_world<T, kV2NG, kV2NP, kV2NC, kV2NR>(sh, V, m2, h, qpos + static_cast<size_t>(w) * MDK::NQ,
|
|
70
|
+
qvel + static_cast<size_t>(w) * MDK::NV, ctrl + static_cast<size_t>(w) * MDK::NU,
|
|
71
|
+
fric[w], hand + static_cast<size_t>(w) * h.words, nefc + w,
|
|
72
|
+
pose ? pose + static_cast<size_t>(w) * static_cast<size_t>(pose_stride) : nullptr, lane, nullptr, nullptr);
|
|
73
|
+
}
|
|
74
|
+
#endif
|
|
75
|
+
|
|
76
|
+
// ---- k_post (bindings/soft_l3_test.cu, engine C, L3 v3c-a 59ac6faa) and its dispatch ----
|
|
77
|
+
// order [nw]: the worlds by row count, most first; nbig [1]: how many lead it on the big kernel. order null: identity, all fast.
|
|
78
|
+
__device__ __forceinline__ int fast_world(const int* order, const int* nbig, int nw) {
|
|
79
|
+
const int b = static_cast<int>(blockIdx.x);
|
|
80
|
+
if (!order) return b < nw ? b : -1;
|
|
81
|
+
const int slot = *nbig + b;
|
|
82
|
+
return slot < nw ? order[slot] : -1;
|
|
83
|
+
}
|
|
84
|
+
__device__ __forceinline__ int big_world(const int* order, const int* nbig) {
|
|
85
|
+
const int b = static_cast<int>(blockIdx.x);
|
|
86
|
+
return b < *nbig ? order[b] : -1;
|
|
87
|
+
}
|
|
88
|
+
// v6: the v3e (b8ea278e) fast path at 16 blocks per SM (<= 128 registers, <= 5,376 B of shared memory); the big path stays
|
|
89
|
+
// at (32, 10)
|
|
90
|
+
static_assert(sizeof(l3::Shared<float, NV, NR>) <= 5376, "16 blocks per SM on sm_89");
|
|
91
|
+
__global__ void __launch_bounds__(32, 16) k_post_f32(l3::Args<float> a, const int* order, const int* nbig) {
|
|
92
|
+
__shared__ l3::Shared<float, NV, NR> s;
|
|
93
|
+
const int w = fast_world(order, nbig, a.nw);
|
|
94
|
+
if (w >= 0) l3::world_hand<float, NV, NR, NC, NRH, KD>(a, s, w, threadIdx.x & 31);
|
|
95
|
+
}
|
|
96
|
+
__global__ void __launch_bounds__(32, 10) k_post_big_f32(l3::Args<float> a, const int* order, const int* nbig) {
|
|
97
|
+
__shared__ l3::Shared<float, NV, NRH> s;
|
|
98
|
+
const int w = big_world(order, nbig);
|
|
99
|
+
if (w >= 0) l3::world_hand<float, NV, NRH, NC, NRH, KD>(a, s, w, threadIdx.x & 31);
|
|
100
|
+
}
|
|
101
|
+
__global__ void k_post_f64(l3::Args<double> a, const int* order, const int* nbig) { // the correctness build: no register cap
|
|
102
|
+
__shared__ l3::Shared<double, NV, NR> s;
|
|
103
|
+
const int w = fast_world(order, nbig, a.nw);
|
|
104
|
+
if (w >= 0) l3::world_hand<double, NV, NR, NC, NRH, KD>(a, s, w, threadIdx.x & 31);
|
|
105
|
+
}
|
|
106
|
+
__global__ void k_post_big_f64(l3::Args<double> a, const int* order, const int* nbig) {
|
|
107
|
+
__shared__ l3::Shared<double, NV, NRH> s;
|
|
108
|
+
const int w = big_world(order, nbig);
|
|
109
|
+
if (w >= 0) l3::world_hand<double, NV, NRH, NC, NRH, KD>(a, s, w, threadIdx.x & 31);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// the row-count order: bins d = NRH - min(nefc, NRH) (most rows first), a stable counting sort (ties in world order), one block
|
|
113
|
+
// of 1024 threads. The counts use shared integer atomics (order-independent sums); the positions are computed without
|
|
114
|
+
// atomics (per-warp match + per-warp bin counts), so the order is deterministic. nbig = the worlds with nefc > thr (thr = NR
|
|
115
|
+
// in production; -1 puts every world on the big kernel, the big path's positive control).
|
|
116
|
+
constexpr int kOrdBins = NRH + 1;
|
|
117
|
+
__device__ __forceinline__ int ord_bin(int ne) { return NRH - min(max(ne, 0), NRH); }
|
|
118
|
+
// v15 (arm, parts 16384): k_order_it's key. The worlds over thr rows keep their bins NRH - nefc (in [0, NRH - thr), first: the big
|
|
119
|
+
// kernel's, nbig unchanged); the rest are binned by their work estimate rows x max(the previous solve's iterations, 1), quantized
|
|
120
|
+
// by 10 into [NRH - thr, NRH] (most work first). Valid for 0 <= thr with thr x 10 covering rows x the iteration cap.
|
|
121
|
+
__device__ __forceinline__ int ord_bin_it(int ne, int it, int thr) {
|
|
122
|
+
if (ne > thr) return NRH - min(ne, NRH);
|
|
123
|
+
const int q = min(max(ne, 0) * max(it, 1), thr * 10) / 10;
|
|
124
|
+
return (NRH - thr) + (thr - q);
|
|
125
|
+
}
|
|
126
|
+
template <bool IterKey>
|
|
127
|
+
__device__ __forceinline__ int ord_bin_of(const int* __restrict__ nefc, const int* __restrict__ niter, int thr, int w) {
|
|
128
|
+
if constexpr (IterKey) return ord_bin_it(nefc[w], niter[w], thr);
|
|
129
|
+
else return ord_bin(nefc[w]);
|
|
130
|
+
}
|
|
131
|
+
template <bool IterKey>
|
|
132
|
+
__device__ __forceinline__ void order_body(int nw, const int* __restrict__ nefc, const int* __restrict__ niter, int thr, int* order,
|
|
133
|
+
int* nbig) {
|
|
134
|
+
__shared__ int start[kOrdBins];
|
|
135
|
+
__shared__ int cnt[32][kOrdBins];
|
|
136
|
+
const int tid = static_cast<int>(threadIdx.x), lane = tid & 31, warp = tid >> 5;
|
|
137
|
+
for (int i = tid; i < kOrdBins; i += 1024) start[i] = 0;
|
|
138
|
+
__syncthreads();
|
|
139
|
+
for (int w = tid; w < nw; w += 1024) atomicAdd(&start[ord_bin_of<IterKey>(nefc, niter, thr, w)], 1);
|
|
140
|
+
__syncthreads();
|
|
141
|
+
if (warp == 0) { // exclusive scan of the bins, one warp, PER contiguous bins per lane
|
|
142
|
+
constexpr int PER = (kOrdBins + 31) / 32;
|
|
143
|
+
int loc[PER], s = 0;
|
|
144
|
+
#pragma unroll
|
|
145
|
+
for (int k = 0; k < PER; ++k) { const int i = lane * PER + k; loc[k] = i < kOrdBins ? start[i] : 0; s += loc[k]; }
|
|
146
|
+
int inc = s;
|
|
147
|
+
#pragma unroll
|
|
148
|
+
for (int o = 1; o < 32; o <<= 1) { const int y = __shfl_up_sync(0xffffffffu, inc, o); if (lane >= o) inc += y; }
|
|
149
|
+
int run = inc - s;
|
|
150
|
+
#pragma unroll
|
|
151
|
+
for (int k = 0; k < PER; ++k) { const int i = lane * PER + k; if (i < kOrdBins) start[i] = run; run += loc[k]; }
|
|
152
|
+
}
|
|
153
|
+
__syncthreads();
|
|
154
|
+
if (tid == 0) { // nefc > thr <=> d < NRH - thr
|
|
155
|
+
const int dcut = min(max(NRH - thr, 0), kOrdBins);
|
|
156
|
+
*nbig = dcut < kOrdBins ? start[dcut] : nw;
|
|
157
|
+
}
|
|
158
|
+
for (int c0 = 0; c0 < nw; c0 += 1024) {
|
|
159
|
+
for (int i = tid; i < 32 * kOrdBins; i += 1024) (&cnt[0][0])[i] = 0;
|
|
160
|
+
__syncthreads();
|
|
161
|
+
const int w = c0 + tid;
|
|
162
|
+
const bool valid = w < nw;
|
|
163
|
+
const int d = valid ? ord_bin_of<IterKey>(nefc, niter, thr, w) : -1;
|
|
164
|
+
const unsigned peers = __match_any_sync(0xffffffffu, d);
|
|
165
|
+
const int rank = __popc(peers & ((1u << lane) - 1u));
|
|
166
|
+
if (valid && rank == 0) cnt[warp][d] = __popc(peers);
|
|
167
|
+
__syncthreads();
|
|
168
|
+
if (valid) {
|
|
169
|
+
int pos = start[d] + rank;
|
|
170
|
+
for (int v = 0; v < warp; ++v) pos += cnt[v][d];
|
|
171
|
+
order[pos] = w;
|
|
172
|
+
}
|
|
173
|
+
__syncthreads();
|
|
174
|
+
for (int i = tid; i < kOrdBins; i += 1024) {
|
|
175
|
+
int s = 0;
|
|
176
|
+
for (int v = 0; v < 32; ++v) s += cnt[v][i];
|
|
177
|
+
start[i] += s;
|
|
178
|
+
}
|
|
179
|
+
__syncthreads();
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
__global__ void __launch_bounds__(1024) k_order(int nw, const int* __restrict__ nefc, int thr, int* order, int* nbig) {
|
|
183
|
+
order_body<false>(nw, nefc, nullptr, thr, order, nbig);
|
|
184
|
+
}
|
|
185
|
+
// v15 arm: the order by the work estimate (ord_bin_it); niter [nw] = the previous solve's iterations per world; 0 <= thr
|
|
186
|
+
__global__ void __launch_bounds__(1024) k_order_it(int nw, const int* __restrict__ nefc, const int* __restrict__ niter, int thr, int* order,
|
|
187
|
+
int* nbig) {
|
|
188
|
+
order_body<true>(nw, nefc, niter, thr, order, nbig);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
// ---- per world after k_post: the flag word and the stats row ----
|
|
192
|
+
constexpr uint32_t kFlagHandOverflow = 1u << 8; // k_pre's hand counts[3] (a capacity exceeded in L2)
|
|
193
|
+
template <class T>
|
|
194
|
+
__global__ void k_substep_tail(int nw, const T* hand, const int* niter, const int* kflags, uint32_t* flags, int* stats, int s, int nsub) {
|
|
195
|
+
const int w = blockIdx.x * blockDim.x + threadIdx.x;
|
|
196
|
+
if (w >= nw) return;
|
|
197
|
+
const T* rec = hand + static_cast<size_t>(w) * HL.words;
|
|
198
|
+
const uint32_t ncon = tape_get_u(rec, HL.counts), nefc = tape_get_u(rec, HL.counts + 1), hov = tape_get_u(rec, HL.counts + 3);
|
|
199
|
+
const int kf = kflags[w];
|
|
200
|
+
flags[w] = flags[w] | static_cast<uint32_t>(kf & (l3::kFlagOverflow | l3::kFlagCap | l3::kFlagRankLoss | l3::kFlagHandOrder)) |
|
|
201
|
+
(hov ? kFlagHandOverflow : 0u);
|
|
202
|
+
int* st = stats + (static_cast<size_t>(w) * nsub + s) * kStatW;
|
|
203
|
+
st[0] = static_cast<int>(ncon); st[1] = static_cast<int>(nefc); st[2] = niter[w]; st[3] = (kf & l3::kFlagWarm) ? 1 : 0;
|
|
204
|
+
st[4] = 0; st[5] = 0;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// ---- the tracked bodies' frames and world velocities at (q, v) ----
|
|
208
|
+
template <class S, class Tab>
|
|
209
|
+
__device__ void frames_world(const Tab& B, const S* q, const S* v, S (*slot)[16], int nbt, const int* bodies, S* xpos, S* xquat,
|
|
210
|
+
S* xvel, S* xangvel) {
|
|
211
|
+
using namespace js::soft::adj;
|
|
212
|
+
const int nb = B.nb();
|
|
213
|
+
S R[9], r[3], a[3];
|
|
214
|
+
ADJ_LANES(lane) {
|
|
215
|
+
if (lane == 0) { slot[0][0] = S(1); for (int k = 1; k < 16; ++k) slot[0][k] = S(0); }
|
|
216
|
+
}
|
|
217
|
+
for (int d = 1; d <= B.maxdepth(); ++d) {
|
|
218
|
+
ADJ_LANES(lane) {
|
|
219
|
+
if (lane < nb && B.depth(lane) == d) {
|
|
220
|
+
const int b = lane, jt = B.jnt(b);
|
|
221
|
+
const S* ps = slot[B.parent(b)];
|
|
222
|
+
S xq[4], xp[3], w[3], vo[3];
|
|
223
|
+
body_kin(B, b, q, ps, ps + 4, xq, xp, R, r, a);
|
|
224
|
+
if (jt == kJntFree) {
|
|
225
|
+
const int dd = B.dadr(b);
|
|
226
|
+
const S wbody[3] = {v[dd + 3], v[dd + 4], v[dd + 5]};
|
|
227
|
+
mat_vec(R, wbody, w);
|
|
228
|
+
for (int k = 0; k < 3; ++k) vo[k] = v[dd + k];
|
|
229
|
+
} else {
|
|
230
|
+
const S *wp = ps + 7, *vop = ps + 10;
|
|
231
|
+
S t[3];
|
|
232
|
+
cross3(wp, r, t);
|
|
233
|
+
for (int k = 0; k < 3; ++k) vo[k] = vop[k] + t[k];
|
|
234
|
+
const S vb = jt == kJntHinge ? v[B.dadr(b)] : S(0);
|
|
235
|
+
for (int k = 0; k < 3; ++k) w[k] = wp[k] + a[k] * vb;
|
|
236
|
+
}
|
|
237
|
+
S* s = slot[b];
|
|
238
|
+
for (int k = 0; k < 4; ++k) s[k] = xq[k];
|
|
239
|
+
for (int k = 0; k < 3; ++k) { s[4 + k] = xp[k]; s[7 + k] = w[k]; s[10 + k] = vo[k]; }
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
ADJ_LANES(lane) {
|
|
244
|
+
for (int i = lane; i < nbt; i += 32) {
|
|
245
|
+
const S* s = slot[bodies[i]];
|
|
246
|
+
for (int k = 0; k < 3; ++k) { xpos[3 * i + k] = s[4 + k]; xvel[3 * i + k] = s[10 + k]; xangvel[3 * i + k] = s[7 + k]; }
|
|
247
|
+
for (int k = 0; k < 4; ++k) xquat[4 * i + k] = s[k];
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
template <class T>
|
|
253
|
+
__global__ void __launch_bounds__(32, 12) k_frames(const T* vals, int nw, const T* qpos, const T* qvel, int nbt, const int* bodies,
|
|
254
|
+
T* xpos, T* xquat, T* xvel, T* xangvel) {
|
|
255
|
+
__shared__ __align__(16) T slot[MDK::NB][16];
|
|
256
|
+
const int w = blockIdx.x;
|
|
257
|
+
if (w >= nw) return;
|
|
258
|
+
frames_world<T>(js::soft::adj::GenTab<T>{vals}, qpos + static_cast<size_t>(w) * MDK::NQ, qvel + static_cast<size_t>(w) * MDK::NV, slot,
|
|
259
|
+
nbt, bodies, xpos + static_cast<size_t>(w) * nbt * 3, xquat + static_cast<size_t>(w) * nbt * 4,
|
|
260
|
+
xvel + static_cast<size_t>(w) * nbt * 3, xangvel + static_cast<size_t>(w) * nbt * 3);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
} // namespace js::soft::eng
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
// D16: the explicitly rounded forward kinematics of one body, shared by kernel P (L1) and the adjoint's replay
|
|
3
|
+
// (d5's adj_fk_pullback): both call THESE functions, so the replay reproduces the forward's poses bit for bit. Every
|
|
4
|
+
// operation is an IEEE intrinsic that is never contracted (__fmul_rn / __dmul_rn, __fadd_rn / __dadd_rn, __fmaf_rn / __fma_rn),
|
|
5
|
+
// so the bits do not depend on the calling kernel, its register pressure or -fmad; sincos and the IEEE sqrt / division are
|
|
6
|
+
// the architecture's and deterministic on one GPU (NablaEngine source.py's note on its _rn forms, which these follow).
|
|
7
|
+
// Templated on the scalar (float: production; double: the f64 build that gates correctness against core/soft/kin.h).
|
|
8
|
+
// Model-independent.
|
|
9
|
+
//
|
|
10
|
+
// Portions translated from NablaEngine (https://github.com/OamIcs/NablaEngine at 70d0c8c,
|
|
11
|
+
// src/nablaengine/g1_engine/source.py): the RMUL / RADD / RSUB / RFMA / RFMS forms and the expressions of qmul_rn and qrot_rn,
|
|
12
|
+
// and the hinge rotation split off the pose chain (its fwd_hinge_rot). Copyright 2026 The NablaEngine Authors, Licensed under
|
|
13
|
+
// the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0).
|
|
14
|
+
// The frame update and the normalization restate MuJoCo 3.16.0's mj_kinematics and mju_normalize4. Copyright 2021 DeepMind
|
|
15
|
+
// Technologies Limited, Licensed under the Apache License, Version 2.0.
|
|
16
|
+
// Changes by this project: templated on the scalar (float and double overloads), rn_rsqrt, and the G1 frame update as
|
|
17
|
+
// fk_free_rn / fk_child_rn / fk_child_ha_rn / hinge_quat_rn. See core/soft/NOTICE.md.
|
|
18
|
+
|
|
19
|
+
namespace d16 {
|
|
20
|
+
|
|
21
|
+
__device__ __forceinline__ float rn_mul(float a, float b) { return __fmul_rn(a, b); }
|
|
22
|
+
__device__ __forceinline__ double rn_mul(double a, double b) { return __dmul_rn(a, b); }
|
|
23
|
+
__device__ __forceinline__ float rn_add(float a, float b) { return __fadd_rn(a, b); }
|
|
24
|
+
__device__ __forceinline__ double rn_add(double a, double b) { return __dadd_rn(a, b); }
|
|
25
|
+
__device__ __forceinline__ float rn_sub(float a, float b) { return __fsub_rn(a, b); }
|
|
26
|
+
__device__ __forceinline__ double rn_sub(double a, double b) { return __dsub_rn(a, b); }
|
|
27
|
+
__device__ __forceinline__ float rn_fma(float a, float b, float c) { return __fmaf_rn(a, b, c); }
|
|
28
|
+
__device__ __forceinline__ double rn_fma(double a, double b, double c) { return __fma_rn(a, b, c); }
|
|
29
|
+
__device__ __forceinline__ float rn_sqrt(float a) { return __fsqrt_rn(a); }
|
|
30
|
+
__device__ __forceinline__ double rn_sqrt(double a) { return __dsqrt_rn(a); }
|
|
31
|
+
__device__ __forceinline__ float rn_div(float a, float b) { return __fdiv_rn(a, b); }
|
|
32
|
+
__device__ __forceinline__ double rn_div(double a, double b) { return __ddiv_rn(a, b); }
|
|
33
|
+
// 1 / sqrt(x) for x > 0. f32: the hardware rsqrt (MUFU, deterministic on one GPU) and one Newton step with explicit
|
|
34
|
+
// roundings, about full float precision (NablaEngine's pivot form); f64: IEEE sqrt and division (the f64 build gates
|
|
35
|
+
// correctness, not speed)
|
|
36
|
+
__device__ __forceinline__ float rn_rsqrt(float x) {
|
|
37
|
+
const float r = rsqrtf(x);
|
|
38
|
+
return __fmul_rn(r, __fmaf_rn(-__fmul_rn(__fmul_rn(0.5f, x), r), r, 1.5f));
|
|
39
|
+
}
|
|
40
|
+
__device__ __forceinline__ double rn_rsqrt(double x) { return __ddiv_rn(1.0, __dsqrt_rn(x)); }
|
|
41
|
+
__device__ __forceinline__ void rn_sincos(float x, float* s, float* c) { sincosf(x, s, c); }
|
|
42
|
+
__device__ __forceinline__ void rn_sincos(double x, double* s, double* c) { sincos(x, s, c); }
|
|
43
|
+
|
|
44
|
+
#define RMUL(a, b) ::d16::rn_mul((a), (b))
|
|
45
|
+
#define RADD(a, b) ::d16::rn_add((a), (b))
|
|
46
|
+
#define RSUB(a, b) ::d16::rn_sub((a), (b))
|
|
47
|
+
#define RFMA(a, b, c) ::d16::rn_fma((a), (b), (c)) // a b + c, one rounding
|
|
48
|
+
#define RFMS(a, b, c) ::d16::rn_fma(-(a), (b), (c)) // c - a b, one rounding
|
|
49
|
+
|
|
50
|
+
template <class T> __device__ __forceinline__ void qmul_rn(const T* a, const T* b, T* o) { // mju_mulQuat
|
|
51
|
+
const T w = RFMS(a[3], b[3], RFMS(a[2], b[2], RFMA(a[0], b[0], -RMUL(a[1], b[1]))));
|
|
52
|
+
const T x = RFMS(a[3], b[2], RFMA(a[2], b[3], RFMA(a[0], b[1], RMUL(a[1], b[0]))));
|
|
53
|
+
const T y = RFMA(a[3], b[1], RFMA(a[2], b[0], RFMA(a[0], b[2], -RMUL(a[1], b[3]))));
|
|
54
|
+
const T z = RFMA(a[3], b[0], RFMS(a[2], b[1], RFMA(a[0], b[3], RMUL(a[1], b[2]))));
|
|
55
|
+
o[0] = w; o[1] = x; o[2] = y; o[3] = z;
|
|
56
|
+
}
|
|
57
|
+
template <class T> __device__ __forceinline__ void qrot_rn(const T* q, const T* v, T* o) { // q v q^-1
|
|
58
|
+
const T tx = RMUL(T(2), RFMA(q[2], v[2], -RMUL(q[3], v[1])));
|
|
59
|
+
const T ty = RMUL(T(2), RFMA(q[3], v[0], -RMUL(q[1], v[2])));
|
|
60
|
+
const T tz = RMUL(T(2), RFMA(q[1], v[1], -RMUL(q[2], v[0])));
|
|
61
|
+
o[0] = RFMS(q[3], ty, RFMA(q[2], tz, RFMA(q[0], tx, v[0])));
|
|
62
|
+
o[1] = RFMS(q[1], tz, RFMA(q[3], tx, RFMA(q[0], ty, v[1])));
|
|
63
|
+
o[2] = RFMS(q[2], tx, RFMA(q[1], ty, RFMA(q[0], tz, v[2])));
|
|
64
|
+
}
|
|
65
|
+
template <class T> __device__ __forceinline__ void normalize4_rn(T* q) { // mju_normalize4 (|n - 1| > MINVAL whenever n != 1)
|
|
66
|
+
const T n2 = RFMA(q[3], q[3], RFMA(q[2], q[2], RFMA(q[0], q[0], RMUL(q[1], q[1]))));
|
|
67
|
+
if (n2 == T(1)) return;
|
|
68
|
+
const T inv = rn_rsqrt(n2);
|
|
69
|
+
for (int k = 0; k < 4; ++k) q[k] = RMUL(q[k], inv);
|
|
70
|
+
}
|
|
71
|
+
// the free root: frame from qpos[0..6] (position, then the quaternion wxyz, normalized as mju_normalize4)
|
|
72
|
+
template <class T> __device__ __forceinline__ void fk_free_rn(const T* qpos7, T* X, T* Q) {
|
|
73
|
+
for (int k = 0; k < 3; ++k) X[k] = qpos7[k];
|
|
74
|
+
for (int k = 0; k < 4; ++k) Q[k] = qpos7[3 + k];
|
|
75
|
+
normalize4_rn(Q);
|
|
76
|
+
}
|
|
77
|
+
// a hinge's local rotation: axisangle(ax, ang) as the quaternion (cos(ang / 2), sin(ang / 2) ax)
|
|
78
|
+
template <class T> __device__ __forceinline__ void hinge_quat_rn(T ang, const T* ax, T* ha) {
|
|
79
|
+
T sh, ch;
|
|
80
|
+
rn_sincos(RMUL(T(0.5), ang), &sh, &ch);
|
|
81
|
+
ha[0] = ch; ha[1] = RMUL(sh, ax[0]); ha[2] = RMUL(sh, ax[1]); ha[3] = RMUL(sh, ax[2]);
|
|
82
|
+
}
|
|
83
|
+
// a child of a body with pose (Xp, Qp), its hinge quaternion ha precomputed (hinge_quat_rn; ignored when hinge is false):
|
|
84
|
+
// X = Xp + Qp pb; Q = normalize(Qp qb [ha if hinge]). Kernel P computes ha before its level loop, off the pose chain.
|
|
85
|
+
template <class T>
|
|
86
|
+
__device__ __forceinline__ void fk_child_ha_rn(const T* Xp, const T* Qp, const T* pb, const T* qb, bool hinge, const T* ha,
|
|
87
|
+
T* X, T* Q) {
|
|
88
|
+
T t[3], q0[4];
|
|
89
|
+
qrot_rn(Qp, pb, t);
|
|
90
|
+
for (int k = 0; k < 3; ++k) X[k] = RADD(Xp[k], t[k]);
|
|
91
|
+
qmul_rn(Qp, qb, q0);
|
|
92
|
+
if (hinge) {
|
|
93
|
+
qmul_rn(q0, ha, Q);
|
|
94
|
+
} else {
|
|
95
|
+
for (int k = 0; k < 4; ++k) Q[k] = q0[k];
|
|
96
|
+
}
|
|
97
|
+
normalize4_rn(Q);
|
|
98
|
+
}
|
|
99
|
+
// a child of a body with pose (Xp, Qp): X = Xp + Qp pb; Q = normalize(Qp qb [axisangle(ax, ang) if hinge]); a hinge sits at
|
|
100
|
+
// the body origin (mj_kinematics with jnt_pos 0); a body without a joint takes hinge = false. The same operations as
|
|
101
|
+
// hinge_quat_rn then fk_child_ha_rn (bit-identical: d5's replay calls this form)
|
|
102
|
+
template <class T>
|
|
103
|
+
__device__ __forceinline__ void fk_child_rn(const T* Xp, const T* Qp, const T* pb, const T* qb, bool hinge, T ang, const T* ax,
|
|
104
|
+
T* X, T* Q) {
|
|
105
|
+
T ha[4] = {T(1), T(0), T(0), T(0)};
|
|
106
|
+
if (hinge) hinge_quat_rn(ang, ax, ha);
|
|
107
|
+
fk_child_ha_rn(Xp, Qp, pb, qb, hinge, ha, X, Q);
|
|
108
|
+
}
|
|
109
|
+
} // namespace d16
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
// Generated by tools/d16_bodies/gen_body.py from x14_soft_019e20820f86_mmfloor.cuh and the case with case.bin md5 8b8426c6. Do not edit.
|
|
3
|
+
// model: fullbody_contact_spinecoupled_armless_ball_lspine_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc_axfixlegs01.dnmodel
|
|
4
|
+
#ifndef D16_NV_LE32
|
|
5
|
+
#define D16_NV_LE32
|
|
6
|
+
#endif
|
|
7
|
+
#include "soft/gpu/generated/x14_soft_019e20820f86_mmfloor.cuh"
|
|
8
|
+
#define D16_X14_NS d16::x14_soft_019e20820f86_mmfloor
|
|
9
|
+
#define D16_BODY_NQ 26
|
|
10
|
+
#define D16_BODY_NV 23
|
|
11
|
+
#define D16_BODY_NM 290
|
|
12
|
+
#define D16_BODY_NS 8
|
|
13
|
+
#define D16_BODY_MKD 4
|
|
14
|
+
#define D16_BODY_NSLOT 68
|
|
15
|
+
#define D16_BODY_NPOSE 30
|
|
16
|
+
#define D16_BODY_NBALL 2
|
|
17
|
+
#define D16_BODY_BQ0 10
|
|
18
|
+
#define D16_BODY_BQ1 18
|
|
19
|
+
#define D16_BODY_BD0 9
|
|
20
|
+
#define D16_BODY_BD1 16
|
|
21
|
+
#define D16_BODY_NPR 112
|
|
22
|
+
#define D16_BODY_NTRI 276
|
|
23
|
+
#define D16_BODY_NTRI4 276
|
|
24
|
+
#define D16_BODY_TAPE_WORDS 992
|
|
25
|
+
#define D16_BODY_TAPE_LH 160
|
|
26
|
+
#define D16_BODY_TAPE_POSE 448
|
|
27
|
+
#define D16_BODY_TAPE_MUS 672
|
|
28
|
+
#define D16_BODY_CTL_WORDS 608
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
// Generated by tools/d16_bodies/gen_body.py from x14_soft_62f77a4bb16b_mmfloor.cuh and the case with case.bin md5 6225913f. Do not edit.
|
|
3
|
+
// model: fullbody_contact_spinecoupled_ball_lspine_girdle_osimeq_stickspin_wrapvia_mtp60k25_trunkfix_calf2_pe_toepair_flsrc_n1.dnmodel
|
|
4
|
+
#include "soft/gpu/generated/x14_soft_62f77a4bb16b_mmfloor.cuh"
|
|
5
|
+
#define D16_X14_NS d16::x14_soft_62f77a4bb16b_mmfloor
|
|
6
|
+
#define D16_BODY_NQ 80
|
|
7
|
+
#define D16_BODY_NV 77
|
|
8
|
+
#define D16_BODY_NM 416
|
|
9
|
+
#define D16_BODY_NS 12
|
|
10
|
+
#define D16_BODY_MKD 8
|
|
11
|
+
#define D16_BODY_NSLOT 264
|
|
12
|
+
#define D16_BODY_NPOSE 106
|
|
13
|
+
#define D16_BODY_NBALL 2
|
|
14
|
+
#define D16_BODY_BQ0 64
|
|
15
|
+
#define D16_BODY_BQ1 72
|
|
16
|
+
#define D16_BODY_BD0 63
|
|
17
|
+
#define D16_BODY_BD1 70
|
|
18
|
+
#define D16_BODY_NPR 155
|
|
19
|
+
#define D16_BODY_NTRI 3003
|
|
20
|
+
#define D16_BODY_NTRI4 3004
|
|
21
|
+
#define D16_BODY_TAPE_WORDS 3040
|
|
22
|
+
#define D16_BODY_TAPE_LH 384
|
|
23
|
+
#define D16_BODY_TAPE_POSE 1856
|
|
24
|
+
#define D16_BODY_TAPE_MUS 2624
|
|
25
|
+
#define D16_BODY_CTL_WORDS 832
|
|
26
|
+
#if defined(D16_KMUS_INCLUDED)
|
|
27
|
+
#error "this body header comes before k_mus.cuh (its body macros select k_mus.cuh's code)"
|
|
28
|
+
#endif
|
|
29
|
+
#define D16_BODY_ROW_CF 1
|
|
30
|
+
#if !defined(D16_NV_GT64)
|
|
31
|
+
#error "a muscle-split body is a phase B body: build it with -DD16_NV_GT64"
|
|
32
|
+
#endif
|
|
33
|
+
#define D16_BODY_MUS_SPLIT 1
|
|
34
|
+
#define D16_BODY_MC_FILL 1
|
|
35
|
+
#define D16_BODY_MUS_W2 1
|
|
36
|
+
#define D16_BODY_MC0_NM 384
|
|
37
|
+
#define D16_BODY_MC0_NS 10
|
|
38
|
+
#define D16_BODY_MC0_KD 6
|
|
39
|
+
#define D16_BODY_MC0_NSLOT 204
|
|
40
|
+
#define D16_BODY_MC1_NM 32
|
|
41
|
+
#define D16_BODY_MC1_NS 12
|
|
42
|
+
#define D16_BODY_MC1_KD 8
|
|
43
|
+
#define D16_BODY_MC1_NSLOT 88
|
|
44
|
+
#if !defined(D16_NV_GT64)
|
|
45
|
+
#error "the fused level sweep is a phase B body's UP: build it with -DD16_NV_GT64"
|
|
46
|
+
#endif
|
|
47
|
+
#define D16_BODY_UP_SWEEP 1
|
|
48
|
+
namespace d16::x14_soft_62f77a4bb16b_mmfloor {
|
|
49
|
+
// U2 (up/PREREG_U2.md): body b's children in body order, 4 signed bytes to a word, -1 bytes past the last (scan14.h's t14_dj reads them)
|
|
50
|
+
constexpr int kKidB14[106][2] = {{-1, -1}, {-10133502, -1}, {-253, -1}, {-252, -1}, {-63483, -1}, {-250, -1}, {-249, -1}, {-1, -1}, {-247, -1}, {-246, -1}, {-245, -1}, {-244, -1}, {-243, -1}, {-242, -1}, {-241, -1}, {-240, -1}, {-239, -1}, {-238, -1}, {-237, -1}, {-50668, -1}, {-235, -1}, {-234, -1}, {-233, -1}, {-232, -1}, {-231, -1}, {-230, -1}, {-229, -1}, {-228, -1}, {-227, -1}, {-226, -1}, {-225, -1}, {-224, -1}, {-223, -1}, {-222, -1}, {-221, -1}, {-220, -1}, {-219, -1}, {841886246, -202}, {-217, -1}, {-216, -1}, {-215, -1}, {-1, -1}, {-213, -1}, {-212, -1}, {-211, -1}, {-1, -1}, {-209, -1}, {-208, -1}, {-207, -1}, {-1, -1}, {-205, -1}, {-204, -1}, {-203, -1}, {-1, -1}, {-201, -1}, {-200, -1}, {-199, -1}, {-1, -1}, {-197, -1}, {-196, -1}, {-195, -1}, {-194, -1}, {-193, -1}, {-192, -1}, {-191, -1}, {-190, -1}, {-189, -1}, {-188, -1}, {-187, -1}, {-186, -1}, {-185, -1}, {-184, -1}, {-183, -1}, {-182, -1}, {-181, -1}, {1481920588, -164}, {-179, -1}, {-178, -1}, {-177, -1}, {-1, -1}, {-175, -1}, {-174, -1}, {-173, -1}, {-1, -1}, {-171, -1}, {-170, -1}, {-169, -1}, {-1, -1}, {-167, -1}, {-166, -1}, {-165, -1}, {-1, -1}, {-163, -1}, {-162, -1}, {-161, -1}, {-1, -1}, {-159, -1}, {-158, -1}, {-157, -1}, {-156, -1}, {-1, -1}, {-154, -1}, {-153, -1}, {-152, -1}, {-151, -1}, {-1, -1}};
|
|
51
|
+
__device__ const int gKidB14[106][2] = {{-1, -1}, {-10133502, -1}, {-253, -1}, {-252, -1}, {-63483, -1}, {-250, -1}, {-249, -1}, {-1, -1}, {-247, -1}, {-246, -1}, {-245, -1}, {-244, -1}, {-243, -1}, {-242, -1}, {-241, -1}, {-240, -1}, {-239, -1}, {-238, -1}, {-237, -1}, {-50668, -1}, {-235, -1}, {-234, -1}, {-233, -1}, {-232, -1}, {-231, -1}, {-230, -1}, {-229, -1}, {-228, -1}, {-227, -1}, {-226, -1}, {-225, -1}, {-224, -1}, {-223, -1}, {-222, -1}, {-221, -1}, {-220, -1}, {-219, -1}, {841886246, -202}, {-217, -1}, {-216, -1}, {-215, -1}, {-1, -1}, {-213, -1}, {-212, -1}, {-211, -1}, {-1, -1}, {-209, -1}, {-208, -1}, {-207, -1}, {-1, -1}, {-205, -1}, {-204, -1}, {-203, -1}, {-1, -1}, {-201, -1}, {-200, -1}, {-199, -1}, {-1, -1}, {-197, -1}, {-196, -1}, {-195, -1}, {-194, -1}, {-193, -1}, {-192, -1}, {-191, -1}, {-190, -1}, {-189, -1}, {-188, -1}, {-187, -1}, {-186, -1}, {-185, -1}, {-184, -1}, {-183, -1}, {-182, -1}, {-181, -1}, {1481920588, -164}, {-179, -1}, {-178, -1}, {-177, -1}, {-1, -1}, {-175, -1}, {-174, -1}, {-173, -1}, {-1, -1}, {-171, -1}, {-170, -1}, {-169, -1}, {-1, -1}, {-167, -1}, {-166, -1}, {-165, -1}, {-1, -1}, {-163, -1}, {-162, -1}, {-161, -1}, {-1, -1}, {-159, -1}, {-158, -1}, {-157, -1}, {-156, -1}, {-1, -1}, {-154, -1}, {-153, -1}, {-152, -1}, {-151, -1}, {-1, -1}};
|
|
52
|
+
}
|