Skip to content

“TypeError ” when I run demo_sim_Erender.py #2

@x18-1

Description

@x18-1

When i run demo_sim_Erender.py,I got the wrong:

Traceback (most recent call last):
  File "d:\code\CV\CNS\demo_sim_Erender.py", line 79, in <module>
    run_demo()
  File "d:\code\CV\CNS\demo_sim_Erender.py", line 40, in run_demo
    tar_img = env.init(i)  # uint8, bgr image
  File "d:\code\CV\CNS\cns\benchmark\environment.py", line 110, in init
    frame = self.camera.render(target_cwT, self.client)
  File "d:\code\CV\CNS\cns\utils\perception.py", line 112, in render
    rgb, z_buffer = np.ascontiguousarray(result[2][:, :, :3]), result[3]
TypeError: tuple indices must be integers or slices, not tuple

I have print the result[2],it's a tuple。
I dont’t konw how to solve it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions