Giter VIP home page Giter VIP logo

Comments (6)

nsubiron avatar nsubiron commented on May 19, 2024 1

Does the API mean we can override ai_control and replace it with whatever we want?

Yes, you can modify it or replace with whatever you want. This is actually the way the learning methods in the paper control the vehicle.

Can I have multiple clients that controls several cars in the same environment?

No, sorry, this is not yet supported. It is one of the features we would like to add in the future.

from carla.

lucosanta avatar lucosanta commented on May 19, 2024

I think that autopilot is an Unreal Engine pilot which moves through the streets. It is a test created just to move around the town environment. You can use it just requesting the measurements and picking ai_control data. You can look a similar example in this gist.

from carla.

nsubiron avatar nsubiron commented on May 19, 2024

Hi @debdip, as @lucosanta says, by autopilot we refer to the hard-coded AI inside the game, this AI takes advantage of all the privileged information available in game and has nothing to do with the learning approaches mention in the paper and video.

from carla.

debdip avatar debdip commented on May 19, 2024

hello Mr. nsubiron and lucosanta. Thank you for your reply.
That's why maybe semantic segmentation is disabled.
I've another question Mr. nsubiron.
Is there any option available to make it enable so that I can perform PSPnet or others to apply and make decision?

from carla.

nsubiron avatar nsubiron commented on May 19, 2024

The AI control is sent every frame together with the measurements, you can send it back to the server to enable the autopilot, or modify if wanted to add for instance some noise to it. The gist that @lucosanta provided is a good example.

With the current API (0.6.0), this is how you get the AI control and send it back to the server

measurements = carla.getMeasurements()
ai_control = measurements['PlayerMeasurements'].ai_control
carla.sendCommand(ai_control)

After 0.7.0 this is done with

measurements, sensor_data = carla_client.read_data()
control = measurements.player_measurements.autopilot_control
carla_client.send_control(control)

from carla.

jiamings avatar jiamings commented on May 19, 2024

Does the API mean we can override ai_control and replace it with whatever we want?
Another question: can I have multiple clients that controls several cars in the same environment?

from carla.

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.