Addressed (some) comments by Duy

release/4.3a0
Frank Dellaert 2018-10-16 10:36:13 -04:00
parent 16f8fb031a
commit 89101c1220
2 changed files with 2 additions and 2 deletions

View File

@ -1 +0,0 @@
from . import SFMdata

View File

@ -60,7 +60,8 @@ def plot_pose3_on_axes(axes, pose, axis_length=0.1):
line = np.append(origin[np.newaxis], z_axis[np.newaxis], axis=0) line = np.append(origin[np.newaxis], z_axis[np.newaxis], axis=0)
axes.plot(line[:, 0], line[:, 1], line[:, 2], 'b-') axes.plot(line[:, 0], line[:, 1], line[:, 2], 'b-')
# # plot the covariance # plot the covariance
# TODO (dellaert): make this work
# if (nargin>2) && (~isempty(P)) # if (nargin>2) && (~isempty(P))
# pPp = P(4:6,4:6); % covariance matrix in pose coordinate frame # pPp = P(4:6,4:6); % covariance matrix in pose coordinate frame
# gPp = gRp*pPp*gRp'; % convert the covariance matrix to global coordinate frame # gPp = gRp*pPp*gRp'; % convert the covariance matrix to global coordinate frame