Coder Social home page Coder Social logo

planarslam_ros's Introduction

PlanarSlam_ROS

在ros环境下运行Planar SLAM

为了在实验室平台上运行Planar SLAM,相机使用的是D435,故对源作者的SLAM进行稍作修改,使得在ROS环境下运行。

大家将可将main_ros.cc拷贝至源作者Examples/RGB-D

  1. 在工作空间下创建功能包

    ~/catkin_ws/src
    catkin_create_pkg PlanarSLAM roscpp std_msgs cv_bridge message_filters
  2. 将我写的main_ros.cc拷贝至源作者Examples/RGB-D 下,并统一拷贝至PlanarSLAM功能包下

  3. 运行作者的编译文件

    .build.sh
    
  4. 将我上传的CMakeLists.txt替换掉源作者的或者在源作者的CMakeLists.txt 增加如下

    find_package(catkin REQUIRED COMPONENTS
            roscpp
            std_msgs
            sensor_msgs
            cv_bridge
            camera_model
            message_filters
            )
    include_directories(
            ${catkin_INCLUDE_DIRS}
    )
    
    add_executable(Planar_SLAM_ros Examples/RGB-D/main_ros.cc)
    target_link_libraries(Planar_SLAM_ros ${PROJECT_NAME} ${catkin_LIBRARIES})
    
  5. 编译

    cd ~/catkin_ws
    catkin_make 
    
  6. 运行

    rosrun PlanarSLAM Planar_SLAM_ros /home/wangwen/catkin_ws/src/PlanarSLAM/Vocabulary/ORBvoc.txt /home/wangwen/catkin_ws/src/PlanarSLAM/Examples/RGB-D/TUM1.yaml
    //新建终端
    roslaunch realsense2_camera rs_camera.launch

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.