Skip to content

[bug] Camera is not initialized correctly. #205

@catachiii

Description

@catachiii

If you are submitting a bug report, please fill in the following details and use the tag [bug].

Describe the bug

I was running the tutorial of adding sensors to robots, and during resetting the camera, robot pos in _data will be updated according to the world poses. Until this moment, self._data is None, so it gives me error of TypeError: 'NoneType' object does not support item assignment during executing self._data.pos_w[env_ids] = poses

I was able to trace back to the initialization of the camera class and found _create_buffers is never called but _initialize_impl is called during sim.reset().

I assume there is a bug when initializing the camera, but I'm not sure why it happens...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions