Git Product home page Git Product logo

Comments (5)

whoenig avatar whoenig commented on August 21, 2024

I think a good workaround is to simply generate multiple trajectories - this way you can also control (in your high-level code) how long the pause should be. In the library that is used here, it is also possible to add constraints on derivatives, i.e., you could force the velocity to be zero at a certain waypoint. However, since the timing is computed automatically based on the dynamic limits of your quadrotor, this would not result in a user-configurable pause.

from uav_trajectories.

NicksonYap avatar NicksonYap commented on August 21, 2024

Hi @whoenig

Just some feedbacks & questions here.

I have some waypoints generated from Blender, where it defines what time to be at what coordinate
image

Here's a csv of the path shown above
sequence_000.zip
It has: Timestamp (100ms interval), x,y,z (absolute) and r, g, b

Can this lib be easily extended to also meet time constraints?

from uav_trajectories.

whoenig avatar whoenig commented on August 21, 2024

This tool is not made for this purpose. The problem you are describing is actually simpler (mathematically speaking): a trajectory is just another representation of positions (and higher order derivatives) over time. It looks like Blender already generated some smooth curve (e.g., Bezier curve?). All you would need to do is to export the curve itself and convert it the trajectory format (8th order polynomial spline) that is used for the Crazyflie. This repository here deals with the problem of finding timing information if only the waypoints are known.

from uav_trajectories.

J-Durotifa avatar J-Durotifa commented on August 21, 2024

This tool is not made for this purpose. The problem you are describing is actually simpler (mathematically speaking): a trajectory is just another representation of positions (and higher order derivatives) over time. It looks like Blender already generated some smooth curve (e.g., Bezier curve?). All you would need to do is to export the curve itself and convert it the trajectory format (8th order polynomial spline) that is used for the Crazyflie. This repository here deals with the problem of finding timing information if only the waypoints are known.

Hi Whoenig,

I would like to use timestamped Cartesian coordinates to generate 8th order polynomials like NicksonYap showed in his CSV and i don't know how to do this. Is this something you can elaborate on?

from uav_trajectories.

NicksonYap avatar NicksonYap commented on August 21, 2024

@J-Durotifa so far this is not handled by this repo, nor was it the goal for creating Trajectories

Assuming you use Crazyflie, for now we can only use Crazyflie's Timescale to speed up or slow down the whole Trajectory (a chain of polynomials)

It's equivalent to this repo's 'stretchtime' argument in:
https://github.com/whoenig/uav_trajectories/blob/master/scripts/plot_trajectory.py

For more details on possible workarounds, See:
#3

from uav_trajectories.

Related Issues (14)

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.