Using Vicon Data from ROS and feed it to the Mambo Parrot Drone Flight Control System in Simulink
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ben Isaac
am 16 Mär. 2019
Kommentiert: Ben Isaac
am 21 Mär. 2019
Hi there,
I am trying to interface the Mambo Parrot Drone with a Vicon Motion Capture System. I am accessing the Vicon data through ROS on my Ubuntu laptop. I also have Matlab 2018b & Simulink installed on the same laptop. I want to feed the pose estimate of the Mambo Drone that is captured by Vicon to the Mambo Flight Control System in Simulink. Could you please advise how this can be done?
Thank you.
0 Kommentare
Akzeptierte Antwort
Cam Salzberger
am 18 Mär. 2019
Hello Ben,
If you have the Vicon pose estimate coming in over your ROS network, you can access it directly in Simulink through the use of the Subscribe block.
If the information coming in over ROS from Vicon needs processing to translate it into a usable pose estimate, that can still be accomplished. If the processing is done out of MATLAB, you can simply have the code re-publish on a different ROS topic, and have Simulink listening for that. If the processing is done in MATLAB, you can do that too, but there are better alternatives. The most efficient would probably be to add the processing to the Simulink model as native blocks. An alternative would be to put your MATLAB code that does the translation in as a MATLAB Function Block.
-Cam
3 Kommentare
Cam Salzberger
am 20 Mär. 2019
Hello Ben,
Yes, you will need to make the custom messages available to MATLAB in order to use them within Simulink. Please see the documentation on how to do so.
-Cam
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Parrot Minidrones finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!