Skip to content

Commit bbb265d

Browse files
quaglacopybara-github
authored andcommitted
Do not draw touch sensor grid if contact point vis flag is disabled.
PiperOrigin-RevId: 781908115 Change-Id: Id42206b1d8b6766352071e20150e2a4047895bf7
1 parent 3c99705 commit bbb265d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugin/sensor/touch_stress.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,9 @@ static const mjtNum kRelativeThickness = 0.02;
407407

408408
void TouchStress::Visualize(const mjModel* m, mjData* d, const mjvOption* opt,
409409
mjvScene* scn, int instance) {
410+
if (!opt->flags[mjVIS_CONTACTPOINT]) {
411+
return;
412+
}
410413
mj_markStack(d);
411414

412415
// Get sensor data.

0 commit comments

Comments
 (0)