Skip to content

Commit

Permalink
chg: adds more real-time factors above 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidPL1 committed Jun 4, 2024
1 parent bbd5578 commit 49ee1b2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions mujoco_ros/include/mujoco_ros/mujoco_env.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class MujocoEnv
bool use_sim_time = true;

// Sim speed
int real_time_index = 1;
int real_time_index = 8;
int busywait = 0;

// Mode
Expand Down Expand Up @@ -237,10 +237,11 @@ class MujocoEnv
*/
int getOperationalStatus();

static constexpr float percentRealTime[] = { -1, // unbound
100, 80, 66, 50, 40, 33, 25, 20, 16, 13, 10,
8, 6.6f, 5.0f, 4, 3.3f, 2.5f, 2, 1.6f, 1.3f, 1, .8f,
.66f, .5f, .4f, .33f, .25f, .2f, .16f, .13f, .1f };
static constexpr float percentRealTime[] = {
-1, // unbound
2000, 1000, 800, 600, 500, 400, 200, 150, 100, 80, 66, 50, 40, 33, 25, 20, 16, 13, 10, 8,
6.6f, 5.0f, 4, 3.3f, 2.5f, 2, 1.6f, 1.3f, 1, .8f, .66f, .5f, .4f, .33f, .25f, .2f, .16f, .13f, .1f
};

static MujocoEnv *instance;
static void proxyControlCB(const mjModel * /*m*/, mjData * /*d*/)
Expand Down

0 comments on commit 49ee1b2

Please sign in to comment.