Skip to content

Help you to view list of metrics of cartographer in an efficient way.

License

Notifications You must be signed in to change notification settings

sunbingfeng/carto_metrics_reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple metrics reader for Cartographer

Introduction

Cartographer is a classic Lidar SLAM framework. It provides the main algorithm and the ros-wrapper separately, cartographer and cartographer_ros respectively.

However it's not convenient to debug the cartoghrapher algorithm, since it has many submodules running in an asynchronous manner. To overcome this problem, cartographer designed a metrics factory which can provide a mechanism to publish internal state variables when needed.

We utilize this mechanism, and implement this metrics reader to observe state variable in an easier way.

GUI

python read_metrics.py

CLI

python read_metrics_cli.py

You can add metrics filter through -f option. Please refer to the help message for more options

usage: read_metrics_cli.py [-h] [--window_size WINDOW_SIZE]
                           [--lookup_interval LOOKUP_INTERVAL]
                           [--dump_dir DUMP_DIR]
                           [--filters FILTERS [FILTERS ...]]

Plot Cartographer Metrics

optional arguments:
  -h, --help            show this help message and exit
  --window_size WINDOW_SIZE, -s WINDOW_SIZE
                        How long the monitor window will be.
  --lookup_interval LOOKUP_INTERVAL, -i LOOKUP_INTERVAL
                        The period between two service call, unit: sec
  --dump_dir DUMP_DIR, -d DUMP_DIR
                        Folder to save plots to
  --filters FILTERS [FILTERS ...], -f FILTERS [FILTERS ...]
                        filters through metrics name

Enjoy

About

Help you to view list of metrics of cartographer in an efficient way.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages