From 4c066a26b5c939155c9ba0db45b4d9ec81bebcbd Mon Sep 17 00:00:00 2001 From: Yuval Tassa Date: Sun, 24 Dec 2023 12:06:05 -0800 Subject: [PATCH] Change `mjVISSTRING` of connect and weld equality constraints from "Constraint" to "Equality". This is more consistent with the 'E' shortcut key and with `mjDISABLESTRING` ("constraint" means all constraints, "equality" means bilateral constraints). Also remove unused ampersands from `mjVISSTRING` names, these are a remnant from a very old version of the UI framework. PiperOrigin-RevId: 593469811 Change-Id: I0f6f73c9f5d2c61b2280f395f76434b0710ce4f3 --- python/mujoco/bindings_test.py | 2 +- simulate/simulate.cc | 12 ++++-------- src/engine/engine_vis_init.c | 34 +++++++++++++++++----------------- 3 files changed, 22 insertions(+), 26 deletions(-) diff --git a/python/mujoco/bindings_test.py b/python/mujoco/bindings_test.py index 3d2e0ac6..407557f0 100644 --- a/python/mujoco/bindings_test.py +++ b/python/mujoco/bindings_test.py @@ -822,7 +822,7 @@ Euler integrator, semi-implicit in velocity. self.assertLen(mujoco.mjRNDSTRING, mujoco.mjtRndFlag.mjNRNDFLAG) self.assertEqual(mujoco.mjDISABLESTRING[11], 'Refsafe') self.assertEqual(mujoco.mjVISSTRING[mujoco.mjtVisFlag.mjVIS_INERTIA], - ('&Inertia', '0', 'I')) + ('Inertia', '0', 'I')) def test_enum_values(self): self.assertEqual(mujoco.mjtJoint.mjJNT_FREE, 0) diff --git a/simulate/simulate.cc b/simulate/simulate.cc index 226e290d..d9d4f99d 100644 --- a/simulate/simulate.cc +++ b/simulate/simulate.cc @@ -837,15 +837,8 @@ void MakeRenderingSection(mj::Simulate* sim, const mjModel* m, int oldstate) { {mjITEM_END} }; for (int i=0; iui0, defOpenGL); for (int i=0; i