GithubHelp home page GithubHelp logo

Comments (3)

JacopoPan avatar JacopoPan commented on July 19, 2024

Hi @input-0313

yes, you are correct, the first 3 components of the 4D action space in ActionType.VEL are interpreted as a direction in the 3D space, normalized to a unit vector, and then multiplied by the 4th component, interpreted as the desired velocity magnitude.

Of course, as you noted and if you prefer, you can modify this simply by re-implementing method _preprocessAction (part of the reason for doing this was simply to preserve the action space dimension across aviaries and not not change network architectures between learning example).

from gym-pybullet-drones.

input-0313 avatar input-0313 commented on July 19, 2024

@JacopoPan Hello
Thanks for your previous reply. I'm implementing horizontal flight with the CF2X drone model, where the URDF file specifies a maximum flight speed of 30km/h. I've set the action space's xyz velocity thresholds at 8m/s before passing them into the controller, based on the speed unit in BaseRLAviary's "self.SPEED_LIMIT".

However, the actual drone speeds seem substantially lower than these set points. Does PyBullet have an intrinsic speed limit, or are there constraints on the velocities fed into the controller? Additionally, the drone occasionally flips or exhibits instability—might this be due to a need for PID tuning? If so, could you recommend some resources for PID parameter optimization?
Thank you for your time and assistance.

from gym-pybullet-drones.

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.