Entity#
Entity 对象是场景中所有需要物理仿真(除了渲染)的事物的抽象。
这包括刚体或可变形物体、液体等,使用不同的物理 solvers(如 MPM、PBD 等)进行仿真。
- RigidEntity(刚体实体)
RigidEntity(刚体实体)RigidEntityRigidEntity.get_jacobian()RigidEntity.inverse_kinematics()RigidEntity.inverse_kinematics_multilink()RigidEntity.plan_path()RigidEntity.get_joint()RigidEntity.get_link()RigidEntity.get_pos()RigidEntity.get_quat()RigidEntity.get_vel()RigidEntity.get_ang()RigidEntity.get_links_pos()RigidEntity.get_links_quat()RigidEntity.get_links_vel()RigidEntity.get_links_ang()RigidEntity.set_pos()RigidEntity.set_quat()RigidEntity.get_verts()RigidEntity.get_AABB()RigidEntity.set_qpos()RigidEntity.set_dofs_kp()RigidEntity.set_dofs_kv()RigidEntity.set_dofs_force_range()RigidEntity.set_dofs_velocity()RigidEntity.set_dofs_position()RigidEntity.control_dofs_force()RigidEntity.control_dofs_velocity()RigidEntity.control_dofs_position()RigidEntity.get_qpos()RigidEntity.get_dofs_control_force()RigidEntity.get_dofs_force()RigidEntity.get_dofs_velocity()RigidEntity.get_dofs_position()RigidEntity.get_dofs_kp()RigidEntity.get_dofs_kv()RigidEntity.get_dofs_force_range()RigidEntity.get_dofs_limit()RigidEntity.zero_all_dofs_velocity()RigidEntity.detect_collision()RigidEntity.get_contacts()RigidEntity.get_links_net_contact_force()RigidEntity.set_friction_ratio()RigidEntity.set_friction()RigidEntity.get_mass()RigidEntity.visualize_contactRigidEntity.init_qposRigidEntity.n_qsRigidEntity.n_linksRigidEntity.n_jointsRigidEntity.n_dofsRigidEntity.n_geomsRigidEntity.n_cellsRigidEntity.n_vertsRigidEntity.n_facesRigidEntity.n_edgesRigidEntity.n_vgeomsRigidEntity.n_vvertsRigidEntity.n_vfacesRigidEntity.geom_startRigidEntity.geom_endRigidEntity.cell_startRigidEntity.cell_endRigidEntity.base_link_idxRigidEntity.link_startRigidEntity.link_endRigidEntity.dof_startRigidEntity.gravity_compensationRigidEntity.dof_endRigidEntity.vert_startRigidEntity.vvert_startRigidEntity.face_startRigidEntity.vface_startRigidEntity.edge_startRigidEntity.q_startRigidEntity.q_endRigidEntity.geomsRigidEntity.vgeomsRigidEntity.linksRigidEntity.jointsRigidEntity.base_linkRigidEntity.base_joint
RigidLink(刚体连杆)RigidLinkRigidLink.get_pos()RigidLink.get_quat()RigidLink.get_vel()RigidLink.get_ang()RigidLink.get_verts()RigidLink.get_vverts()RigidLink.get_AABB()RigidLink.get_vAABB()RigidLink.set_mass()RigidLink.get_mass()RigidLink.set_friction()RigidLink.uidRigidLink.nameRigidLink.entityRigidLink.solverRigidLink.visualize_contactRigidLink.jointRigidLink.idxRigidLink.parent_idxRigidLink.child_idxsRigidLink.idx_localRigidLink.parent_idx_localRigidLink.child_idxs_localRigidLink.is_leafRigidLink.invweightRigidLink.posRigidLink.quatRigidLink.inertial_posRigidLink.inertial_quatRigidLink.inertial_massRigidLink.inertial_iRigidLink.geomsRigidLink.vgeomsRigidLink.n_geomsRigidLink.geom_startRigidLink.geom_endRigidLink.n_vgeomsRigidLink.vgeom_startRigidLink.vgeom_endRigidLink.n_cellsRigidLink.n_vertsRigidLink.n_vvertsRigidLink.n_facesRigidLink.n_vfacesRigidLink.n_edgesRigidLink.is_built
RigidJoint(刚体关节)RigidJointRigidJoint.get_pos()RigidJoint.get_quat()RigidJoint.uidRigidJoint.nameRigidJoint.entityRigidJoint.solverRigidJoint.linkRigidJoint.idxRigidJoint.idx_localRigidJoint.init_qposRigidJoint.n_qsRigidJoint.n_dofsRigidJoint.typeRigidJoint.posRigidJoint.quatRigidJoint.q_startRigidJoint.dof_startRigidJoint.q_endRigidJoint.dof_endRigidJoint.dof_idxRigidJoint.dof_idx_localRigidJoint.q_idxRigidJoint.q_idx_localRigidJoint.dofs_motion_angRigidJoint.dofs_motion_velRigidJoint.dofs_limitRigidJoint.dofs_invweightRigidJoint.dofs_stiffnessRigidJoint.dofs_sol_paramsRigidJoint.dofs_dampingRigidJoint.dofs_armatureRigidJoint.dofs_kpRigidJoint.dofs_kvRigidJoint.dofs_force_rangeRigidJoint.is_built
RigidGeom(刚体几何体)RigidGeomRigidGeom.get_trimesh()RigidGeom.get_sdf_trimesh()RigidGeom.visualize_sdf()RigidGeom.sdf_grad_world()RigidGeom.sdf_grad_mesh()RigidGeom.sdf_grad_sdf()RigidGeom.sdf_world()RigidGeom.sdf_mesh()RigidGeom.sdf_sdf()RigidGeom.set_friction()RigidGeom.get_pos()RigidGeom.get_quat()RigidGeom.get_verts()RigidGeom.get_AABB()RigidGeom.uidRigidGeom.idxRigidGeom.typeRigidGeom.frictionRigidGeom.sol_paramsRigidGeom.dataRigidGeom.metadataRigidGeom.linkRigidGeom.entityRigidGeom.solverRigidGeom.is_convexRigidGeom.meshRigidGeom.needs_coupRigidGeom.coup_softnessRigidGeom.coup_frictionRigidGeom.coup_restitutionRigidGeom.init_posRigidGeom.init_quatRigidGeom.init_vertsRigidGeom.init_facesRigidGeom.init_edgesRigidGeom.init_normalsRigidGeom.init_center_posRigidGeom.uvsRigidGeom.surfaceRigidGeom.gsd_pathRigidGeom.sdf_resRigidGeom.sdf_valRigidGeom.sdf_val_flattenedRigidGeom.sdf_gradRigidGeom.sdf_grad_flattenedRigidGeom.sdf_maxRigidGeom.sdf_cell_sizeRigidGeom.sdf_grad_deltaRigidGeom.sdf_closest_vertRigidGeom.sdf_closest_vert_flattenedRigidGeom.T_mesh_to_sdfRigidGeom.n_cellsRigidGeom.n_vertsRigidGeom.n_facesRigidGeom.n_edgesRigidGeom.cell_startRigidGeom.vert_startRigidGeom.face_startRigidGeom.edge_startRigidGeom.cell_endRigidGeom.vert_endRigidGeom.face_endRigidGeom.edge_endRigidGeom.is_built
RigidVisGeom(刚体可视化几何体)RigidVisGeomRigidVisGeom.get_trimesh()RigidVisGeom.uidRigidVisGeom.idxRigidVisGeom.linkRigidVisGeom.entityRigidVisGeom.vmeshRigidVisGeom.solverRigidVisGeom.metadataRigidVisGeom.init_posRigidVisGeom.init_quatRigidVisGeom.init_vvertsRigidVisGeom.init_vfacesRigidVisGeom.init_vnormalsRigidVisGeom.uvsRigidVisGeom.surfaceRigidVisGeom.n_vvertsRigidVisGeom.n_vfacesRigidVisGeom.vvert_startRigidVisGeom.vface_startRigidVisGeom.vvert_endRigidVisGeom.vface_endRigidVisGeom.is_built
MPMEntity(材料点法实体)MPMEntityMPMEntity.init_tgt_keys()MPMEntity.set_pos()MPMEntity.set_pos_grad()MPMEntity.set_vel()MPMEntity.set_vel_grad()MPMEntity.set_actu()MPMEntity.set_actu_grad()MPMEntity.set_muscle_group()MPMEntity.get_muscle_group()MPMEntity.set_muscle_direction()MPMEntity.set_active()MPMEntity.set_active_arr()MPMEntity.set_actuation()MPMEntity.set_muscle()MPMEntity.clear_grad()MPMEntity.process_input()MPMEntity.process_input_grad()MPMEntity.get_frame()MPMEntity.set_frame_add_grad_pos()MPMEntity.set_frame_add_grad_vel()MPMEntity.set_frame_add_grad_C()MPMEntity.set_frame_add_grad_F()MPMEntity.set_frame_add_grad_Jp()MPMEntity.add_grad_from_state()MPMEntity.get_particles()MPMEntity.get_state()
FEMEntity(有限元法实体)FEMEntityFEMEntity.set_position()FEMEntity.set_velocity()FEMEntity.set_actuation()FEMEntity.set_muscle()FEMEntity.get_state()FEMEntity.deactivate()FEMEntity.activate()FEMEntity.instantiate()FEMEntity.sample()FEMEntity.init_tgt_keys()FEMEntity.init_tgt_vars()FEMEntity.init_ckpt()FEMEntity.save_ckpt()FEMEntity.load_ckpt()FEMEntity.reset_grad()FEMEntity.process_input()FEMEntity.process_input_grad()FEMEntity.set_pos()FEMEntity.set_pos_grad()FEMEntity.set_vel()FEMEntity.set_vel_grad()FEMEntity.set_actu()FEMEntity.set_actu_grad()FEMEntity.set_active()FEMEntity.set_muscle_group()FEMEntity.set_muscle_direction()FEMEntity.get_el2v()FEMEntity.get_frame()FEMEntity.clear_grad()FEMEntity.n_verticesFEMEntity.n_elementsFEMEntity.n_surfacesFEMEntity.v_startFEMEntity.el_startFEMEntity.s_startFEMEntity.morphFEMEntity.materialFEMEntity.surfaceFEMEntity.n_surface_verticesFEMEntity.tet_cfg
- PBDEntity(基于位置的动力学实体)
SPHEntity(光滑粒子流体动力学实体)DroneEntity(无人机实体)HybridEntity(混合实体)HybridEntityHybridEntity.get_dofs_position()HybridEntity.get_dofs_velocity()HybridEntity.get_dofs_force()HybridEntity.get_dofs_control_force()HybridEntity.set_dofs_velocity()HybridEntity.set_dofs_force()HybridEntity.control_dofs_position()HybridEntity.control_dofs_velocity()HybridEntity.control_dofs_force()HybridEntity.build()HybridEntity.update_soft_part()HybridEntity.n_dofsHybridEntity.fixedHybridEntity.part_rigidHybridEntity.part_softHybridEntity.solver_rigidHybridEntity.solver_soft
Emitter(发射器)