Repository navigation
'Camera' object has no attribute 'initialize'? #5603
Replies: 1 comment
|
There are two things to change in the initialization order.
Move the camera configuration and construction above that first reset, and remove # Create the robot and camera before starting the simulation.
left_camera = Camera(camera_cfg)
sim.reset()
left_camera.reset()You also need to update the standalone camera in your capture loop, not just step the simulator: sim.step(render=True)
left_camera.update(sim.get_physics_dt())Then read The [sensor tutorial](https://isaac-sim.github.io/IsaacLab/main/source/tutorials/04_sensors/add_sensors_on_robot.html#running-the-simulation-loop) describes this lifecycle. It uses I'd fix that order first before changing visibility or driver settings. |
Uh oh!
There was an error while loading. Please reload this page.
Description
When I used a camera from a robot model, I want to initialize it. But there came a error that
AttributeError: 'Camera' object has no attribute 'initialize'. Did you mean: 'is_initialized'?
Here is my code:
And here is the error:
However, I see the docs that

Is there anything wrong in my env?
Isaac Sim version
5.1.0
Driver Version:
580.97
Operating System (OS)
Windows 11
GPU Name
RTX 4080
All reactions