geohot / twitchslam

A toy implementation of monocular SLAM written while livestreaming

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ERROR

Yeniceugur opened this issue · comments

gur@ugur-Mac ugur@ugur-Mac twitchslam-master % F=525 python3 slam.py videos/test_drone.mp4
pygame 2.0.1 (SDL 2.0.14, Python 3.9.2)
Hello from the pygame community. https://www.pygame.org/contribute.html
using camera 1024x576 with F 140.000000
pygame 2.0.1 (SDL 2.0.14, Python 3.9.2)
Hello from the pygame community. https://www.pygame.org/contribute.html

*** frame 0/628 ***
Traceback (most recent call last):
File "/Users/ugur/Public/twitchslam-master/slam.py", line 218, in
slam.process_frame(frame, None if gt_pose is None else np.linalg.inv(gt_pose[i]))
File "/Users/ugur/Public/twitchslam-master/slam.py", line 31, in process_frame
frame = Frame(self.mapp, img, self.K, verts=verts)
File "/Users/ugur/Public/twitchslam-master/frame.py", line 84, in init
self.id = tid if tid is not None else mapp.add_frame(self)
AttributeError: 'Map' object has no attribute 'add_frame'

PLEASE, HELP ME % F=525 python3 slam.py videos/test_drone.mp4
pygame 2.0.1 (SDL 2.0.14, Python 3.9.2)
Hello from the pygame community. https://www.pygame.org/contribute.html
using camera 1024x576

with F 140.000000

pygame 2.0.1 (SDL 2.0.14, Python 3.9.2)
Hello from the pygame community. https://www.pygame.org/contribute.html

*** frame 0/628 ***
Traceback (most recent call last):
File "/Users/ugur/Public/twitchslam-master/slam.py", line 218, in
slam.process_frame(frame, None if gt_pose is None else np.linalg.inv(gt_pose[i]))
File "/Users/ugur/Public/twitchslam-master/slam.py", line 31, in process_frame
frame = Frame(self.mapp, img, self.K, verts=verts)
File "/Users/ugur/Public/twitchslam-master/frame.py", line 84, in init
self.id = tid if tid is not None else mapp.add_frame(self)
AttributeError: 'Map' object has no attribute 'add_frame'

HELP ME , PLEASE

Please see #11 for a fix. You have installed the wrong pangolin.