newton-physics/newton

GitHub: newton-physics/newton

Newton 是基于 NVIDIA Warp 构建的 GPU 加速物理仿真引擎,专为机器人学家和仿真研究人员提供高性能、可微分的机器人与多物理场仿真能力。

Stars: 5284 | Forks: 620

[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) ![GitHub 提交活动](https://img.shields.io/github/commit-activity/m/newton-physics/newton/main) [![codecov](https://codecov.io/gh/newton-physics/newton/graph/badge.svg?token=V6ZXNPAWVG)](https://codecov.io/gh/newton-physics/newton) [![Push - AWS GPU](https://static.pigsec.cn/wp-content/uploads/repos/cas/1e/1e30c2daff85dfd0db6901d8e30ad591e96b124590d0576d41888f1997d0e993.svg)](https://github.com/newton-physics/newton/actions/workflows/push_aws_gpu.yml) # Newton Newton 是一个基于 [NVIDIA Warp](https://github.com/NVIDIA/warp) 构建的 GPU 加速物理仿真引擎,专为机器人学家和仿真研究人员设计。 Newton 扩展并泛化了 Warp 的([已弃用](`,而不是下文提到的 `python -m newton.examples ` 命令。

Basic Examples

Pendulum URDF Viewer
python -m newton.examples basic_pendulum python -m newton.examples basic_urdf python -m newton.examples basic_viewer
Shapes Joints Conveyor
python -m newton.examples basic_shapes python -m newton.examples basic_joints python -m newton.examples basic_conveyor
Heightfield Recording Replay Viewer
python -m newton.examples basic_heightfield python -m newton.examples recording python -m newton.examples replay_viewer
Plotting Dzhanibekov
python -m newton.examples basic_plotting python -m newton.examples basic_dzhanibekov

Robot Examples

Cartpole G1 H1
python -m newton.examples robot_cartpole python -m newton.examples robot_g1 python -m newton.examples robot_h1
Anymal D Anymal C Walk Policy
python -m newton.examples robot_anymal_d python -m newton.examples robot_anymal_c_walk python -m newton.examples robot_policy
UR10 Panda Hydro Allegro Hand
python -m newton.examples robot_ur10 python -m newton.examples robot_panda_hydro python -m newton.examples robot_allegro_hand

Cable Examples

Cable Twist Cable Y-Junction Cable Bundle Hysteresis
python -m newton.examples cable_twist python -m newton.examples cable_y_junction python -m newton.examples cable_bundle_hysteresis
Cable Pile Cable Cross Slide Table
python -m newton.examples cable_pile python -m newton.examples cable_cross_slide_table

Cloth Examples

Cloth Bending Cloth Hanging Cloth Style3D
python -m newton.examples cloth_bending python -m newton.examples cloth_hanging python -m newton.examples cloth_style3d
Cloth H1 Cloth Twist Cloth Franka
python -m newton.examples cloth_h1 python -m newton.examples cloth_twist python -m newton.examples cloth_franka
Cloth Rollers Cloth Poker Cards
python -m newton.examples cloth_rollers python -m newton.examples cloth_poker_cards

Inverse Kinematics Examples

IK Franka IK H1 IK Custom
python -m newton.examples ik_franka python -m newton.examples ik_h1 python -m newton.examples ik_custom
IK Cube Stacking
python -m newton.examples ik_cube_stacking

MPM Examples

MPM Granular MPM Anymal MPM Two-Way Coupling
python -m newton.examples mpm_granular python -m newton.examples mpm_anymal python -m newton.examples mpm_twoway_coupling
MPM Grain Rendering MPM Multi Material MPM Viscous
python -m newton.examples mpm_grain_rendering python -m newton.examples mpm_multi_material python -m newton.examples mpm_viscous
MPM Beam Twist MPM Snow Ball
python -m newton.examples mpm_beam_twist python -m newton.examples mpm_snow_ball

Sensor Examples

Sensor Contact Sensor Tiled Camera Sensor IMU
python -m newton.examples sensor_contact python -m newton.examples sensor_tiled_camera python -m newton.examples sensor_imu

Selection Examples

Selection Cartpole Selection Materials Selection Articulations
python -m newton.examples selection_cartpole python -m newton.examples selection_materials python -m newton.examples selection_articulations
Selection Multiple
python -m newton.examples selection_multiple

DiffSim Examples

DiffSim Ball DiffSim Cloth DiffSim Drone
python -m newton.examples diffsim_ball python -m newton.examples diffsim_cloth python -m newton.examples diffsim_drone
DiffSim Spring Cage DiffSim Soft Body DiffSim Quadruped
python -m newton.examples diffsim_spring_cage python -m newton.examples diffsim_soft_body python -m newton.examples diffsim_bear

Multi-Physics Examples

Softbody Gift Softbody Dropping to Cloth Rigid Soft Contact
python -m newton.examples softbody_gift python -m newton.examples softbody_dropping_to_cloth python -m newton.examples rigid_soft_contact

Contacts Examples

Nut Bolt Hydro Nut Bolt SDF Brick Stacking
python -m newton.examples nut_bolt_hydro python -m newton.examples nut_bolt_sdf python -m newton.examples brick_stacking
Pyramid RJ45 Plug
python -m newton.examples pyramid python -m newton.examples contacts_rj45_plug

Softbody Examples

Softbody Hanging Softbody Franka
python -m newton.examples softbody_hanging python -m newton.examples softbody_franka

Kamino Examples

Kamino DR Testmech Kamino Fourbar Kamino Heterogeneous
python -m newton.examples kamino_basic_dr_testmech python -m newton.examples kamino_basic_fourbar python -m newton.examples kamino_basic_heterogeneous
Kamino Anymal D Kamino DR Legs
python -m newton.examples kamino_robot_anymal_d python -m newton.examples kamino_robot_dr_legs
### 示例选项 所有示例都共享一组通用的命令行选项。最常用的选项包括: | 参数 | 描述 | 默认值 | | --------------- | ------------------------------------------------------------------------ | ---------------------------- | | `--viewer` | 使用的查看器:`gl`、`usd`、`rtx`、`rerun`、`viser` 或 `null`。 | `gl` | | `--device` | 使用的计算设备,例如 `cpu`、`cuda:0`。 | `None` (默认 Warp 设备) | | `--num-frames` | 要模拟的总帧数。 | `100` | | `--output-path` | 输出 USD 文件的路径(由 `usd` 查看器使用)。 | `output.usd` | 要获取完整且始终最新的选项列表——以及特定示例添加的任何参数——请运行: ``` python -m newton.examples --help ``` ### 示例用法 ``` # 列出可用示例 python -m newton.examples --list # 使用 USD viewer 运行并保存到 my_output.usd python -m newton.examples basic_viewer --viewer usd --output-path my_output.usd # 在选定设备上运行 python -m newton.examples basic_urdf --device cuda:0 # 组合选项 python -m newton.examples basic_viewer --viewer gl --num-frames 500 --device cpu ``` ## 行为准则 ## 项目治理、法律及成员 请参阅 [newton-governance 代码仓库](https://github.com/newton-physics/newton-governance) 获取有关项目治理的更多信息。
标签:GPU加速, MuJoCo, NVIDIA Warp, 机器人学, 物理仿真, 物理引擎, 科研工具