We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
MuJoCo advanced user
MuJoCo 3.2.4, mac os
Repeated calls to update textures window.update_texture(tex.id) blocks window.is_running()
window.update_texture(tex.id)
window.is_running()
cc @saran-t
import time from mujoco import viewer XML = r""" <mujoco> <asset> <texture name="tex_rgb" builtin="gradient" type="2d" mark="edge" height="480" width="640" rgb1=".3 .4 .5"/> <material name="tex_rgb" reflectance="0.05" texture="tex_rgb" texrepeat="1 1" texuniform="false"/> </asset> <worldbody> <geom type="plane" size="5 5 2" rgba="1 1 1 1" material="tex_rgb"/> </worldbody> </mujoco> """ mj_model = mujoco.MjModel.from_xml_string(XML) mj_data = mujoco.MjData(mj_model) tex = mj_model.tex("tex_rgb") window = viewer.launch_passive( mj_model, mj_data, show_left_ui=False, show_right_ui=False, ) while window.is_running(): mujoco.mj_step(mj_model, mj_data) window.update_texture(tex.id) window.sync() time.sleep(mj_model.opt.timestep) print("Clean Exit")
See above
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Intro
MuJoCo advanced user
My setup
MuJoCo 3.2.4, mac os
What's happening? What did you expect?
Repeated calls to update textures
window.update_texture(tex.id)
blockswindow.is_running()
bug.mov
cc @saran-t
Steps for reproduction
Minimal model for reproduction
Code required for reproduction
See above
Confirmations
The text was updated successfully, but these errors were encountered: