Coder Social home page Coder Social logo

Comments (4)

matlabbe avatar matlabbe commented on June 2, 2024 1

Breaking down your message:

  • "possible to load a map, then localize the camera and its pose within that map": yes
  • "update the map accordingly": yes, you would have to manually switch between localization mode and mapping mode after the camera is localized, or start in mapping mode with parameter Rtabmap/StartNewMapOnLoopClosure to true (this will do the "Append Mode").
  • "Furthermore, is it possible to extract and store the user position path (keyframes)? My ultimate goal is to store the keyframes as nodes (storing coordinates) with edges between them": Do you mean saving a "user graph" during localization mode? No, you would need to save the poses on the side yourself with the current poses computed by rtabmap.
  • "is april tag available for localization?": yes, either by using external node like apriltag_ros or by enabling RGBD/MarkerDetection (if rtabmap is built with opencv's aruco module) and setting Marker/CornerRefinementMethod=3 and Marker/Dictionary=20 for 36h11 apriltag family.

cheers,
Mathieu

from rtabmap.

matlabbe avatar matlabbe commented on June 2, 2024 1

Do you use ROS? It will be easier to do what you want with the ROS package.

  1. See #1178 for the first question. The optimized poses are saved when rtabmap is closed:

    _memory->saveOptimizedPoses(_optimizedPoses, _lastLocalizationPose);

  2. See localization mode in ROS. In c++, if you look at the RGBD example, add your database path in Rtabmap's constructor and add parameter Mem/IncrementalMemory=false to the params map.

    ParametersMap params;
    //param.insert(ParametersPair(Parameters::kRGBDCreateOccupancyGrid(), "true")); // uncomment to create local occupancy grids
    // Create RTAB-Map to process OdometryEvent
    Rtabmap * rtabmap = new Rtabmap();
    rtabmap->init(params);

from rtabmap.

kenhuang1964 avatar kenhuang1964 commented on June 2, 2024

Thank you so much @matlabbe!

from rtabmap.

kenhuang1964 avatar kenhuang1964 commented on June 2, 2024

Hey @matlabbe, thank you for your help earlier. I have a few more questions if you don't mind:

  1. Do you have any recommendations for how to extract the poses computed by rtabmap without having to use the GUI? Also, when are optimized poses saved?
  2. How can I load a map and localize the device within that map?

Thanks in advance!

from rtabmap.

Related Issues (20)

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.