Giter Club home page Giter Club logo

Comments (3)

giorgiovaccarino avatar giorgiovaccarino commented on August 13, 2024

Modifying the following parameters I obtained a trajectory with very small rotations:
faster.yaml
w_max: 0.2 #4.0 # [rd/s] Maximum angular velocity. ~4.0 for Hardware
alpha_filter_dyaw: 0.99 #0 #was 0.92 #[] Filter parameter for dyaw, \in [0,1]. Higher--> More aggressive filtering
v_max: 1 # 5.0 #[m/s] 1.4
a_max: 1 #5.0 #[m/s2] 1.4
j_max: 35 #8.0 #[m/s3] 35

Does anyone have any further advice?

from faster.

jtorde avatar jtorde commented on August 13, 2024

Hi @giorgiovaccarino,

When you do this:

self.desired_position.pose.position.x = data.p.x
self.desired_position.pose.position.y = data.p.y
self.desired_position.pose.position.z = data.p.z
q = quaternion_from_euler(0, 0, data.yaw)
self.desired_position.pose.orientation.x = q[0]
self.desired_position.pose.orientation.y = q[1]
self.desired_position.pose.orientation.z = q[2]
self.desired_position.pose.orientation.w = q[3]

I think you are not taking into account that the acceleration of the goal message is determining two degrees of freedom of the orientation of the drone. The last degree of freedom is determined by yaw.

You can find an example of how to map acceleration and yaw to a quaternion in this file, which is the one used by FASTER in the simulation. More info is available in Table 3 of this paper.

Hope this helps!

from faster.

jtorde avatar jtorde commented on August 13, 2024

Closing this for now, feel free to reopen it if you are still facing this issue

from faster.

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.