From e68d3d7b84e788490573c679e857f9e7516d120e Mon Sep 17 00:00:00 2001 From: joe Date: Tue, 25 Feb 2020 12:14:45 +0000 Subject: [PATCH] fixed import issue --- .gitignore | 1 + vis/ba_vis.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index ce6799c..1048907 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ data_handling/ __pycache__/ .pyc ndbp.py +.idea diff --git a/vis/ba_vis.py b/vis/ba_vis.py index e654bab..a1162f4 100644 --- a/vis/ba_vis.py +++ b/vis/ba_vis.py @@ -5,7 +5,7 @@ import threading -from utils import lie_algebra +from utils import transformations class TrimeshSceneViewer(trimesh.viewer.SceneViewer): @@ -36,7 +36,7 @@ def update(self, graph): # Update camera poses for i, params in enumerate(cam_params): - Twc = np.linalg.inv(lie_algebra.getT_axisangle(params)) + Twc = np.linalg.inv(transformations.getT_axisangle(params)) cam_name = f'cam_{i}' self.scene.graph.update(cam_name, matrix=Twc) self._update_vertex_list() @@ -115,7 +115,7 @@ def create_scene(graph, fov=(640, 480)): scene = trimesh.Scene() for i, params in enumerate(cam_params): - Twc = np.linalg.inv(lie_algebra.getT_axisangle(params)) + Twc = np.linalg.inv(transformations.getT_axisangle(params)) cam_name = f'cam_{i}' cam = trimesh.scene.Camera(fov=angle_fov_deg)