Swarm-SLAM
1.0.0
C-SLAM Framework
scancontext.py
Go to the documentation of this file.
1
import
cslam.lidar_pr.scancontext_utils
as
sc_utils
2
3
class
ScanContext
:
4
"""
5
Scan Context descriptor for point clouds
6
From: https://github.com/irapkaist/scancontext
7
"""
8
def
__init__
(self, params, node):
9
self.
node
node = node
10
self.
params
params = params
11
self.
shape
shape = [20,60]
# Same as in ScanContext paper
12
self.
max_length
max_length = 80
# Same as in ScanContext paper
13
14
def
compute_embedding
(self, keyframe):
15
desc = sc_utils.ptcloud2sc(keyframe, self.
shape
shape, self.
max_length
max_length)
16
return
desc.reshape(-1)
17
scancontext.ScanContext
Definition:
scancontext.py:3
scancontext.ScanContext.params
params
Definition:
scancontext.py:10
scancontext.ScanContext.node
node
Definition:
scancontext.py:9
scancontext.ScanContext.max_length
max_length
Definition:
scancontext.py:12
scancontext.ScanContext.compute_embedding
def compute_embedding(self, keyframe)
Definition:
scancontext.py:14
scancontext.ScanContext.__init__
def __init__(self, params, node)
Definition:
scancontext.py:8
scancontext.ScanContext.shape
shape
Definition:
scancontext.py:11
Swarm-SLAM
src
cslam
cslam
lidar_pr
scancontext.py
Generated by
1.9.1