Skip to content
Discussion options

You must be logged in to vote

Thanks for your response!

However, the suggested solution didn’t work for me. I was trying to add a camera in the state_machine. Here’s the file I was working with: lift_cube_sm.py.

The solution I found is as follows:

# In lift_cube_sm.py, 
# Originally: app_launcher = AppLauncher(headless=args_cli.headless)
app_launcher = AppLauncher(headless=args_cli.headless, enable_cameras=True)

Instead of adding the --enable_cameras flag when running the script (e.g., python lift_cube_sm.py --enable_cameras), I passed the argument directly in the script, which resolved the error:

RuntimeError: Camera could not be initialized. Please ensure --enable_cameras is used to enable rendering.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ssunkyu
Comment options

Answer selected by ssunkyu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1049 on September 27, 2024 13:09.