Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simulation Environment #66

Open
liaodisen opened this issue Sep 10, 2024 · 5 comments
Open

Simulation Environment #66

liaodisen opened this issue Sep 10, 2024 · 5 comments

Comments

@liaodisen
Copy link

liaodisen commented Sep 10, 2024

Hello Everyone,

I am new to robotics, and I am using MacOS and a remote machine with A6000 GPU available. I can run the script
python scripts/joint_monkey_smpl.py, and I used XQuartz to load the GUI window on my local machine, though it is lagging. However, when I run python scripts/vis/vis_motion_mj.py, I had error:

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
/home/d7liao/anaconda3/envs/isaac/lib/python3.8/site-packages/glfw/init.py:914: GLFWError: (65543) b'GLX: Failed to create context: BadValue (integer parameter out of range for operation)'
warnings.warn(message, GLFWError)
ERROR: could not create window

Does anyone have better suggestion on how to run mujoco using remote machine and how to render isaac gym more fluently?
Thank you!

Edit: I think this is because of XQuartz XQuartz/XQuartz#144, does anyone know how to get over it?

@Anonnyyy
Copy link

Anonnyyy commented Oct 8, 2024

请问你用的gym preview4吗

@ZhengyiLuo
Copy link
Owner

I have had better luck with VNC than XQuartz; there is always some issue when I tried to use xservers from command line when GPU rendering is involved.

@ZhengyiLuo
Copy link
Owner

请问你用的gym preview4吗

Yes, preview 4.

@Anonnyyy
Copy link

Anonnyyy commented Oct 9, 2024

Thank you very much! : )
However i met some problems when running:
python scripts/vis/vis_motion_mj.py
it shows:

****************************** Current motion keys ******************************
Sampling motion: tensor([0])
standing


0it [00:00, ?it/s]pbar 0it [00:00, ?it/s]
0it [00:00, ?it/s]
Traceback (most recent call last):
File "scripts/vis/vis_motion_mj.py", line 105, in
motion_lib.load_motions(skeleton_trees=[sk_tree] * num_motions, gender_betas=[torch.zeros(17)] * num_motions, limb_weights=[np.zeros(10)] * num_motions, random_sample=False, start_idx=curr_start)
File "/home/anony/omnigrasep/PHC/phc/utils/motion_lib_base.py", line 249, in load_motions
res_acc.update(self.load_motion_with_skeleton(*jobs[0], None, 0))
File "/home/anony/omnigrasep/PHC/phc/utils/motion_lib_smpl.py", line 116, in load_motion_with_skeleton
for f in pbar:
File "/home/anony/anaconda3/envs/rlgpu/lib/python3.8/site-packages/tqdm/std.py", line 1181, in iter
for obj in iterable:
TypeError: 'int' object is not iterable

看起来像是motion import失败了, motion_file = "sample_data/amass_isaac_standing_upright_slim.pkl" 导入的motion list是空的。请问您有遇到这样的问题吗?

@ZhengyiLuo
Copy link
Owner

Thank you very much! : ) However i met some problems when running: python scripts/vis/vis_motion_mj.py it shows:

****************************** Current motion keys ******************************
Sampling motion: tensor([0])
standing

0it [00:00, ?it/s]pbar 0it [00:00, ?it/s]
0it [00:00, ?it/s]
Traceback (most recent call last):
File "scripts/vis/vis_motion_mj.py", line 105, in
motion_lib.load_motions(skeleton_trees=[sk_tree] * num_motions, gender_betas=[torch.zeros(17)] * num_motions, limb_weights=[np.zeros(10)] * num_motions, random_sample=False, start_idx=curr_start)
File "/home/anony/omnigrasep/PHC/phc/utils/motion_lib_base.py", line 249, in load_motions
res_acc.update(self.load_motion_with_skeleton(*jobs[0], None, 0))
File "/home/anony/omnigrasep/PHC/phc/utils/motion_lib_smpl.py", line 116, in load_motion_with_skeleton
for f in pbar:
File "/home/anony/anaconda3/envs/rlgpu/lib/python3.8/site-packages/tqdm/std.py", line 1181, in iter
for obj in iterable:
TypeError: 'int' object is not iterable

看起来像是motion import失败了, motion_file = "sample_data/amass_isaac_standing_upright_slim.pkl" 导入的motion list是空的。请问您有遇到这样的问题吗?

I just tried sample_data/amass_isaac_standing_upright_slim.pkl and it does contain the motion. Please pull the most recent code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants