Closed kadhirumasankar closed 3 years ago
Sorry for replying so late, since I have been working on a paper submission recently. From the function EGOReplanFSM::waypointCallback, only the first point in topic /waypoint_generator/waypoints is processed. If you want to let the drone fly through multiple waypoints, you can set the flight_type in run_in_sim.launch or simple_run.launch to 2 and manually set each waypoints afterwards in launch files. If you must give the waypoints during the flight using topics, I recommend you publish each waypoint in each message. You will need to determine the time to publish each waypoint.
Thank you. I set flight_type
to 2
and added points to the launch file. Thanks for your help.
Hi, does the drone pass through all the waypoints in your case, with a large (10+) number of them?
You could add more points like our code:
Hi. In 1:05 of your demo video (https://youtu.be/UKoaGW7t7Dk?t=65) I noticed that 4 waypoints are being published at the same time, and ego_planner is being commanded to reach each waypoint in order. What topic would I have to publish to to get this functionality?
So far, I have tried publishing a path to
/waypoint_generator/waypoints
, because when looking at the code inego_replan_fsm.cpp
I noticed that this topic takes a Path message. However, when I try this, only the first point appears in Rviz, and the drone only navigates to the first point.This is a snippet of my code:
What am I doing wrong? Any kind of help would be greatly appreciated