Skip to content

Commit d640cf4

Browse files
johnnynunezjnbntz
authored andcommitted
Tutorials/Newton: Preserve asset handling and scene visibility when syncing tutorials.
Retain verified asset caches, consistent generated mesh links and visible box-task props. Accept the current stack-report format in the final check. Correct original-code copyright to NVIDIA Corporation while retaining MIT and third-party notices. Signed-off-by: Johnny <johnnync13@gmail.com>
1 parent cc254ec commit d640cf4

56 files changed

Lines changed: 240 additions & 70 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎tutorials/newton/README.md‎

Lines changed: 2 additions & 2 deletions

‎tutorials/newton/notebooks/LICENSES/Blog-companion-MIT.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2026 Johnny Nuñez Cano
3+
Copyright (c) 2026 NVIDIA Corporation
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

‎tutorials/newton/notebooks/mujoco/part1/box_task.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2026 Johnny Nuñez Cano
1+
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA Corporation
22
# SPDX-License-Identifier: MIT
33
"""Optional two-cube box task for MuJoCo and MuJoCo Warp.
44

‎tutorials/newton/notebooks/mujoco/part1/pick_place_common.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2026 Johnny Nuñez Cano
1+
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA Corporation
22
# SPDX-License-Identifier: MIT
33
#
44
# ============================================================================

‎tutorials/newton/notebooks/mujoco/part1/robots.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2026 Johnny Nuñez Cano
1+
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA Corporation
22
# SPDX-License-Identifier: MIT
33
#
44
# Robot profiles for the pick-and-place task.

‎tutorials/newton/notebooks/mujoco/part1/so101_pick_place.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python3
2-
# SPDX-FileCopyrightText: Copyright (c) 2026 Johnny Nuñez Cano
2+
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA Corporation
33
# SPDX-License-Identifier: MIT
44
#
55
# ============================================================================
@@ -14,7 +14,7 @@
1414
# (Newton) are compared against.
1515
#
1616
# The three objects every MuJoCo program is built around:
17-
# mujoco.MjModel — the compiled, read-only model (geometry, inertia, ...)
17+
# mujoco.MjModel — the compiled model (some parameters remain mutable)
1818
# mujoco.MjData — the mutable state (qpos, qvel, ctrl, time, contacts)
1919
# mujoco.mj_step — advance the state by one model.opt.timestep
2020
#

‎tutorials/newton/notebooks/mujoco/part1/solutions/so101_pick_place_solution.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python3
2-
# SPDX-FileCopyrightText: Copyright (c) 2026 Johnny Nuñez Cano
2+
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA Corporation
33
# SPDX-License-Identifier: MIT
44
#
55
# ============================================================================

‎tutorials/newton/notebooks/mujoco/part1/solutions/step_01_model_and_data.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Step 1 — compile the model and allocate its mutable state.
22
#
3-
# MjModel is read-only and shared: geometry, inertia, joint structure, actuator
4-
# limits. MjData is the per-simulation state: qpos, qvel, ctrl, contacts, time.
3+
# MjModel stores geometry, inertia, joints and actuator settings. Parameters
4+
# such as actuator limits can be changed. MjData holds qpos, qvel, ctrl, contacts
5+
# and time for one simulation.
56
#
67
# We call load_pick_place_model() instead of mujoco.MjModel.from_xml_path() so
78
# that every part of the series simulates the identical model (it raises the

‎tutorials/newton/notebooks/mujoco/part1/utils.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2026 Johnny Nuñez Cano
1+
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA Corporation
22
# SPDX-License-Identifier: MIT
33
#
44
# Shared utilities for this series:

‎tutorials/newton/notebooks/mujoco/part2/benchmark_box.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2026 Johnny Nuñez Cano
1+
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA Corporation
22
# SPDX-License-Identifier: MIT
33
"""Measured native MuJoCo/MuJoCo Warp replay of both cubes into a box.
44

0 commit comments

Comments
 (0)