Control UAV in Gazebo With Simulink

조회 수: 14 (최근 30일)
Ans Stramberk
Ans Stramberk 2021년 6월 18일
댓글: Jianxin Sun 2021년 6월 21일
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?

답변 (1개)

Jianxin Sun
Jianxin Sun 2021년 6월 18일
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 https://github.com/ethz-asl/rotors_simulator/blob/master/rotors_gazebo_plugins/src/gazebo_motor_model.cpp for reference.
  댓글 수: 2
Ans Stramberk
Ans Stramberk 2021년 6월 21일
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 2021년 6월 21일
You can use Simulink to directly compute force and torque and apply to Gazebo links.

댓글을 달려면 로그인하십시오.

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by