Comments (5)
I think there might be some confusion here that I'd like to clear up.
The current implementation of DReyeVR "Autopilot" uses the same SetAutopilot
function that CARLA uses for their NPC agents. At its core, this uses CARLA's TrafficManager
which acts like a simple PID controller for throttle/steering that follows a predefined route. To our knowledge the most straightforward (and intended) way to enable and interact with the TrafficManager was through the PythonAPI as we do in DReyeVR_AI.py
. There is no technical limitation as to why you can't implement the interaction to start and communicate with the TM in C++, we just haven't done so yet.
On the other hand, the "handoff" is what we define as the action which switches who/what is in control of the EgoVehicle. By default the user (human) is in control and can drive with keyboard/logi-wheel, but as per our documentation you can also (through C++ events) execute this handoff at any time and pass over control to the Autopilot (assuming the TM is running).
from dreyevr.
Hi! Thank you so much for the quick response. I am quite new to Carla. Could you please direct me to the documentation for setting autopilot using Traffic Manager? I would really apprecaite it.
from dreyevr.
Well the TL;DR of it that we use is to first enable a TM instance in the PythonAPI. Then with that running we can just call SetAutopilot(true)
in the EgoVehicle.
For more in-depth documentation here is CARLA's docs.
from dreyevr.
If you are more interested in the innards of the wheeled-vehicle AI controller check out CARLA's WheeledVehicleAIController class for this. (Note that our EgoVehicle's default controller inherits from this class so we have all the same functionality.
from dreyevr.
This helps me a lot. Thank you. I will close this issue soon once I am able to implement it :)
from dreyevr.
Related Issues (20)
- schematic_mode.py gives KeyError on "number_of_wheels" HOT 4
- 'Actor' object has no attribute 'set_autopilot' HOT 5
- 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
- CarlaUE4 editor crashes after pressing play HOT 11
- Just bicycle made HOT 5
- How to pause world simulation HOT 28
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.