Git Product home page Git Product logo

Comments (3)

PabloVD avatar PabloVD commented on September 27, 2024

Hi, have you started the server before running the automatic control script?
You have to run the CarlaUE4 executable first to start the Carla simulation, and then run the automatic control script.

from carla.

DP1997 avatar DP1997 commented on September 27, 2024

Hi @PabloVD, thanks for your reply!

Yes, the CARLA server is already running before I am executing the python script.

At the moment my temporary solution is to supply dummy VehicleControls with throttle = 1 and tick the server until the ego vehicle starts to actually move. I then switch to setting VehicleControl with brake = 1 and tick until the car comes to a complete stop again. Afterwards i reset the car to its initial starting position.
After that any VehicleControl command is immediately applied.

from carla.

glopezdiest avatar glopezdiest commented on September 27, 2024

@DP1997 This might be because of the vehicle physics.

Not sure why this is the case, but from testing, we saw that vehicles take around 0.5 seconds to start moving the first time after being spawned. We never really found out why, but it might be due to PhysX engaging the motor? If I recall correctly, one way to remove it was to set the manual_gear_shift to True, and the gear to 1 during one tick.

Closing the issue, but feel free to reopen it if it doesn't work

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.