Skip to content

Commit

Permalink
Remove always True flag (#281)
Browse files Browse the repository at this point in the history
This also makes the C++ and Python pipelines closer, since the C++ has
no option to enable/disable preprocessing
  • Loading branch information
nachovizzo authored Feb 29, 2024
1 parent c6224a1 commit 44d8563
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
1 change: 0 additions & 1 deletion config/advanced.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ out_dir: "results"

data:
deskew: True
preprocess: True
max_range: 100.0 # can be also changed in the CLI
min_range: 0.0

Expand Down
1 change: 0 additions & 1 deletion config/basic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ out_dir: "results"

data:
deskew: False
preprocess: True
max_range: 100.0 # can be also changed in the CLI
min_range: 5.0

Expand Down
1 change: 0 additions & 1 deletion python/kiss_icp/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@


class DataConfig(BaseModel):
preprocess: bool = True
max_range: float = 100.0
min_range: float = 5.0
deskew: bool = False
Expand Down
9 changes: 2 additions & 7 deletions python/kiss_icp/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,10 @@


def get_preprocessor(config: KISSConfig):
return Preprocessor(config) if config.data.preprocess else Stubcessor()
return Preprocessor(config)


class Stubcessor:
def __call__(self, frame: np.ndarray):
return frame


class Preprocessor(Stubcessor):
class Preprocessor:
def __init__(self, config: KISSConfig):
self.config = config

Expand Down

0 comments on commit 44d8563

Please sign in to comment.