Rename simulate.fully_managed_ to simulate.is_passive_ with flipped semantics.

PiperOrigin-RevId: 570815258
Change-Id: Iaffdb0e52bcdb31cff7bd29cb820913e3838f0ee
This commit is contained in:
Yuval Tassa
2023-10-04 14:49:06 -07:00
committed by Copybara-Service
parent 3e12f0d50c
commit e9613f0cc9
4 changed files with 50 additions and 50 deletions
+3 -3
View File
@@ -52,7 +52,7 @@ class Simulate {
Simulate(
std::unique_ptr<PlatformUIAdapter> platform_ui_adapter,
mjvScene* scn, mjvCamera* cam,
mjvOption* opt, mjvPerturb* pert, bool fully_managed);
mjvOption* opt, mjvPerturb* pert, bool is_passive);
// Synchronize mjModel and mjData state with UI inputs, and update
// visualization.
@@ -90,9 +90,9 @@ class Simulate {
// constants
static constexpr int kMaxFilenameLength = 1000;
// whether the viewer is operating in fully managed mode, where it can assume
// whether the viewer is operating in passive mode, where it cannot assume
// that it has exclusive access to mjModel, mjData, and various mjv objects
bool fully_managed_ = true;
bool is_passive_ = false;
// model and data to be visualized
mjModel* mnew_ = nullptr;