Giter Club home page Giter Club logo

Comments (4)

tongtybj avatar tongtybj commented on September 22, 2024

acoording to https://github.com/uzh-rpg/flightmare/blob/092ff357139b2e98fc92bcdee50f38f85b55246d/flightlib/include/flightlib/common/quad_state.hpp#L15-L17
QS::POSX = 0. So there would be no any trobule in the original coding. Sorry for my misunderstanding.

P.S. for other state such as velocity, we need to use quad_state_.v(0) instead of quad_state_.v(QS::VELX)

from agile_flight.

Glanfaloth avatar Glanfaloth commented on September 22, 2024

Hi I have the same question. I still don't understand what x represents here and why we use both x and p for position state. Could you explain? Thank you! @tongtybj

from agile_flight.

tongtybj avatar tongtybj commented on September 22, 2024

x should denote the all states as defined in following line:

https://github.com/uzh-rpg/flightmare/blob/092ff357139b2e98fc92bcdee50f38f85b55246d/flightlib/include/flightlib/common/quad_state.hpp#L80

from agile_flight.

Glanfaloth avatar Glanfaloth commented on September 22, 2024

Yes, but why did they use x at some places and p at other places? Are they interchangeable?

  bool x_valid = quad_state_.p(QS::POSX) >= world_box_[0] + safty_threshold &&
                 quad_state_.p(QS::POSX) <= world_box_[1] - safty_threshold;
  bool y_valid = quad_state_.p(QS::POSY) >= world_box_[2] + safty_threshold &&
                 quad_state_.p(QS::POSY) <= world_box_[3] - safty_threshold;
  bool z_valid = quad_state_.x(QS::POSZ) >= world_box_[4] + safty_threshold &&
                 quad_state_.x(QS::POSZ) <= world_box_[5] - safty_threshold;

from agile_flight.

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.