Git Product home page Git Product logo

Comments (7)

GustavoSilvera avatar GustavoSilvera commented on June 9, 2024 1

Ok, yeah this works to filter out the blueprints. Your solution ensures there is no EgoVehicle bp in the blueprints pool to begin with so it only deals with the non-ego vehicles.

Glad it works!

from dreyevr.

GustavoSilvera avatar GustavoSilvera commented on June 9, 2024

Can I ask how exactly you are setting the other vehicles' autopilot?

We had a similar issue here that got resolved. This was using scenario runner agents.

In this case you have to make sure to not call SetAutopilot to a vehicle that has "dreyevr" in the blueprint.id

from dreyevr.

shh1v avatar shh1v commented on June 9, 2024

I am not sure how the ego vehicle will have autopilot mode on since it is not possible from my code. Can you have a look?
This is the script I ran. I am not sure if this problem is just occurring for me, and if you would be able to reproduce the error or not.
script.py.txt

from dreyevr.

GustavoSilvera avatar GustavoSilvera commented on June 9, 2024

Hi, try replacing this line:

if blueprint.has_attribute("driver_id"):

With this

if blueprint.has_attribute("driver_id") and "dreyevr" not in blueprint.id:

Since when you call world.get_blueprint_library().filter("vehicle.*") this will include the singleton EgoVehicle blueprint (in vehicle.dreyevr.egovehicle since it is still a carla vehicle. But you don't want to set this vehicle's Autopilot so make sure not to with the check above.

from dreyevr.

shh1v avatar shh1v commented on June 9, 2024

Unfortunately, this still does not solve the problem. The ego vehicle is still running in autonomous mode when the script is run.

from dreyevr.

shh1v avatar shh1v commented on June 9, 2024

Also, note that the vehicle is running autonomously for some time. Then it stops and then does not move forward. Moreover, I am also not able to control the vehicle once the vehicle stops. So this definitely does not look like setting autopilot is the problem since the autopilot behavior does not continue.

from dreyevr.

shh1v avatar shh1v commented on June 9, 2024

Update: I removed the dreyevr blueprint when getting all the blueprints to simplify my debug process. So, I did:

blueprints = get_actor_blueprints(world, args.filterv, args.generationv)
blueprints = [blueprint for blueprint in blueprints if "dreyevr" not in blueprint.id]

Your initial argument about setting autopilot for "dreyevr" was accurate and that was the reason why the ego vehicle was running autonomously. But, the solution you sent still didn't stop the code from spawning the ego vehicle (at least, that's what I interpreted from the code). Anyways, my issue is fixed now. I really appreciate your help!

from dreyevr.

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.