Skip to content

Instantly share code, notes, and snippets.

View gonzaloruizdevilla's full-sized avatar

Gonzalo Ruiz de Villa gonzaloruizdevilla

  • GFT
  • Madrid, Spain
View GitHub Profile
@gonzaloruizdevilla
gonzaloruizdevilla / main.cpp
Created February 13, 2019 08:55
Coding the Motion Model
#include <iostream>
#include <vector>
#include "helpers.h"
using std::vector;
vector<float> initialize_priors(int map_size, vector<float> landmark_positions,
float position_stdev);
@gonzaloruizdevilla
gonzaloruizdevilla / helpernormpdf.cpp
Created February 13, 2019 08:47
helpernormpdf.cpp
#ifndef HELP_FUNCTIONS_H
#define HELP_FUNCTIONS_H
#include <math.h>
class Helpers {
public:
// definition of one over square root of 2*pi:
constexpr static float STATIC_ONE_OVER_SQRT_2PI = 1/sqrt(2*M_PI);
@gonzaloruizdevilla
gonzaloruizdevilla / angular.json
Created November 24, 2018 10:32
Chrome Extension angular.json
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"AngularExtensionProject": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"prefix": "app",
@gonzaloruizdevilla
gonzaloruizdevilla / manifest.json
Created November 22, 2018 18:30
manifest.json
{
"manifest_version": 2,
"name": "Angular Extension",
"description": "Una extension construida con Angular",
"version": "1.0",
"browser_action": {
"default_icon": "icon.png",
"default_popup": "index.html"
},
"permissions": [],
@gonzaloruizdevilla
gonzaloruizdevilla / angularextension.sh
Created November 22, 2018 18:13
angularextension.sh
ng new AngularExtensionProject
@gonzaloruizdevilla
gonzaloruizdevilla / angularcli.sh
Last active November 22, 2018 18:13
Angular Chrome Extension
npm install -g @angular/cli
#include <iostream>
#include "Dense"
#include <vector>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
VectorXd CalculateRMSE(const vector<VectorXd> &estimations,
@gonzaloruizdevilla
gonzaloruizdevilla / main.cpp
Created November 20, 2018 19:00
Jacobian Matrix Part 1
#include <iostream>
#include "Dense"
#include <vector>
#include <math.h>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
MatrixXd CalculateJacobian(const VectorXd& x_state);
@gonzaloruizdevilla
gonzaloruizdevilla / kalman_filter.cpp
Last active November 20, 2018 17:23
Kalman Filter: Laser Measurements
#include "kalman_filter.h"
KalmanFilter::KalmanFilter() {
}
KalmanFilter::~KalmanFilter() {
}
void KalmanFilter::Predict() {
x_ = F_ * x_;
@gonzaloruizdevilla
gonzaloruizdevilla / kalman_filter.cpp
Created November 20, 2018 11:44
Kalman Filter Equations in C++ Part 1
// Write a function 'filter()' that implements a multi-
// dimensional Kalman Filter for the example given
//============================================================================
#include <iostream>
#include "Dense"
#include <vector>
using namespace std;
using namespace Eigen;