Git Product home page Git Product logo

region-learner's Introduction

Region Prediction for Efficient Robot Localization on Large Maps

Official repository of the paper Region Prediction for Efficient Robot Localization on Large Maps (available here).

The paper has been submitted to IROS 2023 with the following clearifier video.

iros_video.mp4


The idea is explained in detail in the paper, therefore the focus below will be on how to install everything to easily reproduce experiments (or perform new ones).

Requirements and details for each part are outlined in the README files in the corresponding directory.

Please, when prompted to read a file, read it before continuing with the next steps.

Setting the environment

  1. Clone the repository.
  2. Read the README.md file in the rtabmap folder and install rtabmap.
  3. Read the README.md file in the rtabmap_ros folder and install rtabmap_ros.
  4. Read the README.md file in the RegionLearner folder.
  5. Execute the script datasets.sh to download the rosbags.

Run the experiments

Once you read all the README files as listed above, you should be able to understand the general operation of the system.

  1. To acquire the dataset, launch rtabmap_ros with the appropriate launch file in exploration mode using the command roslaunch rtabmap_ros {lauchername}.launch. Then, run the bag using the command rosbag play --clock path/to/{bagname}.bag. Here the images and the files required for training are saved.
  2. Create the dataset folder structure as explained in RegionLearner README and set the configurations of RegionLearner in RegionLearner/config/config.cfg.
  3. Launch the training of the deep neural network using the command python path/to/RegionLearner/src/train.py.
  4. At this point, the trained neural network is ready to be used for the inference. Launch rtabmap_ros with the appropriate launch file in inference mode to predict the regions probabilities, enabling large scale loop closure detection. The commands to use are the same as 1.

Testing the prediction accuracy

To test the accuracy of the network predictions, you should have the training-test images correspondences. If the dataset contains the raw images (e.g., OpenLoris), you can directly create the training-test file by manually aligning the images, as explained in RegionLearner README file. If the dataset is provided only as bagfiles (e.g., Campus), you need to run rtabmap in exploration mode on the test sequence, in order to acquire the raw images and then create the file as above. Once you have the trained model, the test images and the training-test correspondences file, you can run the test with the command python path/to/RegionLearner/src/test.py to see the top-N accuracy of the network predictions.

Automatic tool for loop detection

When the dataset is provided with a ground-truth of the poses, you can use LoopClosureInspector to automatically find matching poses.

If you want to use it, please read the README.md inside the LoopClosureInspector folder before proceeding.

If you want to use the loop closure inspector tool, you should do:

  1. Set the configurations of LoopClosureInspector in LoopClosureInspector/config/config.cfg.
  2. Run LoopClosureInspector using the command python path/to/LoopClosureInspector/src/loop_inspector.py. Depending on the configurations, different files will be saved (as explained in the README file).
  3. Set the configurations of the test in LoopClosureInspector/config/test.cfg.
  4. Run the test using the command python path/to/LoopClosureInspector/src/test.py. An image will be saved where the loop closures are highlighed.

TODO

  • upload the material for the experiments

region-learner's People

Contributors

scumatteo avatar

Watchers

Guido Borghi avatar Vincenzo Lomonaco avatar Gabriele Graffieti avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.