In [4]:
cd ../../src/opencv_vision_challenge/
In [5]:
import numpy as np
import matplotlib as mpl
from matplotlib import pyplot as plt
%matplotlib inline
In [6]:
a = np.loadtxt('00.txt')
In [7]:
a.shape
Out[7]:
In [8]:
poses = a.reshape(4541, 3, 4)
In [9]:
poses.shape
Out[9]:
In [10]:
T = poses[:, :, 3].copy()
T.shape
Out[10]:
In [11]:
X = T[:, 0]
Y = T[:, 1]
Z = T[:, 2]
In [12]:
X.shape
Out[12]:
In [13]:
plt.plot(X, Z)
plt.show()
In [13]: