diff --git a/doc/XMLschema.rst b/doc/XMLschema.rst
index 26eb579d..6507fbdd 100755
--- a/doc/XMLschema.rst
+++ b/doc/XMLschema.rst
@@ -1,3 +1,6 @@
+..
+ DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
.. raw:: html
diff --git a/include/mujoco/experimental/usd/mjcPhysics/actuator.h b/include/mujoco/experimental/usd/mjcPhysics/actuator.h
index cb0069b9..fc3e3fdc 100644
--- a/include/mujoco/experimental/usd/mjcPhysics/actuator.h
+++ b/include/mujoco/experimental/usd/mjcPhysics/actuator.h
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#ifndef MJCPHYSICS_GENERATED_ACTUATOR_H
#define MJCPHYSICS_GENERATED_ACTUATOR_H
diff --git a/include/mujoco/experimental/usd/mjcPhysics/api.h b/include/mujoco/experimental/usd/mjcPhysics/api.h
index 529c31f5..79cbbded 100644
--- a/include/mujoco/experimental/usd/mjcPhysics/api.h
+++ b/include/mujoco/experimental/usd/mjcPhysics/api.h
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#ifndef MJCPHYSICS_API_H
#define MJCPHYSICS_API_H
diff --git a/include/mujoco/experimental/usd/mjcPhysics/collisionAPI.h b/include/mujoco/experimental/usd/mjcPhysics/collisionAPI.h
index 3aee44ed..ec41ead7 100644
--- a/include/mujoco/experimental/usd/mjcPhysics/collisionAPI.h
+++ b/include/mujoco/experimental/usd/mjcPhysics/collisionAPI.h
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#ifndef MJCPHYSICS_GENERATED_COLLISIONAPI_H
#define MJCPHYSICS_GENERATED_COLLISIONAPI_H
diff --git a/include/mujoco/experimental/usd/mjcPhysics/equalityAPI.h b/include/mujoco/experimental/usd/mjcPhysics/equalityAPI.h
index 5f8aa32b..581bd91f 100644
--- a/include/mujoco/experimental/usd/mjcPhysics/equalityAPI.h
+++ b/include/mujoco/experimental/usd/mjcPhysics/equalityAPI.h
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#ifndef MJCPHYSICS_GENERATED_EQUALITYAPI_H
#define MJCPHYSICS_GENERATED_EQUALITYAPI_H
diff --git a/include/mujoco/experimental/usd/mjcPhysics/equalityConnectAPI.h b/include/mujoco/experimental/usd/mjcPhysics/equalityConnectAPI.h
index 104d11e1..2143f1f2 100644
--- a/include/mujoco/experimental/usd/mjcPhysics/equalityConnectAPI.h
+++ b/include/mujoco/experimental/usd/mjcPhysics/equalityConnectAPI.h
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#ifndef MJCPHYSICS_GENERATED_EQUALITYCONNECTAPI_H
#define MJCPHYSICS_GENERATED_EQUALITYCONNECTAPI_H
diff --git a/include/mujoco/experimental/usd/mjcPhysics/equalityJointAPI.h b/include/mujoco/experimental/usd/mjcPhysics/equalityJointAPI.h
index adfca61b..ca7aee84 100644
--- a/include/mujoco/experimental/usd/mjcPhysics/equalityJointAPI.h
+++ b/include/mujoco/experimental/usd/mjcPhysics/equalityJointAPI.h
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#ifndef MJCPHYSICS_GENERATED_EQUALITYJOINTAPI_H
#define MJCPHYSICS_GENERATED_EQUALITYJOINTAPI_H
diff --git a/include/mujoco/experimental/usd/mjcPhysics/equalityWeldAPI.h b/include/mujoco/experimental/usd/mjcPhysics/equalityWeldAPI.h
index 98a7ae7a..3839dbb6 100644
--- a/include/mujoco/experimental/usd/mjcPhysics/equalityWeldAPI.h
+++ b/include/mujoco/experimental/usd/mjcPhysics/equalityWeldAPI.h
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#ifndef MJCPHYSICS_GENERATED_EQUALITYWELDAPI_H
#define MJCPHYSICS_GENERATED_EQUALITYWELDAPI_H
diff --git a/include/mujoco/experimental/usd/mjcPhysics/imageableAPI.h b/include/mujoco/experimental/usd/mjcPhysics/imageableAPI.h
index 8a77eada..ec578d9c 100644
--- a/include/mujoco/experimental/usd/mjcPhysics/imageableAPI.h
+++ b/include/mujoco/experimental/usd/mjcPhysics/imageableAPI.h
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#ifndef MJCPHYSICS_GENERATED_IMAGEABLEAPI_H
#define MJCPHYSICS_GENERATED_IMAGEABLEAPI_H
diff --git a/include/mujoco/experimental/usd/mjcPhysics/jointAPI.h b/include/mujoco/experimental/usd/mjcPhysics/jointAPI.h
index 6d53472d..c600d9cd 100644
--- a/include/mujoco/experimental/usd/mjcPhysics/jointAPI.h
+++ b/include/mujoco/experimental/usd/mjcPhysics/jointAPI.h
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#ifndef MJCPHYSICS_GENERATED_JOINTAPI_H
#define MJCPHYSICS_GENERATED_JOINTAPI_H
diff --git a/include/mujoco/experimental/usd/mjcPhysics/keyframe.h b/include/mujoco/experimental/usd/mjcPhysics/keyframe.h
index 4fa0091c..572f26a5 100644
--- a/include/mujoco/experimental/usd/mjcPhysics/keyframe.h
+++ b/include/mujoco/experimental/usd/mjcPhysics/keyframe.h
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#ifndef MJCPHYSICS_GENERATED_KEYFRAME_H
#define MJCPHYSICS_GENERATED_KEYFRAME_H
diff --git a/include/mujoco/experimental/usd/mjcPhysics/materialAPI.h b/include/mujoco/experimental/usd/mjcPhysics/materialAPI.h
index 8d30abfa..9b671935 100644
--- a/include/mujoco/experimental/usd/mjcPhysics/materialAPI.h
+++ b/include/mujoco/experimental/usd/mjcPhysics/materialAPI.h
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#ifndef MJCPHYSICS_GENERATED_MATERIALAPI_H
#define MJCPHYSICS_GENERATED_MATERIALAPI_H
diff --git a/include/mujoco/experimental/usd/mjcPhysics/meshCollisionAPI.h b/include/mujoco/experimental/usd/mjcPhysics/meshCollisionAPI.h
index 431e9c38..91923540 100644
--- a/include/mujoco/experimental/usd/mjcPhysics/meshCollisionAPI.h
+++ b/include/mujoco/experimental/usd/mjcPhysics/meshCollisionAPI.h
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#ifndef MJCPHYSICS_GENERATED_MESHCOLLISIONAPI_H
#define MJCPHYSICS_GENERATED_MESHCOLLISIONAPI_H
diff --git a/include/mujoco/experimental/usd/mjcPhysics/sceneAPI.h b/include/mujoco/experimental/usd/mjcPhysics/sceneAPI.h
index 7d9b4b37..2e0358df 100644
--- a/include/mujoco/experimental/usd/mjcPhysics/sceneAPI.h
+++ b/include/mujoco/experimental/usd/mjcPhysics/sceneAPI.h
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#ifndef MJCPHYSICS_GENERATED_SCENEAPI_H
#define MJCPHYSICS_GENERATED_SCENEAPI_H
diff --git a/include/mujoco/experimental/usd/mjcPhysics/siteAPI.h b/include/mujoco/experimental/usd/mjcPhysics/siteAPI.h
index 8e92e9c2..0455be70 100644
--- a/include/mujoco/experimental/usd/mjcPhysics/siteAPI.h
+++ b/include/mujoco/experimental/usd/mjcPhysics/siteAPI.h
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#ifndef MJCPHYSICS_GENERATED_SITEAPI_H
#define MJCPHYSICS_GENERATED_SITEAPI_H
diff --git a/include/mujoco/experimental/usd/mjcPhysics/tendon.h b/include/mujoco/experimental/usd/mjcPhysics/tendon.h
index 9e72ed50..8e4fab72 100644
--- a/include/mujoco/experimental/usd/mjcPhysics/tendon.h
+++ b/include/mujoco/experimental/usd/mjcPhysics/tendon.h
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#ifndef MJCPHYSICS_GENERATED_TENDON_H
#define MJCPHYSICS_GENERATED_TENDON_H
diff --git a/include/mujoco/experimental/usd/mjcPhysics/tokens.h b/include/mujoco/experimental/usd/mjcPhysics/tokens.h
index 53796b06..e00e2daf 100644
--- a/include/mujoco/experimental/usd/mjcPhysics/tokens.h
+++ b/include/mujoco/experimental/usd/mjcPhysics/tokens.h
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#ifndef MJCPHYSICS_TOKENS_H
#define MJCPHYSICS_TOKENS_H
diff --git a/python/mujoco/codegen/generate_cs_bindings.py b/python/mujoco/codegen/generate_cs_bindings.py
index c9f783c6..ed014515 100644
--- a/python/mujoco/codegen/generate_cs_bindings.py
+++ b/python/mujoco/codegen/generate_cs_bindings.py
@@ -438,7 +438,9 @@ _COPYRIGHT_HEADER = """// Copyright 2022 DeepMind Technologies Limited
// See the License for the specific language governing permissions and
// limitations under the License.
// ==============================================================================
-// THIS FILE IS AUTO-GENERATED
+
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
"""
diff --git a/src/experimental/usd/mjcPhysics/actuator.cpp b/src/experimental/usd/mjcPhysics/actuator.cpp
index 0db68f9a..7d6b9ce8 100644
--- a/src/experimental/usd/mjcPhysics/actuator.cpp
+++ b/src/experimental/usd/mjcPhysics/actuator.cpp
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#include
#include
diff --git a/src/experimental/usd/mjcPhysics/collisionAPI.cpp b/src/experimental/usd/mjcPhysics/collisionAPI.cpp
index a3e1ab32..6e10e761 100644
--- a/src/experimental/usd/mjcPhysics/collisionAPI.cpp
+++ b/src/experimental/usd/mjcPhysics/collisionAPI.cpp
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#include
#include
diff --git a/src/experimental/usd/mjcPhysics/equalityAPI.cpp b/src/experimental/usd/mjcPhysics/equalityAPI.cpp
index 8caad788..fc716561 100644
--- a/src/experimental/usd/mjcPhysics/equalityAPI.cpp
+++ b/src/experimental/usd/mjcPhysics/equalityAPI.cpp
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#include
#include
diff --git a/src/experimental/usd/mjcPhysics/equalityConnectAPI.cpp b/src/experimental/usd/mjcPhysics/equalityConnectAPI.cpp
index 17442fc3..adeb228b 100644
--- a/src/experimental/usd/mjcPhysics/equalityConnectAPI.cpp
+++ b/src/experimental/usd/mjcPhysics/equalityConnectAPI.cpp
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#include
#include
diff --git a/src/experimental/usd/mjcPhysics/equalityJointAPI.cpp b/src/experimental/usd/mjcPhysics/equalityJointAPI.cpp
index 92607cfd..69a89b17 100644
--- a/src/experimental/usd/mjcPhysics/equalityJointAPI.cpp
+++ b/src/experimental/usd/mjcPhysics/equalityJointAPI.cpp
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#include
#include
diff --git a/src/experimental/usd/mjcPhysics/equalityWeldAPI.cpp b/src/experimental/usd/mjcPhysics/equalityWeldAPI.cpp
index d8cd5afa..59c354a4 100644
--- a/src/experimental/usd/mjcPhysics/equalityWeldAPI.cpp
+++ b/src/experimental/usd/mjcPhysics/equalityWeldAPI.cpp
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#include
#include
diff --git a/src/experimental/usd/mjcPhysics/imageableAPI.cpp b/src/experimental/usd/mjcPhysics/imageableAPI.cpp
index c36a3c5a..6f38613c 100644
--- a/src/experimental/usd/mjcPhysics/imageableAPI.cpp
+++ b/src/experimental/usd/mjcPhysics/imageableAPI.cpp
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#include
#include
diff --git a/src/experimental/usd/mjcPhysics/jointAPI.cpp b/src/experimental/usd/mjcPhysics/jointAPI.cpp
index f918008f..381f1b9f 100644
--- a/src/experimental/usd/mjcPhysics/jointAPI.cpp
+++ b/src/experimental/usd/mjcPhysics/jointAPI.cpp
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#include
#include
diff --git a/src/experimental/usd/mjcPhysics/keyframe.cpp b/src/experimental/usd/mjcPhysics/keyframe.cpp
index 203d3c0d..9541c89a 100644
--- a/src/experimental/usd/mjcPhysics/keyframe.cpp
+++ b/src/experimental/usd/mjcPhysics/keyframe.cpp
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#include
#include
diff --git a/src/experimental/usd/mjcPhysics/materialAPI.cpp b/src/experimental/usd/mjcPhysics/materialAPI.cpp
index 705af0d8..d0d6adf2 100644
--- a/src/experimental/usd/mjcPhysics/materialAPI.cpp
+++ b/src/experimental/usd/mjcPhysics/materialAPI.cpp
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#include
#include
diff --git a/src/experimental/usd/mjcPhysics/meshCollisionAPI.cpp b/src/experimental/usd/mjcPhysics/meshCollisionAPI.cpp
index 05b53877..1e002b17 100644
--- a/src/experimental/usd/mjcPhysics/meshCollisionAPI.cpp
+++ b/src/experimental/usd/mjcPhysics/meshCollisionAPI.cpp
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#include
#include
diff --git a/src/experimental/usd/mjcPhysics/sceneAPI.cpp b/src/experimental/usd/mjcPhysics/sceneAPI.cpp
index 6396c858..95aad5a4 100644
--- a/src/experimental/usd/mjcPhysics/sceneAPI.cpp
+++ b/src/experimental/usd/mjcPhysics/sceneAPI.cpp
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#include
#include
diff --git a/src/experimental/usd/mjcPhysics/siteAPI.cpp b/src/experimental/usd/mjcPhysics/siteAPI.cpp
index 0ec70277..d7b359a8 100644
--- a/src/experimental/usd/mjcPhysics/siteAPI.cpp
+++ b/src/experimental/usd/mjcPhysics/siteAPI.cpp
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#include
#include
diff --git a/src/experimental/usd/mjcPhysics/tendon.cpp b/src/experimental/usd/mjcPhysics/tendon.cpp
index 6f0b2e21..5446fe49 100644
--- a/src/experimental/usd/mjcPhysics/tendon.cpp
+++ b/src/experimental/usd/mjcPhysics/tendon.cpp
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#include
#include
diff --git a/src/experimental/usd/mjcPhysics/tokens.cpp b/src/experimental/usd/mjcPhysics/tokens.cpp
index c278e715..cb69db80 100644
--- a/src/experimental/usd/mjcPhysics/tokens.cpp
+++ b/src/experimental/usd/mjcPhysics/tokens.cpp
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
#include
PXR_NAMESPACE_OPEN_SCOPE
diff --git a/unity/Runtime/Bindings/MjBindings.cs b/unity/Runtime/Bindings/MjBindings.cs
index a4d3aa22..667d7d33 100644
--- a/unity/Runtime/Bindings/MjBindings.cs
+++ b/unity/Runtime/Bindings/MjBindings.cs
@@ -12,7 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// ==============================================================================
-// THIS FILE IS AUTO-GENERATED
+
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
using System;
using System.Runtime.InteropServices;
using System.Text;
diff --git a/wasm/codegen/generated/bindings.cc b/wasm/codegen/generated/bindings.cc
index 8262902d..adfc48bb 100644
--- a/wasm/codegen/generated/bindings.cc
+++ b/wasm/codegen/generated/bindings.cc
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.
+
// NOLINTBEGIN(whitespace/line_length)
// NOLINTBEGIN(whitespace/semicolon)
diff --git a/wasm/codegen/generators/binding_builder.py b/wasm/codegen/generators/binding_builder.py
index b0f229e4..fab3035b 100644
--- a/wasm/codegen/generators/binding_builder.py
+++ b/wasm/codegen/generators/binding_builder.py
@@ -62,7 +62,12 @@ class BindingBuilder:
self.content_cc = common.replace_lines_containing_marker(
self.content_cc, marker, content
)
- return "".join(self.content_cc)
+ text = "".join(self.content_cc)
+ return text.replace(
+ "// limitations under the License.\n\n",
+ "// limitations under the License.\n\n// DO NOT EDIT. THIS FILE IS AUTOMATICALLY GENERATED.\n\n",
+ 1,
+ )
def build(self, generated_path_cc: str):
common.write_to_file(generated_path_cc, self.to_string())