You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Open Town01
Set ego_start_location = 299.2,330.6,0.561943 (x,y,z)
Set end_location = 300.70875,330.906875,0.561943 (x,y,z)
agent = BehaviorAgent(vehicle=ego_vehicle, behavior="normal"), ego_vehicle's position is ego_start_location
agent.set_destination(end_location=carla.Location(x=end_x, y=end_y, z=end_z)), set destination as end_location
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.
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.
The text was updated successfully, but these errors were encountered:
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:
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.
The text was updated successfully, but these errors were encountered: