Use meshid in touch sensor for mesh geoms.
PiperOrigin-RevId: 784575734 Change-Id: Ibca753273c67128c6c1421dad8413814dce31182
This commit is contained in:
committed by
Copybara-Service
parent
c2820941aa
commit
0eb2f9f118
@@ -296,6 +296,9 @@ void TouchStress::Compute(const mjModel* m, mjData* d, int instance) {
|
||||
if (m->geom_type[geom] == mjGEOM_SDF) {
|
||||
sdf_instance[0] = m->geom_plugin[geom];
|
||||
sdf_ptr[0] = mjc_getSDF(m, geom);
|
||||
} else if (m->geom_type[geom] == mjGEOM_MESH) {
|
||||
sdf_instance[0] = m->geom_dataid[geom];
|
||||
geomtype[0] = (mjtGeom)m->geom_type[geom];
|
||||
} else {
|
||||
sdf_instance[0] = geom;
|
||||
geomtype[0] = (mjtGeom)m->geom_type[geom];
|
||||
|
||||
Reference in New Issue
Block a user