Update sensor decor elements to be of type mjOBJ_SENSOR.
PiperOrigin-RevId: 816640568 Change-Id: I838608c0482ec1ee499fe9598ddb33aa6c5331e9
This commit is contained in:
committed by
Copybara-Service
parent
7b9f6a5cc1
commit
e7e331b11e
@@ -1566,7 +1566,7 @@ static void addTactileSensorGeoms(const mjModel* m, mjData* d, const mjvOption*
|
|||||||
float* mesh_vert = m->mesh_vert + 3*m->mesh_vertadr[mesh_id];
|
float* mesh_vert = m->mesh_vert + 3*m->mesh_vertadr[mesh_id];
|
||||||
int* face = m->mesh_face + 3*m->mesh_faceadr[mesh_id];
|
int* face = m->mesh_face + 3*m->mesh_faceadr[mesh_id];
|
||||||
for (int i=0; i < m->mesh_facenum[mesh_id]; i++) {
|
for (int i=0; i < m->mesh_facenum[mesh_id]; i++) {
|
||||||
mjvGeom* thisgeom = acquireGeom(scn, i, mjCAT_DECOR, mjOBJ_UNKNOWN);
|
mjvGeom* thisgeom = acquireGeom(scn, i, mjCAT_DECOR, mjOBJ_SENSOR);
|
||||||
if (!thisgeom) {
|
if (!thisgeom) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -2478,7 +2478,7 @@ static void addRangefinderGeoms(const mjModel* m, mjData* d, const mjvOption* vo
|
|||||||
}
|
}
|
||||||
|
|
||||||
// make ray
|
// make ray
|
||||||
mjvGeom* thisgeom = acquireGeom(scn, i, mjCAT_DECOR, mjOBJ_UNKNOWN);
|
mjvGeom* thisgeom = acquireGeom(scn, i, mjCAT_DECOR, mjOBJ_SENSOR);
|
||||||
if (!thisgeom) {
|
if (!thisgeom) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -2500,7 +2500,7 @@ static void addRangefinderGeoms(const mjModel* m, mjData* d, const mjvOption* vo
|
|||||||
}
|
}
|
||||||
|
|
||||||
// make ray
|
// make ray
|
||||||
mjvGeom* thisgeom = acquireGeom(scn, i, mjCAT_DECOR, mjOBJ_UNKNOWN);
|
mjvGeom* thisgeom = acquireGeom(scn, i, mjCAT_DECOR, mjOBJ_SENSOR);
|
||||||
if (!thisgeom) {
|
if (!thisgeom) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user