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.nodenode = node
10  self.paramsparams = params
11  self.shapeshape = [20,60] # Same as in ScanContext paper
12  self.max_lengthmax_length = 80 # Same as in ScanContext paper
13 
14  def compute_embedding(self, keyframe):
15  desc = sc_utils.ptcloud2sc(keyframe, self.shapeshape, self.max_lengthmax_length)
16  return desc.reshape(-1)
17 
def compute_embedding(self, keyframe)
Definition: scancontext.py:14
def __init__(self, params, node)
Definition: scancontext.py:8