beomsu7 / Fast-Planner

A Robust and Efficient Trajectory Planner for Quadrotors
GNU General Public License v3.0
14 stars 2 forks source link

Todo list(for me)

take off height is 1m, mayb add param to change this(/plan_manage/script/trajectory_msgconverter~.py)

Fast-Planner for px4

The orignal fast planner is https://github.com/HKUST-Aerial-Robotics/Fast-Planner
in may case the main algorithm and concept is same but edited for px4 sitl and real flight

px4
My drone use px4 with D435i, T265
I added and edited some parts to run in px4 and check it in px4_sitl gazebo

CONCEPT

This is simple
(1) user - Set the destination
(2) kino or topo planner gonna make the trajectory
(3) pub the trajectory to mavros as /mavros/setpoint_raw/local
(4) then px4 gonna fly

In my case, I used https://github.com/mzahana/px4_fast_planner and this one use 'movros_controllers', which was unstable in my drone

INSTALL & SETTINGS

RUN in gazebo

in another terminal

RUN in real drone

ignition gazebo(working)

ERRORS

There were two main error when I tested and runned these

(1) Fast-planner is not working error

when clicking and dragging for 2d nav goal then the error go up In my desktop the error go up and laptop doesn't screensh

(2) mavros setpoint not working error in sitl

if drone arms but not takes off then, I'm not sure but my solution was change the topic from /mavros/setpoint_raw/local to /mavros/setpoint_position/local
if you changes it, then the topic doesn't care about acc and vel, only position

the way to change the setpoint topic is edit the /Fast-Planner/fast_planner/plan_manage/launch/px4_sitl_kino_replan.launch from to