原创 最小二乘法、最大似然估計和卡爾曼濾波

一、最小二乘法和最大似然估計 最小二乘法可以從Cost/Loss function角度去想,這是統計(機器)學習裏面一個重要概念,一般建立模型就是讓loss function最小,而最小二乘法可以認爲是 loss function = (

原创 VIDIOC_S_FMT: Device or resource busy

在使用小覓相機SDK過程中,提示: VIDIOC_S_FMT: Device or resource busy Installing gtk2-engines-pixbuf should do the trick for the vid

原创 安裝 Qt Creator ROS 插件

https://ros-qtc-plugin.readthedocs.io/en/latest/_source/How-to-Install-Users.html#qt-installer-procedure   安裝程序下載好了之後,鼠

原创 kalibr 標定雙目相機

1、kalibr 源碼編譯 ROS編譯 見kalibr install wiki: https://github.com/ethz-asl/kalibr/wiki/installation 注意:按照wiki步驟安裝所有依賴包,不然編譯會

原创 evo_traj 錯誤:[ERROR] Unhandled error in evo.main_traj

在使用evo_traj 單軌跡測試的時候出現了問題: 命令: evo_traj tum groundtruth.txt --plot  錯誤1:  name: groundtruth infos: 2281 poses, 30.494

原创 ubuntu 使用代理後git clone拒絕訪問的解決

網上說原因是git被配置了代理,首先查看git代理設置 git config --global -l 報錯:fatal: unable to read config file '/home/felix/.gitconfig': No

原创 Eigen 四元數、歐拉角、旋轉矩陣、旋轉向量相互轉換

一、旋轉向量 1.0 初始化旋轉向量:旋轉角爲alpha,旋轉軸爲(x,y,z) Eigen::AngleAxisd rotation_vector(alpha,Vector3d(x,y,z)) 1.1 旋轉向量轉旋轉矩陣 Eigen

原创 istringstream,ostringstream和stringstream

1、頭文件 #include <sstream> 2、作用 istringstream類用於執行C++風格的字符串流的輸入操作。  ostringstream類用於執行C++風格的字符串流的輸出操作。  stringstream類同時可

原创 CLion 添加ROS環境變量

http://wiki.ros.org/IDEs#CLion https://www.jetbrains.com/help/clion/ros-setup-tutorial.html 添加ROS環境變量 gedit ~/.local/s

原创 bitset 和 cv::Mat 相互轉換

// bitset to Mat: std::bitset<256> bs(11); // some demo value cv::Mat m(1,32,CV_8U, reinterpret_cast<uchar*>(&bs))

原创 二維數組 new delete

#include<iostream> using namespace std; const int M = 10; //行數 const int N = 20; //列數 int main() { //第一種,可以直接[][]

原创 ROS包依賴其他包的消息文件

依賴robot_lib消息包 1、CMakeLists.txt find_package(robot_lib) 2、package.xml <build_depend>robot_lib</build_depend> <run_dep

原创 VINS_Fusion 編譯運行碰到的問題

編譯 編譯ceres時 Could not find a configuration file for package "Eigen3" that is compatible  with requested version "3.3".

原创 兩個隊列實現棧

void push(int x) { if (a.empty() && b.empty()) { a.push(x); return; } if (a.empty()) {

原创 C++ 輸入處理

#include <iostream> #include <vector> #include <string> using namespace std; int main(){ string a; getline(ci