Git Product home page Git Product logo

Comments (5)

GustavoSilvera avatar GustavoSilvera commented on June 8, 2024

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.

shh1v avatar shh1v commented on June 8, 2024

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.

GustavoSilvera avatar GustavoSilvera commented on June 8, 2024

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.

GustavoSilvera avatar GustavoSilvera commented on June 8, 2024

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.

shh1v avatar shh1v commented on June 8, 2024

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)

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.