Code Monkey home page Code Monkey logo

Comments (13)

tuntun-sd avatar tuntun-sd commented on August 19, 2024

I met the same problem. And i also met another problem:

RuntimeError: time-out of 10000ms while waiting for the simulator, make sure the simulator is ready and connected to localhost:2000

from opencda.

DerrickXuNu avatar DerrickXuNu commented on August 19, 2024

When you saw this issue, the root cause is not exactly this issue. Typically, it is caused by some other problems that happened before the evaluation manager is created, and when the codes go to the finally block this issue will raise as evaluation manager hasn't been created yet. So please paste the full error message here so I can help you.

from opencda.

DerrickXuNu avatar DerrickXuNu commented on August 19, 2024

I met the same problem. And i also met another problem:

RuntimeError: time-out of 10000ms while waiting for the simulator, make sure the simulator is ready and connected to localhost:2000

Please refer to this closed issue.

#117

from opencda.

1790387702 avatar 1790387702 commented on August 19, 2024

Because I have not install carla in canda, and then I did it ,but now the question is changed as below..
OpenCDA Version: 0.1.0
load opendrive map '2lane_freeway_simplified.xodr'.
Creating single CAVs.
Traceback (most recent call last):
File "/home/fxd/Project/OpenCDA/opencda/scenario_testing/single_2lanefree_carla.py", line 43, in run_scenario
map_helper=map_api.
File "/home/fxd/Project/OpenCDA/opencda/scenario_testing/utils/sim_api.py", line 212, in create_vehicle_manager
vehicle_manager.update_info()
File "/home/fxd/Project/OpenCDA/opencda/core/common/vehicle_manager.py", line 174, in update_info
objects = self.perception_manager.detect(ego_pos)
File "/home/fxd/Project/OpenCDA/opencda/core/sensing/perception/perception_manager.py", line 402, in detect
objects = self.deactivate_mode(objects)
File "/home/fxd/Project/OpenCDA/opencda/core/sensing/perception/perception_manager.py", line 563, in deactivate_mode
objects)
File "/home/fxd/Project/OpenCDA/opencda/core/sensing/perception/o3d_lidar_libs.py", line 138, in o3d_visualizer_show
vis.update_geometry(point_cloud)
TypeError: update_geometry(): incompatible function arguments. The following argument types are supported:
1. (self: open3d.open3d.visualization.Visualizer) -> bool

Invoked with: Visualizer with name 87, geometry::PointCloud with 2133 points.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "opencda.py", line 56, in
main()
File "opencda.py", line 51, in main
scenario_runner(opt, config_yaml)
File "/home/fxd/Project/OpenCDA/opencda/scenario_testing/single_2lanefree_carla.py", line 75, in run_scenario
eval_manager.evaluate()
UnboundLocalError: local variable 'eval_manager' referenced before assignment
WARNING: sensor object went out of the scope but the sensor is still alive in the simulation: Actor 88 (sensor.other.gnss)
WARNING: sensor object went out of the scope but the sensor is still alive in the simulation: Actor 89 (sensor.other.imu)
WARNING: sensor object went out of the scope but the sensor is still alive in the simulation: Actor 90 (sensor.camera.rgb)
WARNING: sensor object went out of the scope but the sensor is still alive in the simulation: Actor 91 (sensor.lidar.ray_cast)

from opencda.

DerrickXuNu avatar DerrickXuNu commented on August 19, 2024

Can you show me your running command, OS system version and Carla version?

from opencda.

DerrickXuNu avatar DerrickXuNu commented on August 19, 2024

Also, did you install opencda with the yaml file we provided?

from opencda.

1790387702 avatar 1790387702 commented on August 19, 2024

@DerrickXuNu Thanks a lot. It seems I have find the root cause.Because in the environment.yaml and requirements.txt, the open3d has no version information, so pip default install 0.13.0. when I install open3d not higher than 0.10.x, The Porblem has solved.So Maybe there is some incompatibility problem..

from opencda.

DerrickXuNu avatar DerrickXuNu commented on August 19, 2024

I am using 0.13.0 and it works fine. I guess there is incompatibility between your system and Open3d. Anyway, please let me know if you have further questions

from opencda.

tuntun-sd avatar tuntun-sd commented on August 19, 2024

I met the same problem. And i also met another problem:

RuntimeError: time-out of 10000ms while waiting for the simulator, make sure the simulator is ready and connected to localhost:2000

Please refer to this closed issue.

#117

Thanks a lot!

from opencda.

sjtulhm avatar sjtulhm commented on August 19, 2024

徐博士,我跑这个代码的时候也遇到了这个问题,local variable 'eval_manager' referenced before assignment,但好像不是上述的问题。
1、当时安装的时候,export CARLA_HOME=/path/to/your/CARLA_ROOT,这里面CARLA_ROOT就是CARLA_0.9.11的地址吗。
2、完整报错信息:(opencda) user@user-ThinkStation-P520:/lihaoming/OpenCDA$ python opencda.py -t single_2lanefree_carla -v 0.9.11
OpenCDA Version: 0.1.2
load opendrive map '2lane_freeway_simplified.xodr'.
Traceback (most recent call last):
File "/lihaoming/OpenCDA/opencda/scenario_testing/single_2lanefree_carla.py", line 36, in run_scenario
cav_world=cav_world)
File "/lihaoming/OpenCDA/opencda/scenario_testing/utils/sim_api.py", line 188, in init
self.world = load_customized_world(xodr_path, self.client)
File "/lihaoming/OpenCDA/opencda/scenario_testing/utils/customized_map_api.py", line 57, in load_customized_world
enable_mesh_visibility=True))
RuntimeError: time-out of 10000ms while waiting for the simulator, make sure the simulator is ready and connected to localhost:2000

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "opencda.py", line 56, in
main()
File "opencda.py", line 51, in main
scenario_runner(opt, config_yaml)
File "/lihaoming/OpenCDA/opencda/scenario_testing/single_2lanefree_carla.py", line 76, in run_scenario
eval_manager.evaluate()
UnboundLocalError: local variable 'eval_manager' referenced before assignment
基本都是对这教程安装的,想请您给我解答一下,感谢!

from opencda.

DerrickXuNu avatar DerrickXuNu commented on August 19, 2024

Did you start Carla simulators first?

from opencda.

sjtulhm avatar sjtulhm commented on August 19, 2024

Did you start Carla simulators first?
我运行:
‘/CarlaUE4.sh'
4.24.3-0+++UE4+Release-4.24 518 0
Disabling core dumps,能正常启动的。
我运行您上述的python opencda.py-t single_town06_carla --apply_ml,会出现Town06 is not found in your CARLA repo! Please download all town maps to your CARLA repo! 这样的报错,我已经下载了那个additional map也替换到了原来的文件夹里。

from opencda.

sjtulhm avatar sjtulhm commented on August 19, 2024

Did you start Carla simulators first?
Dr. Xu, could you take the time to answer my question

from opencda.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.