Tutorials

Example of Test Driven Development with C++ and Google Test

To develop a software based on “Test Driven Development” one should follow the following steps:

so let say we want to develop a binary search tree,  here I’m using Google Test. Step 1, Write enough failing Test Code so the first step would be something like this:

Step 2, Write Production code to

Example of Test Driven Development with C++ and Google Test Read More »

Standard Exception Handler in C++ and Custom Exception Handler with Examples

Exception handling

C++ Standard Exceptions

List of Example

 

Standard Exception Handler in C++ and Custom Exception Handler with Examples Read More »

Extended Kalman Filter Explained with Python Code

In the following code, I have implemented an Extended Kalman Filter for modeling the movement of a car with constant turn rate and velocity. The code is mainly based on this work (I did some bug fixing and some adaptation such that the code runs similar to the Kalman filter that I have earlier implemented).

Extended Kalman Filter Explained with Python Code Read More »

Parcticle Filter Explained With Python Code From Scratch

In the following code I have implemented a localization algorithm based on particle filter. I have used conda to run my code, you can run the following for installation of dependencies:

and the code:

 

Parcticle Filter Explained With Python Code From Scratch Read More »

Kalman Filter Explained With Python Code From Scratch

This snippet shows tracking mouse cursor with Python code from scratch and comparing the result with OpenCV. The CSV file that has been used are being created with below c++ code. A sample could be downloaded from here 1, 2, 3. Python Kalman Filter

C++ and OpenCV Kalman Filter Rapidcsv has been downloaded from

Kalman Filter Explained With Python Code From Scratch Read More »

Eigen unaryExpr (Function Pointer, Lambda Expression) Example

 

Eigen unaryExpr (Function Pointer, Lambda Expression) Example Read More »

Matrix Decomposition with Eigen: QR, Cholesky Decomposition LU, UL

 

 

Matrix Decomposition with Eigen: QR, Cholesky Decomposition LU, UL Read More »

Eigen Memory Mapping

 

 

Eigen Memory Mapping Read More »