Application: graphslam-engine


graphslam-engine – Construct and solve robot pose graphs from rawlog dataset files

An example of using the graphslam-engine application is given below:


The available command line arguments are listed below:

Alternatively run graphslam-engine -h for the full arguments list



Aim of the app is to perform 2D graph-slam: Robot localizes itself in the environment while, at the same time builds a map of that environment. App currently executes SLAM using MRPT rawlog files (both MRPT rawlog formats are supported) as input which should contain (some of) the following observation types:

  • CObservationOdometry
  • CObservation2DRangeScan
  • CObservation3DRangeScan
    Working with 3DRangeScan is currently in an experimental phase.

The majority of the graphslam-engine parameters in each case should be specified in an external .ini file which is to be given as a command-line argument. The following parameters can also be specified as command-line arguments:

  • .ini-file [REQUIRED]Specify the .ini configuration file using the -i, –ini-file flags. Configuration file parameters are read by the main CGraphSlamEngine class as well as the node/edge registration schemes, and the optimization scheme.
  • rawlog-file [REQUIRED]Specify the rawlog dataset file using the -r, –rawlog flags.
  • ground-truth
    Specify a ground truth file with -g, –ground-truth flags. Ground truth has to be specified if user has set visualize_slam_metric or visualize_ground_truth to true in the .ini file, otherwise an exception is raised.
  • Node/Edge registration decider classes to be used
    Specify the node registration or/and edge registration decider classes to be used using -n, –node-reg, -e –edge-reg flags.If not specified the default CFixedIntervalsNRD, CICPCriteriaERD are used as node and edge registration decider schemes respectively.
  • Optimizer class to be used
    Specify the class to be used for the optimization of the pose-graph using the -o –optimizer flags. Currently the only supported optimization scheme is Levenberg-Marquardt non-linear graph optimization defined in optimize_graph_spa_levmarq
    If not specified, the default CLevMarqGSO is used.


Sample calls of the graphslam-engine application are given below:

For more details on the application usage, and for insight on the corresponding mrpt-graphslam library classes see here.

// TODO – add link to the PDF

Search C++ API:



Latest blog entries

Recent activity



web stats