Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot successfully run with CARLA 0.9.13 #7

Open
chiehchiYang opened this issue Jun 15, 2023 · 2 comments
Open

Cannot successfully run with CARLA 0.9.13 #7

chiehchiYang opened this issue Jun 15, 2023 · 2 comments

Comments

@chiehchiYang
Copy link

chiehchiYang commented Jun 15, 2023

Thanks for your great work.
I meet some errors when running " python scripts/run.py --map Town01 --carla"
1.
Traceback (most recent call last):
File "scripts/run.py", line 69, in main
result = run_carla_simulation(simulation, ego_agent, args, config)
File "scripts/run.py", line 89, in run_carla_simulation
tm.update(simulation)
File "/home/chiehchiyang/miniconda3/envs/igp/lib/python3.8/site-packages/igp2/carlasim/traffic_manager.py", line 79, in update
self.__spawn_agent(simulation)
File "/home/chiehchiyang/miniconda3/envs/igp/lib/python3.8/site-packages/igp2/carlasim/traffic_manager.py", line 129, in __spawn_agent
agent = carla.CarlaAgentWrapper(agent, vehicle)
AttributeError: module 'carla' has no attribute 'CarlaAgentWrapper'

I solve this error by change carla.CarlaAgentWrapper(agent, vehicle) --> to CarlaAgentWrapper(agent, vehicle)

  1. And then, there is another error that I have no idea how to deal with it. Could you please teach me how to solve it.

[MainThread:igp2.opendrive.map ] [INFO ] Parsing map scenarios/maps/Town01.xodr.
/home/chiehchiyang/miniconda3/envs/igp/lib/python3.8/site-packages/shapely/set_operations.py:133: RuntimeWarning: invalid value encountered in intersection
return lib.intersection(a, b, **kwargs)
[MainThread:igp2.carlasim.carla_] [INFO ] Launching CARLA simulation (server=localhost, port=2000).
[MainThread:igp2.carlasim.carla_] [INFO ] Added agent 0 (actor 197).
[MainThread:igp2.agents.traffic_] [INFO ] Finding path for TrafficAgent ID 198
[MainThread:main ] [ERROR ] 'NoneType' object is not iterable
Traceback (most recent call last):
File "scripts/run.py", line 69, in main
result = run_carla_simulation(simulation, ego_agent, args, config)
File "scripts/run.py", line 89, in run_carla_simulation
tm.update(simulation)
File "/home/chiehchiyang/miniconda3/envs/igp/lib/python3.8/site-packages/igp2/carlasim/traffic_manager.py", line 79, in update
self.__spawn_agent(simulation)
File "/home/chiehchiyang/miniconda3/envs/igp/lib/python3.8/site-packages/igp2/carlasim/traffic_manager.py", line 131, in __spawn_agent
self.__find_destination(agent, initial_state)
File "/home/chiehchiyang/miniconda3/envs/igp/lib/python3.8/site-packages/igp2/carlasim/traffic_manager.py", line 145, in __find_destination
agent.set_destination(Observation({agent.agent_id: state}, self.__scenario_map), goal)
File "/home/chiehchiyang/miniconda3/envs/igp/lib/python3.8/site-packages/igp2/agents/traffic_agent.py", line 45, in set_destination
_, actions = self._astar.search(self.agent_id,
File "/home/chiehchiyang/miniconda3/envs/igp/lib/python3.8/site-packages/igp2/recognition/astar.py", line 113, in search
for ma_args in macro_action.get_possible_args(frame[agent_id], scenario_map, goal):
File "/home/chiehchiyang/miniconda3/envs/igp/lib/python3.8/site-packages/igp2/planlibrary/macro_action.py", line 703, in get_possible_args
connecting_lanes = [suc for suc in current_lane.link.predecessor[0].link.successor
TypeError: 'NoneType' object is not iterable

@CurryChen77
Copy link

Having the same issue, any updates?

@chiehchiYang
Copy link
Author

nope, just give up this repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants