I am starting with NumPy.
Given two np.array
s, queu
and new_path
:
queu = [ [[0 0]
[0 1]]
]
new_p
what you need is np.hstack
In [73]: queu = np.array([[[0, 0],
[0, 1]]
])
In [74]: queu.shape
Out[74]: (1, 2, 2)
In [75]: new_path = np.array([ [[0, 0],
[1, 0],
[2, 0]]
])
In [76]: new_path.shape
Out[76]: (1, 3, 2)
In [81]: np.hstack((queu, new_path))
Out[81]:
array([[[0, 0],
[0, 1],
[0, 0],
[1, 0],
[2, 0]]])