Change MuJoCo engine source code function-spacing convention from 3 blank lines to 2

PiperOrigin-RevId: 813754244
Change-Id: I6836e41c3b021cb727e922c25c60f629b9814c93
This commit is contained in:
Yuval Tassa
2025-10-01 07:57:17 -07:00
committed by Copybara-Service
parent c439628f82
commit edbdb5195c
36 changed files with 8 additions and 651 deletions
-6
View File
@@ -59,7 +59,6 @@ static void mj_setM0(mjModel* m, mjData* d) {
}
// set quantities that depend on qpos0
static void set0(mjModel* m, mjData* d) {
int nv = m->nv;
@@ -415,7 +414,6 @@ static void set0(mjModel* m, mjData* d) {
}
// accumulate bounding box
static void updateBox(mjtNum* xmin, mjtNum* xmax, mjtNum* pos, mjtNum radius) {
for (int i=0; i < 3; i++) {
@@ -555,7 +553,6 @@ static void setStat(mjModel* m, mjData* d) {
}
// set quantities that depend on qpos_spring
static void setSpring(mjModel* m, mjData* d) {
// run computations in qpos_spring
@@ -575,7 +572,6 @@ static void setSpring(mjModel* m, mjData* d) {
}
// entry point: set all constant fields of mjModel, except for lengthrange
void mj_setConst(mjModel* m, mjData* d) {
// compute subtreemass
@@ -593,7 +589,6 @@ void mj_setConst(mjModel* m, mjData* d) {
}
//----------------------------- actuator length range computation ----------------------------------
// evaluate actuator length, advance special dynamics
@@ -634,7 +629,6 @@ static mjtNum evalAct(const mjModel* m, mjData* d, int index, int side,
}
// Set length range for specified actuator, return 1 if ok, 0 if error.
int mj_setLengthRange(mjModel* m, mjData* d, int index,
const mjLROpt* opt, char* error, int error_sz) {