HKUST-Aerial-Robotics / Fast-Planner

A Robust and Efficient Trajectory Planner for Quadrotors
GNU General Public License v3.0
2.4k stars 665 forks source link

Sending the UAV to multiple points without using 2D Nav Goal on rviz #68

Closed bharat787 closed 3 years ago

bharat787 commented 3 years ago

I'm trying to make the UAV go on a set path. I changed the flight_type to 2 in kino_replan.launch to use and set the preset points in kino_alogorithm.xml and kino_replan.launch. But during execution I still have to use the 2D Nav Goal button in rviz to make the UAV navigate to the next preset point.

Is there a way to make it automatically go through all the set points.

Thanks

ZbyLGsc commented 3 years ago

Presetting multiple points is not supported for kino_replan, the waypoints will be executed one by one; Use topo_replan instead in which you only need to trigger the planner once.

ZbyLGsc commented 3 years ago

If you are determined to use kino-replan, then you should modify the state machine(KinoReplanFSM) to enable continuous execution of the waypoints without using 2D Nav Goal to trigger it repeatedly.

bharat787 commented 3 years ago

Thanks for the suggestion i'll try them out.

bharat787 commented 3 years ago

Presetting multiple points is not supported for kino_replan, the waypoints will be executed one by one; Use topo_replan instead in which you only need to trigger the planner once.

Facing the same issue on topo_replan.

ZbyLGsc commented 3 years ago

Did you set flight_type=3 and set point_num and point0, point1 ... pointn properly?

bharat787 commented 3 years ago

Did you set flight_type=3 and set point_num and point0, point1 ... pointn properly?

Screenshot from 2020-11-07 08-40-56

The comments did not mention there was a mode 3, but changing it to 3 made it work!

Thanks for the fast responses.