Fix typos.
PiperOrigin-RevId: 710678815 Change-Id: Iab6f603f8f4d782ac7f34140add39e1f37625167
This commit is contained in:
committed by
Copybara-Service
parent
0336114a88
commit
8cb253b6ca
@@ -2500,7 +2500,7 @@ struct mjUI_ { // entire UI
|
||||
|
||||
// UI sizes (framebuffer units)
|
||||
int width; // width
|
||||
int height; // current heigth
|
||||
int height; // current height
|
||||
int maxheight; // height when all sections open
|
||||
int scroll; // scroll from top of UI
|
||||
|
||||
|
||||
@@ -304,7 +304,7 @@ struct mjUI_ { // entire UI
|
||||
|
||||
// UI sizes (framebuffer units)
|
||||
int width; // width
|
||||
int height; // current heigth
|
||||
int height; // current height
|
||||
int maxheight; // height when all sections open
|
||||
int scroll; // scroll from top of UI
|
||||
|
||||
|
||||
@@ -12380,7 +12380,7 @@ STRUCTS: Mapping[str, StructDecl] = dict([
|
||||
StructFieldDecl(
|
||||
name='height',
|
||||
type=ValueType(name='int'),
|
||||
doc='current heigth',
|
||||
doc='current height',
|
||||
),
|
||||
StructFieldDecl(
|
||||
name='maxheight',
|
||||
|
||||
@@ -988,7 +988,7 @@ def _site_dof_mask(m: Model) -> np.ndarray:
|
||||
mask = np.ones((m.nu, m.nv))
|
||||
for i in np.nonzero(m.actuator_trnid[:, 1] != -1)[0]:
|
||||
id_, refid = m.actuator_trnid[i]
|
||||
# intialize last dof address for each body
|
||||
# initialize last dof address for each body
|
||||
b0 = m.body_weldid[m.site_bodyid[id_]]
|
||||
b1 = m.body_weldid[m.site_bodyid[refid]]
|
||||
dofadr0 = m.body_dofadr[b0] + m.body_dofnum[b0] - 1
|
||||
|
||||
@@ -147,7 +147,7 @@ void mj_fwdPosition(const mjModel* m, mjData* d) {
|
||||
mj_collision(m, d); // timed internally (POS_COLLISION)
|
||||
}
|
||||
|
||||
// have threadpool: inertia and collision on seperate threads
|
||||
// have threadpool: inertia and collision on separate threads
|
||||
else {
|
||||
mjTask tasks[2];
|
||||
mjFwdPositionArgs forward_args;
|
||||
|
||||
@@ -278,7 +278,7 @@ int mj_mergeChain(const mjModel* m, int* chain, int b1, int b2) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// intialize last dof address for each body
|
||||
// initialize last dof address for each body
|
||||
da1 = m->body_dofadr[b1] + m->body_dofnum[b1] - 1;
|
||||
da2 = m->body_dofadr[b2] + m->body_dofnum[b2] - 1;
|
||||
|
||||
@@ -361,7 +361,7 @@ int mj_bodyChain(const mjModel* m, int body, int* chain) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// intialize last dof
|
||||
// initialize last dof
|
||||
int da = m->body_dofadr[body] + m->body_dofnum[body] - 1;
|
||||
int NV = 0;
|
||||
|
||||
|
||||
@@ -497,7 +497,7 @@ void mjv_moveModel(const mjModel* m, int action, mjtNum reldx, mjtNum reldy,
|
||||
// get current model rotation
|
||||
mju_f2n(rotate, scn->rotate, 4);
|
||||
|
||||
// compose rotation, normalize and and set
|
||||
// compose rotation, normalize and set
|
||||
mju_mulQuat(result, quat, rotate);
|
||||
mju_normalize4(result);
|
||||
mju_n2f(scn->rotate, result, 4);
|
||||
|
||||
Reference in New Issue
Block a user