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

AttributeError: 'NoneType' object has no attribute 'is_junction' #7755

Closed
buaali opened this issue Jun 5, 2024 · 0 comments
Closed

AttributeError: 'NoneType' object has no attribute 'is_junction' #7755

buaali opened this issue Jun 5, 2024 · 0 comments

Comments

@buaali
Copy link

buaali commented Jun 5, 2024

CARLA version:0.9.14
Platform/OS:ubuntu
Problem you have experienced:AttributeError: 'NoneType' object has no attribute 'is_junction'
What you expected to happen: How to resolve it
Steps to reproduce:

  1. Open Town01
  2. Set ego_start_location = 299.2,330.6,0.561943 (x,y,z)
  3. Set end_location = 300.70875,330.906875,0.561943 (x,y,z)
  4. agent = BehaviorAgent(vehicle=ego_vehicle, behavior="normal"), ego_vehicle's position is ego_start_location
  5. agent.set_destination(end_location=carla.Location(x=end_x, y=end_y, z=end_z)), set destination as end_location
  6. with CarlaSyncMode(world, camera_rgb, fps=5) as sync_mode:
    while True:
    control = agent.run_step(debug=False)
    ego_vehicle.apply_control(control)
    if agent.done():
    logger.info(
    "The destination has been reached. Stop the simulation!"
    )
    break

Other information (documentation you consulted, workarounds you tried):

I think the reason for this error is that the waypoint planned in the previous step is already near the key point, so an error will be reported when trying to find the next waypoint, but agent.done() does not become True after the previous step is run, resulting in an error.

If you are asking a question please make sure your question was not asked before
by searching among the existing issues and checking the CARLA forum https://github.com/carla-simulator/carla/discussions. Also make sure you have read ourdocumentation and FAQ at http://carla.readthedocs.io.

Yes
If your question is about creating content (assets, levels) you'll most likely
have all the info you need in the Unreal Engine's documentation
https://docs.unrealengine.com

Please, keep the threads focused and single-themed. Make them easy to find
for everyone.

@buaali buaali closed this as completed Jun 5, 2024
@buaali buaali reopened this Jun 5, 2024
@buaali buaali closed this as completed Jun 5, 2024
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

1 participant