You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem with camera setting. Getting either black screen or useless camera perspective (an image that is not informative), when rendering my model. Please help me to find a camera setting that will give a nice view from position (1, 0, 1.5). here is my xml that includes 3 cameras (none of them gives satisfying view, as mentioned above).
import mujoco_py
import os
# Load the model from the XML file
model = mujoco_py.load_model_from_path("tmp.xml")
sim = mujoco_py.MjSim(model)
# Create a viewer to visualize the simulation
viewer = mujoco_py.MjViewer(sim)
camera_index = model.camera_name2id("cam_1")
viewer.cam.fixedcamid = camera_index
viewer.cam.type = mujoco_py.generated.const.CAMERA_FIXED
while True:
sim.step()
viewer.render()
`
The text was updated successfully, but these errors were encountered:
I have a problem with camera setting. Getting either black screen or useless camera perspective (an image that is not informative), when rendering my model. Please help me to find a camera setting that will give a nice view from position (1, 0, 1.5). here is my xml that includes 3 cameras (none of them gives satisfying view, as mentioned above).
here is the code of the program itself:
`
The text was updated successfully, but these errors were encountered: