Control UAV in Gazebo With Simulink

15 views (last 30 days)
Ans Stramberk
Ans Stramberk on 18 Jun 2021
Commented: Jianxin Sun on 21 Jun 2021
I added a quadcopter, installing some packages, in the preset "Differential-Drive Robot" simulation environment for co-simulation in Gazebo with Simulink and i modified the blocks. The rotors are rotate but the drone does not take off. Anyone have experiences?

Answers (1)

Jianxin Sun
Jianxin Sun on 18 Jun 2021
Set motor joint velocity will rotate the rotors but that will not generate lift since Gazebo is not simulating aerodynamices. You would need to compute lift and torque yourself based on motor speed and apply them to the UAV's motor link. You can check out GazeboMotorModel::UpdateForcesAndMoments in for reference.
Ans Stramberk
Ans Stramberk on 21 Jun 2021
So, i can calculate thrust and torque directly on simulink, based on the speed of the rotors, or i can modify the quadcopter model on Gazebo with a series of if and else as you showed me?
Jianxin Sun
Jianxin Sun on 21 Jun 2021
You can use Simulink to directly compute force and torque and apply to Gazebo links.

Sign in to comment.




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!