ucla-mobility / OpenCDA

A generalized framework for prototyping full-stack cooperative driving automation applications under CARLA+SUMO.
Other
1.01k stars 198 forks source link

The errors about 'torch.cuda' and 'eval_manager' #142

Closed aslirey closed 2 years ago

aslirey commented 2 years ago

Hello,

It is really great work! I am interested in co-simulation with sumo. While running it, I have encountered with errors. Could you please help me?

Kind regards, error

aslirey commented 2 years ago

Can I get RGB sensor data during the simulation to use them for reinforcement learning later? Thanks...

DerrickXuNu commented 2 years ago

Thanks for being interested in OpenCDA! 1) Answers to your error: What's your pytorch version? Pytorch >= 1.8 is required 2) Yes, OpenCDA support streaming rgb sensor data. Check the document: https://opencda-documentation.readthedocs.io/en/latest/md_files/developer_tutorial.html#perceptionmanager and the code: https://github.com/ucla-mobility/OpenCDA/blob/main/opencda/core/sensing/perception/perception_manager.py#L29

aslirey commented 2 years ago

Thank you very much. I have upgraded pytorch to 1.10.0. Now it is running.