question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DynamicObjectCrossing scenario uses incorrect filter for Walker blueprints

See original GitHub issue

Description DynamicObjectCrossing._spawn_adversary() uses the following line to randomly select and spawn a “walker” actor:

walker = CarlaActorPool.request_new_actor('walker*', transform)

This filter ('walker*') inadvertently allows the (newly added?) 'controller.ai.walker' actor type to be selected (randomly), which doesn’t expose the same API as a vehicle or walker, and leads to a crash when the HandBrakeVehicle behavior is executed in the scenario’s behavior tree.

To Reproduce

  1. Setup to run Carla server version 0.9.6 with matching client installed/available on Python path.
  2. Clone the scenario_runner repo and checkout tag v0.9.6 (and make sure it is available on Python path).
  3. Run the DynamicObjectCrossing scenario multiple times.
  4. Eventually, you should hit an error like the following:
...
File "scenario_runner/srunner/scenariomanager/atomic_scenario_behavior.py", line 1180, in update
    self._vehicle.apply_control(self._control)
AttributeError: 'WalkerAIController' object has no attribute 'apply_control'

During handling of the above exception, another exception occurred:
...
File "scenario_runner/srunner/scenariomanager/atomic_scenario_behavior.py", line 563, in terminate
    self._control.throttle = 0.0
AttributeError: 'NoneType' object has no attribute 'throttle'

NOTE: Since this error is triggered at random, you may have to run the scenario a bunch of times to actually trigger the error. An alternate way is to simply query the blueprint library with the same filter ('walker*'), and you will notice ('controller.ai.walker') included as one of the blueprints.

Expected behavior Scenario should execute without errors every time.

Platform

  • OS: Ubuntu 16.04
  • CARLA version: 0.9.6
  • Python version: 3.5.2
  • Version: 0.9.6

Solution A simple solution that effectively solves this is to change the filter from 'walker*' to 'walker.*':

walker = CarlaActorPool.request_new_actor('walker.*', transform)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fabianoborilcommented, Aug 14, 2019

Thank you for this amazingly described report. I’ll fix this with the next PR.

0reactions
fabianoborilcommented, Aug 26, 2019

Hi, we started having internal discussions as well on this topic. For now however, the master branch shows always the most recent version designed to work with the latest CARLA (release). If you have some relevant changes, you might consider bringing it back to github via a pull request. Otherwise, you need to cherry-pick your changes (or the fixes you would like to have from github).

Reasons for the changes are to have a better architecture and organization for the next CARLA challenge iteration, and new OpenSCENARIO features 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Daniel J. Fremont, Edward Kim, Tommaso Dreossi, Shromona ...
Scenarios for the other simulators can be viewed in the same way. ... If you want to use Scenic with a simulator, see...
Read more >
Towards solving the hard problem of consciousness
The hard problem of consciousness is the problem of explaining how we experience qualia or phenomenal experiences, such as seeing, hearing, and feeling, ......
Read more >
Untitled
Cross examination clipart, Briter 601 msds, Luy mauriki dias de lima, Vegetarian tortilla ... Filter technology limited, My bebe love aldub, Delta tracker, ......
Read more >
IROS 2022 Program | Wednesday October 26, 2022
Technical Program for Wednesday October 26, 2022 ; 10:10-10:20, Paper WeA-5.2 ; A Proprioceptive Method for Soft Robots Using Inertial Measurement ...
Read more >
A Study on Recent Developments and Issues with Obstacle ...
This paper reviews current developments and discusses some critical issues with obstacle detection systems for automated vehicles. The concept of autonomous ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found