Rico's Nerd Cluster

「离开世界之前 一切都是过程」

Computation Tools - OpenCV, PCL, PCD, NanoFLANN

A Running List of Computer Vision Tools

OpenCV Image Processing cv::Mat Create a cv::Mat In C++: 1 2 3 4 5 6 7 8 // method 1 cv::Mat(another_mat); // method 2 cv::Mat A = (cv::Mat_<uchar>(1,2)<<1,2); //CV_8U // method ...

Things About Leetcode Before That Coding Interview

Leetcode IDE Tips, Common Leetcode Problems, C++ Commands, String

Introduction At the bare minimum, it’s good to have a solid understanding of 2 Pointers, sliding window, BFS/DFS, Trees, Graphs, Stacks, Queus, Hash Maps. Leetcode IDE Tips No Global Variables ...

Foundamental Structure of Programs

Callstack

Callstack A callstack is a stack of frames, where a frame represents an active call. Each frame has: return address (where the function returns after it completes), local variables. E.g., if func...

C++ - Rounding

llround llround follows round half away from zero (not bankers rounding)., and returns long long 1 2 3 4 5 6 7 std::llround(2.3) → 2 std::llround(2.5) → 3 std::llround(2.7) → 3 std::llr...

Robotics - [2D SLAM 1] Hands-On Mapping

Point-Point ICP, Point-Line ICP

🧪 Loop Detection Testing Procedure Phase 1: Baseline Verification (No Loop Closure) Objective: Confirm that submaps are constructed correctly before enabling loop closure. Steps: Disable loo...

C++ - Specifiers

Declaration-Only Specifiers

Declaration Only Specifiers These specifiers will only appear in an .hpp file, not in .cpp files. Keyword What it does virtual Marks a member as p...

C++ - Filesystem

std::filesystem::create_directory(path) Thread safety: std::filesystem::create_directory(path); under the hood it issues a single POSIX mkdir() (or the platform equivalent). If the ...

Robotics - [2D SLAM 2] Map Generation

Submap Generation

Submap Generation In modern robotics mapping systems, efficient environment representation and robust localization are achieved by dividing the map into smaller, manageable submaps. Each submap is...

C++ - Segfaults

Out-of-bounds Iterator Access, Core Dump

Out-of-bounds Iterator Access Out-of-bounds iterator access is an undefined behavior, which might give a segfault, or give a garbage value. 1 2 3 4 5 6 7 8 9 10 11 12 #include <vector> #inc...

Robotics - [2D SLAM 1] Introduction and Scan Matching

Point-Point ICP, Point-Line ICP

Introduction The assumption of a robot moving on a 2D plane is a strong one. However, many indoor robots do have support an assumption. Maps in this case can simply be interpreted as an image. Low...