10_ Visual odometer 1_ Triangulation

preface Through the introduction in the previous section, we can calculate the camera motion, but we don't know the specific position of feature points in space. In monocular SLAM, we cannot obtain the depth information of pixels only by relying on a single image. We need to estimate the depth of map points by triangulation. Triangulation Tr ...

Posted by ChrisMayhew on Mon, 24 Jan 2022 09:35:09 +0100

Using C + + to realize Chinese chess

Project introduction Recently, I learned about STL library and some practical containers. At the same time, I am also a chess lover. I wondered if I could make a chess game applet and use the knowledge I learned, so I started to do this project, which took about two days to basically complete, However, there are still some functions (general p ...

Posted by wtech on Mon, 24 Jan 2022 06:26:45 +0100

[STL]set common usage details

catalogue introduce Introduction to common usage 1. Definition of set 2. Access to elements in the set container 3. set common function analysis 1)insert() 2)find() 3)erase() 4)size() 5)clear() Common use extend introduce Set is translated into a set, which is an internally ordered container without duplicate elements. In the exa ...

Posted by miasma on Mon, 24 Jan 2022 02:07:52 +0100

[C + +] memory space layout, new/delete, malloc/free

Layout of memory space Each application has its own independent memory space, which generally has the following areas Stack space Every time a function is called, a continuous stack space will be automatically allocated to store the local variables generated by the function, which will be automatically recycled after the function is called ...

Posted by joliocesar on Mon, 24 Jan 2022 01:52:56 +0100

C + + function definition and call

A function is a set of statements that perform a task together. Every C + + program has at least one function, that is, the main function. All simple programs can define other additional functions. You can divide the code into different functions. It's up to you to divide the code into different functions, but logically, the division is usuall ...

Posted by sysop on Sun, 23 Jan 2022 23:29:34 +0100

LLVM official tutorial Chap 3

note: Llvm3 is required Version 7 and above You will find that these tutorials are described from the bottom up. It may be difficult to understand at first reading. The only way is to read them several times. set up First, make some settings, mainly adding the codegen() function to all abstract syntax trees ///ExprAST - all expression nodes ...

Posted by BrianG on Sun, 23 Jan 2022 22:13:01 +0100

[PTA - grade B - detailed explanation] 1014 - Sherlock Holmes's date - I don't understand the series

Description: the difficulty of this topic is not very high, because the topic has described the ideas almost, but there are some details to pay attention to Title: Solution 1: using char array #include<iostream> #include<string> using namespace std; int main() { string s1, s2, s3, s4; cin >> s1 >> s2 >> s3 ...

Posted by TheSaint97 on Sun, 23 Jan 2022 13:32:47 +0100

Variables and static keywords

1, Variable Variable: open up a space in memory to store the corresponding value. The value stored in this space can be changed Variable declaration: tell the compiler that there is a variable. The compiler opens up a space in memory. If there is no assignment, the stored value is a random value Variable declaration syntax:   type var ...

Posted by Fastback_68 on Sun, 23 Jan 2022 13:03:10 +0100

Class and object beginner

Class is like a container, putting the same transaction in the same place. Equivalent to Xiao Ming, Xiao Hong, etc. all belong to the category of people. Xiao Ming is also called object in c + +. Take Xiao Ming as an example: Xiao Ming has his own height, weight and age. These are the attributes that Xiao Ming has called objects. When Xiao M ...

Posted by Dark-Hawk on Sun, 23 Jan 2022 12:13:51 +0100

Sword finger - tree chapter (C + +)

Tree article Question 1: depth of binary tree Enter a binary tree and find the depth of the tree. The nodes (including root and leaf nodes) passing from root node to leaf node form a path of the tree. The length of the longest path is the depth of the tree, and the depth of the root node is regarded as 1. Data range: the number of nodes ...

Posted by dlester on Sun, 23 Jan 2022 10:11:20 +0100