-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathexample_temp.py
28 lines (24 loc) · 1.17 KB
/
example_temp.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from scipy.interpolate import CubicSpline
import matplotlib
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import pandas
import scipy.integrate
from dynamicsModel_BlueROV2_Heavy_6DoF import BlueROV2Heavy6DoF
import resources
font = {"family": "serif",
"weight": "normal",
"size": 16}
matplotlib.rc("font", **font)
matplotlib.rcParams["figure.figsize"] = (9, 6)
RHS = np.array([-1.366025e+01, 3.660254e+00, 5.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00])
acc = np.array([-8.224159e-01, 1.537282e-01, 4.385965e-01, 1.564733e-01, 8.371019e-01, 0.000000e+00])
M = np.array([
[1.690000e+01, 0.000000e+00, 0.000000e+00, 0.000000e+00, 2.850000e-01, -0.000000e+00],
[0.000000e+00, 2.410000e+01, 0.000000e+00, -2.850000e-01, 0.000000e+00, 0.000000e+00],
[0.000000e+00, 0.000000e+00, 1.140000e+01, 0.000000e+00, -0.000000e+00, 0.000000e+00],
[0.000000e+00, -2.850000e-01, 0.000000e+00, 2.800000e-01, 0.000000e+00, 0.000000e+00],
[2.850000e-01, 0.000000e+00, -0.000000e+00, 0.000000e+00, 2.800000e-01, 0.000000e+00],
[-0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00, 2.800000e-01],
])