Comments (7)
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.
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.
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.
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.
Unfortunately, this still does not solve the problem. The ego vehicle is still running in autonomous mode when the script is run.
from dreyevr.
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.
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)
- How to set a custom path for autonomous vehicle using PythonAPI? HOT 3
- Custom props in dreyevr HOT 2
- Autopilot vehicles crashing into ego vehicle HOT 11
- scenario_runner error HOT 14
- Certain controls not available after exiting spectator mode HOT 3
- Getting EgoSensor data when the EgoVehicle hasn't spawned yet HOT 9
- UE4 Editor crashed after 'make launch' HOT 2
- Display sim-time in replay; synchronization discussion HOT 6
- make package fails after merging with dev branch HOT 2
- How to specify 2 arguments simultaneously for make import HOT 4
- make: Nothing to be done for 'PythonAPI' // installation issues // parser-issues HOT 58
- FileNotFound error when running the scenario runner HOT 12
- Cannot find vehicle config (.ini) files when adding my own EgoVehicle HOT 2
- DReyeVR Parser data output HOT 9
- "Fatal Error" while using start_replaying.py HOT 7
- "git checkout" command for supported version gives error HOT 1
- getting fatal error HOT 1
- make package not working for the UnrealCarla fork HOT 6
- I have got a new error while I want to make launch after making PythonAPI HOT 19
- Cannot connect with Steam VR HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dreyevr.