Field-Robotics-Lab / glider_hybrid_whoi

(Hybrid-) AUG Simulator
8 stars 9 forks source link

Pitch/AOA based on dynamics calculation #56

Closed woensug-choi closed 3 years ago

woensug-choi commented 3 years ago

Ported dynamics calculation from the previous branch on top of current working kinematics plugin to calculate PITCH.

> Status of the previous branch : Unstable, only work for 3-DOF (pitch-X-Z)

Last time, the 6-DOF dynamics calculation was coded based on Isa, 2014 Paper modified to EPIC-DAUG Glider dynamics Overleaf. HOWEVER, it only was stable for 3-DOF (only moving forward; only pitch-X-Z calculation). The background equations are verified at MATLAB, and 3-DOF hard input comparisons look promising. But not in Gazebo (in Gazebo, the force turms are applied as force input to the model with this->link->AddRelativeForce(hydForce))

> Porting dynamics calculation for the pitch to Kinematics to replace flight model

This PR is an attempt to use dynamics based pitch calculation. Yaw controls are done kinematically. Something like a hybrid dynamics-kinematics method.

woensug-choi commented 3 years ago

@greg-burgess This PR could be a solution for AOA/Pitch calculations. Could you try giving it a spin? My testings with hard-code input worked alright. To run this, we need the commanding side to give battery position frl_vehicle_msgs::UwGliderCommand::PITCH_CMD_BATT_POS for pitch command.