Git Product home page Git Product logo

jjd9 / robotmapping_slam_assignments_in_cpp Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 2.0 6.27 MB

Assignments from the robot mapping course taught by Dr. Cyrill Stachniss at the University of Freiburg, solved in C++. Credit for the data files, assignments, and Octave "tools" code off of which some of the c++ code is based: Dr. Cyrill Stachniss.

License: MIT License

C++ 92.45% Python 5.25% MATLAB 2.13% C 0.16%

robotmapping_slam_assignments_in_cpp's Introduction

RobotMapping_SLAM_Assignments_In_Cpp

I solved the assignments from the SLAM (2013) or "Robot Mapping" course taught by Dr. Cyrill Stachniss using C++.

Requirements

The only 3rd party dependency for the C++ code is the linear algebra library Eigen. I used 3.3.7, but it is possible that this could work with older/newer versions.

I have been compiling this on a windows 10 PC using g++ version 6.3.0, and it is not giving me any warnings.

Status / TODO's:

I have solved the problems and my plots agree with those in the assignments or the "world" definitions; however, some of the code could certainly be improved in terms of proof of validity, readability, and efficiency. There is inconsistent structuring of the project folders at the moment, so I plan to fix this.

Dumping into csv and plotting with python "works", but I would really like to setup something like gnuplot so the plots can be generated as the code is running.

I would like to setup a set of cMake files to build the whole project at once so people do not have to compile each folder individually.

I am working on this as a side project, so I will get to these issues as my freetime allows.

Sources:

[1] Jacob, B., and G. Guennebaud. "Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms." 2020. http://eigen.tuxfamily.org/index.php?title=Main_Page

[2] *Stachniss, Cyrill. Robot Mapping, University of Freiburg. http://ais.informatik.uni-freiburg.de/teaching/ws13/mapping/

[3] Thrun, Sebastian. "Probabilistic robotics." Communications of the ACM 45.3 (2002): 52-57.

*Credit for the data files, assignments, and Octave "tools" code off of which some of the c++ code is based goes to Dr. Cyrill Stachniss.

robotmapping_slam_assignments_in_cpp's People

Contributors

jjd9 avatar

Stargazers

 avatar Baasit avatar SS avatar ali_robot avatar

Watchers

 avatar

robotmapping_slam_assignments_in_cpp's Issues

Segmentation fault in ekf_slam.cpp

Compiled with g++-12 and linking libeign3.4
OS: ubuntu 22.04

g++-12 -g -Wall -I. ekf_slam.cpp
gdb a.out
(gdb) r
Starting program: /home/tomdean/RaspberryPi/NewRobot/work/RobotMapping_SLAM_In_Cpp/EKF_Slam/C++/a.out
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Read files
Initialize

Program received signal SIGSEGV, Segmentation fault.
std::_Bit_reference::operator bool (this=0x7fffffffd540) at /usr/include/c++/12/bits/stl_bvector.h:96
96 { return !!(*_M_p & _M_mask); }
(gdb) bt
#0 std::_Bit_reference::operator bool (this=0x7fffffffd540) at /usr/include/c++/12/bits/stl_bvector.h:96
#1 0x0000555555558e4e in correction_step (mu=..., sigma=..., z=std::vector of length 2, capacity 2 = {...}, observedLandmarks=std::vector of length 0, capacity 0)
at /home/tomdean/RaspberryPi/NewRobot/work/RobotMapping_SLAM_In_Cpp/EKF_Slam/C++/correction_step.h:47
#2 0x000055555555a19e in main () at ekf_slam.cpp:63

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.