Field-Robotics-Lab / glider_hybrid_whoi

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

model is drowning even without any forces applied. #8

Closed woensug-choi closed 4 years ago

woensug-choi commented 4 years ago

Following is the initial logs when the model is uploaded to the world in gazebo. Even though initial velocities forces are zeros, suddenly -z directional velocity emerges. It is calculated using 'GetRelativeLinearVel()' which is gazebo's original function. Changing time step schemes in the world file does change rate, but not much. 'ComputeAcc(velRel, _time, 0.3)' at UUV simulator does control oscillation but does not change its tendency to increase (tendency to drown). Maybe it's only causing problem when there's no external forces... (need to construct a case with MATLAB to validate this). Confirmed that no ocean current is set. (all mean values and noise amplitudes are set zero).

[Msg] model mass 69.7 [Msg] gravity 9.8 [Msg] calculated mass 69.7 [Msg] buoyancy Force 0 0 683.06 [Msg] slidingMassTorque 0 0 0 [Msg] flowVel 0 0 0 [Msg] linVel 0 0 0 [Msg] angVel 0 0 0 [Msg] velRel 0 -0 -0 0 -0 -0 [Msg] dampin 0 0 0 0 0 0 [Msg] added -0 -0 -0 -0 -0 -0 [Msg] coriolis 0 0 0 0 0 -0 [Msg] model mass 69.7 [Msg] gravity 9.8 [Msg] calculated mass 69.7 [Msg] buoyancy Force 0 0 683.06 [Msg] slidingMassTorque 0 0 0 [Msg] flowVel 0 0 0 [Msg] linVel 0 0 -2.4e-05 [Msg] angVel -0 4e-06 0 [Msg] velRel 2.77907e-10 -9.90517e-19 2.42656e-05 -1.01036e-14 -4.4478e-06 -9.83068e-17 [Msg] dampin -6.17859e-19 -4.05343e-24 -6.04699e-13 3.65022e-23 2.74234e-13 8.83605e-25 [Msg] added -1.66744e-07 1.41149e-14 -0.272988 6.06216e-13 0.0180136 4.71873e-13 [Msg] coriolis 8.09464e-09 -1.83877e-17 -4.94431e-15 -2.66696e-21 4.78794e-13 -1.19537e-18

woensug-choi commented 4 years ago

Testing hardcoded tau(external force) as vector6d (1, 0, 0, 0, 0, 0) showed following velocity changes (Capture). The self-drowning characteristic persists.

The original problem lead to this issue.

Insane movements found on UUV simulator's original plugin !!

roslaunch uuv_gazebo_worlds ocean_waves.launch
roslaunch eca_a9_description upload_eca_a9.launch

which uploads eca_a9 model of UUV simulator with its plugins. The AUV moves upward gradually when uploaded with neutural buoyancy option turned off. When neuturally_buoyancy option is turned on, it drowns slowly (same problem with modified hybrid glider plugin). HOWEVER, if waited long enough, the model suddenly make very insane movements without any external forces applied. Don't know whats causing it. It must be related to UUV simulator bug ' tag does nothing. #77' which remains an open issue.

woensug-choi commented 4 years ago

<gravity>0</gravity> right after <physics>at world file fixes drowning. Need more tests how it effects kinematics.