Low FPS (~2-3) When Running MuJoCo Simulation in LivelyBot Pi RL Baseline – Possible Causes? #2649
Unanswered
hxyair
asked this question in
Asking for Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Intro
Hi everyone,
I'm currently trying to reproduce the HighTorque-Robotics/livelybot_pi_rl_baseline project, which involves Sim2Sim reinforcement learning for a bipedal robot using both Isaac Gym and MuJoCo.
While Isaac Gym simulations run smoothly, I’m encountering a very low frame rate (~2-3 FPS) in MuJoCo, and I’m hoping someone here can help identify the root cause.
My setup
🧪 Project Details:
💻 Simulation Observations:
🧪 Troubleshooting Attempts:
My question
❓ Questions:
Minimal model and/or code that explain my question
import math
import numpy as np
import mujoco, mujoco_viewer
from tqdm import tqdm
from collections import deque
from scipy.spatial.transform import Rotation as R
from humanoid import LEGGED_GYM_ROOT_DIR
from humanoid.envs import PaiCfg
import torch
import threading
import glfw
import matplotlib.pyplot as plt
import time # Newly added time module
import torch
torch.backends.cudnn.benchmark = True
class cmd:
vx = 0.
vy = 0.
dyaw = 0.
class mujoco_visual:
def init(self) -> None:
self.count_lowlevel = 0
self.stop_event = threading.Event()
self.vel = [0,0,0]
self.w = [0,0,0]
# Key mapping (avoiding C/J/G/M/T/V/E in the image)
self.key_states = {
# Direction control
glfw.KEY_UP: False,
glfw.KEY_DOWN: False,
glfw.KEY_LEFT: False,
glfw.KEY_RIGHT: False,
glfw.KEY_W: False, # Added
glfw.KEY_S: False, # Added
glfw.KEY_A: False, # Added
glfw.KEY_D: False, # Added
# Image function keys (keep original)
glfw.KEY_C: False,
glfw.KEY_J: False,
glfw.KEY_G: False,
glfw.KEY_M: False,
glfw.KEY_T: False,
glfw.KEY_V: False,
glfw.KEY_E: False
}
Confirmations
Beta Was this translation helpful? Give feedback.
All reactions