-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement to real world flights #222
Comments
@ZhongmouLi This package already works for real vehicles, and if you look into the closed issues numerous people have flown / are flying it on real systems Is there anything missing on yourside to integrate this on a real system? |
Hi, @Jaeyoung-Lim thanks for your reply. I find your rep very user friendly for people in terms of drone simulation. It does save their time from setting environments and configurations. For instance, I followed your instructions in readme to test controllers in gazebo simulation, which is well detailed. It motivates me to apply it on a real drone. However, I find it harder to apply your controller into real experiments as no more guide is available now. I have to step into more details before I can apply your controller. PS: some code appear without comments and it takes more time. Do you think it is of your interest to add some guides for apply this controller in real experiments? |
@ZhongmouLi Thanks for the suggestion. a) It is a lot harder to make a guideline in the manner you suggested, since everyhardware is different and there is no standard hardware setup that is commonly shared. b) IMO, if you are running on hardware a project should not hide all the details and the user is required to understand all the details. Otherwise realhardeare experiments can be dangerous. Still, it would be great if somebody eho is not used to the framework to go through the instructions. If you are interested in improving the documentation/instructions on improving integrarion into hardware, this would be greatly appreciated |
@ZhongmouLi Any updates? |
Hi @Jaeyoung-Lim , I am applying mavros_controllers in real experiments. It is still under testing. I would like to contribute a guideline to implement mavros_controllers with Pixhawk5 (PX4 1.13). I will let you know you after my tests. |
@ZhongmouLi I have created a thread where people have shared videos of their system working in #225 Hope this helps |
@Jaeyoung-Lim thanks for sharing this infor and it is very helpful to meet other people using mavros_controllers in real flights. |
Hi @Jaeyoung-Lim , I am implementing mavros_controller in real experiments. My drone cannot take off even it receives reference/setpoint and is in offboard. Could you please help me on that? Now, I am sending a take-off trajectory to reference/setpoint that is subscribed by a geometric_controller node. The geometric_controller node receives pose information from Vicon. However, my drone does not take off and it detects taking off but detects landing 2s after as you can see Thank you. |
@ZhongmouLi As you can see in the logs, the position setpoints are either not reaching the vehicle, or not being logged. Are you sure that the references are being received by the autopilot? |
@Jaeyoung-Lim Thanks for your reply. A ref trajectory is sent to reference/setpoint, based on which the geometric_controller node computes control inputs and send thrust and body rates to /mavros/setpoint_raw/attitude. Do you think the drone is swtiched back to landing, because the commands sent to /mavros/setpoint_raw/attitude are not well received? |
Hi @Jaeyoung-Lim I am very happy to tell you that I have successes in applying mavros_controllers in real flight with VICON. I will past the steps to get a drone autonomously fly using mavros_controllers. |
@ZhongmouLi Awesome! Was there a part that you had to trouble shoot the system? Or did it work out of the box? Videos wpuld be aplreciated :) |
Good question. Yes, I have done several modifications to transfer the package from simulation into experiments. I really want to make a tutorial for total beginners guiding them to control a drone autonomously. Before I write down the steps, would you have any suggestions? |
@ZhongmouLi What did you have to do? I am curious because I currently fly the package on a real vehicle. So in principle there should be no modification needed. Plugging vicon into the system is a slightly different story, since this is more related to the state estimate and not necessarily with the controller itself. |
hi,@Jaeyoung-Lim |
@fangjir Yes, you need to send setpoints before neing able to switch to offboard mode |
Sorry to reply you so late, Jaeyong. First, please add this Youtube video as an example of using mavros controller https://youtu.be/WpRVAdvC_cw. I would like to thank you again for your work.
|
I control a drone by sending it thrust+attitude in order to follow a reference trajectory. Here is what I have modified:
Because as you know, some reference trajectory before, made the drone take off aggressively or just directly follow the reference trajectory even the drone was on the ground. I believe a soft taking off is better for beginners.
This is because, I found in experiments, the drone sometimes did not switch to the offboard mode yet, while the planner did send desired positions that are 1m in the air. Then the drone did crash. Generally speaking, my modification is to make a soft take off.
|
Hi @Jaeyoung-Lim , I would like to share the video of flying a quadrotor using mavros_controller. Hope it can encourage others to use it. https://youtu.be/WpRVAdvC_cw?si=kMHjiEhdHg0yH8SN Thanks again for your help on mavros_controller. |
@ZhongmouLi Awesome! Thanks for sharing! |
Hi, Jaeyoung,
Thanks for your developed controller and it is really helpful to test algorithms.
It would be perfect if we can use this controller in real world flights. Do you have any plan to extend this controller for that purpose?
The text was updated successfully, but these errors were encountered: