Skip to content

Commit

Permalink
fixed import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gaussianBP committed Feb 25, 2020
1 parent 6d9343e commit e68d3d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ data_handling/
__pycache__/
.pyc
ndbp.py
.idea
6 changes: 3 additions & 3 deletions vis/ba_vis.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import threading

from utils import lie_algebra
from utils import transformations


class TrimeshSceneViewer(trimesh.viewer.SceneViewer):
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit e68d3d7

Please sign in to comment.