Skip to content

Commit 1fbc941

Browse files
committed
final_sync
1 parent f1de668 commit 1fbc941

File tree

143 files changed

+298
-152
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+298
-152
lines changed

_posts/.obsidian/core-plugins.json

Lines changed: 31 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,31 @@
1-
[
2-
"file-explorer",
3-
"global-search",
4-
"switcher",
5-
"graph",
6-
"backlink",
7-
"canvas",
8-
"outgoing-link",
9-
"tag-pane",
10-
"page-preview",
11-
"daily-notes",
12-
"templates",
13-
"note-composer",
14-
"command-palette",
15-
"editor-status",
16-
"bookmarks",
17-
"outline",
18-
"word-count",
19-
"file-recovery"
20-
]
1+
{
2+
"file-explorer": true,
3+
"global-search": true,
4+
"switcher": true,
5+
"graph": true,
6+
"backlink": true,
7+
"outgoing-link": true,
8+
"tag-pane": true,
9+
"page-preview": true,
10+
"daily-notes": true,
11+
"templates": true,
12+
"note-composer": true,
13+
"command-palette": true,
14+
"slash-command": false,
15+
"editor-status": true,
16+
"markdown-importer": false,
17+
"zk-prefixer": false,
18+
"random-note": false,
19+
"outline": true,
20+
"word-count": true,
21+
"slides": false,
22+
"audio-recorder": false,
23+
"workspaces": false,
24+
"file-recovery": true,
25+
"publish": false,
26+
"sync": false,
27+
"canvas": true,
28+
"properties": false,
29+
"bookmarks": true,
30+
"webviewer": false
31+
}

_posts/.obsidian/graph.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@
5353
"repelStrength": 20,
5454
"linkStrength": 1,
5555
"linkDistance": 158,
56-
"scale": 0.22264717991933022,
57-
"close": true
56+
"scale": 0.3339707698789951,
57+
"close": false
5858
}

_posts/Math/2022-01-02-optimization.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ Copyleft! 2024 Cong Yu. Some rights reserved.
5353

5454
- 无约束优化问题可以是全局优化的,也可以是局部优化的
5555
- 有约束优化问题也可以是全局优化的,也可以是局部优化的
56-
- <u>最小二乘问题是凸优化问题的一个特例</u>
57-
- <u>线性规划问题是凸优化问题的一个特例</u>
5856

5957
---
6058

@@ -69,7 +67,7 @@ F(x) 称为目标函数,或者代价函数。
6967
$$
7068
\begin{align}
7169
& \textrm{Given }F:\mathbf{R} ^{n} \mapsto \mathbf{R} \\
72-
& \textrm{Find } \mathbf{x}^+ = \textrm {argmin}_\mathbf{x} \{F(x)\}. \\
70+
& \textrm{Find } \mathbf{x}^+ = \textrm {argmin}_\mathbf{x} \{F(\mathbf x)\}. \\
7371
\end{align}
7472
$$
7573

@@ -90,7 +88,7 @@ $$
9088
$$
9189
\begin{align}
9290
& \textrm{Given }F:\mathbf{R} ^{n} \mapsto \mathbf{R} \\
93-
& \textrm{Find } \mathbf{x}^+ = \textrm {argmin}_\mathbf{x} \{F(x)\}. \\
91+
& \textrm{Find } \mathbf{x}^+ = \textrm {argmin}_\mathbf{x} \{F(\mathbf x)\}. \\
9492
& \textrm{subject to } f_i(x) \leq b_i, i = 1,...,m.
9593
\end{align}
9694
$$
@@ -108,7 +106,7 @@ Definition 1.2. Global Minimizer
108106
$$
109107
\begin{align}
110108
& \textrm{Given }F:\mathbf{R} ^{n} \mapsto \mathbf{R}. \\
111-
& \textrm{ Find } \mathbf{x}^+ = \textrm {argmin}_\mathbf{x} \{F(x)\}.
109+
& \textrm{ Find } \mathbf{x}^+ = \textrm {argmin}_\mathbf{x} \{F(\mathbf x)\}.
112110
\end{align}
113111
$$
114112

@@ -150,9 +148,7 @@ $$
150148

151149
##### 1.6 非线性优化
152150

153-
如果优化问题不是线性的,就称为非线性规划。
154-
155-
非线性规划问题的研究主要关注在局部最优化问题的求解上。
151+
如果优化问题不是线性的,就称为非线性优化。
156152

157153
##### 1.7 凸优化问题
158154

@@ -162,7 +158,7 @@ $$
162158
$$
163159
\begin{align}
164160
& \textrm{Given }F:\mathbf{R} ^{n} \mapsto \mathbf{R} \\
165-
& \textrm{Find } \mathbf{x}^+ = \text {argmin}_\mathbf{x} \{F(x)\}. \\
161+
& \textrm{Find } \mathbf{x}^+ = \text {argmin}_\mathbf{x} \{F(\mathbf x)\}. \\
166162
& \textrm{subject to } f_i(x) \leq b_i, i = 1,...,m.
167163
\end{align}
168164
$$
@@ -174,7 +170,7 @@ $$
174170

175171
比较线性函数和凸函数,可以发现凸函数仅仅需要在 $\alpha$ 和 $\beta$ 取特定数值的情况下满足不等式,而线性需要严格满足等式。
176172

177-
- 可见 <u>线性规划问题是凸优化问题的一个特例</u>,且线性规划是广泛应用的一类凸优化问题
173+
- 可见 <u>线性优化问题是凸优化问题的一个特例</u>,且是广泛应用的一类凸优化问题
178174
- <u>线性函数一定是是凸函数</u>。
179175
- <u>非线性函数可能是凸函数,也可能是非凸的</u>。
180176
- 凸优化问题的求解已经有了非常成熟的解法,所以本文主要关注于凸优化。
@@ -184,6 +180,10 @@ $$
184180

185181
[2022-01-04-最小二乘](Math/2022-01-04-最小二乘.md)
186182

183+
线性最小二乘
184+
185+
非线性最小二乘
186+
187187
## 2. 凸集
188188

189189
### 2.1 仿射集合和凸集

_posts/Robotics/2021-05-16-Bayesian-filter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ $p(x_0)$ , $x_{k-1}$
135135

136136
1. <u>-> 2. -> 3.</u> <u>-> 2. -> 3.</u> <u>-> 2. -> 3.</u> <u>-> 2. -> 3.</u> 不断进行下去
137137

138-
<img src="/home/trifo/code/sync/DevelopmentNotes/img/Screenshot from 2021-09-07 11-32-03.png" alt="Screenshot from 2021-09-07 11-32-03" style="zoom:33%;" />
139138

140139

140+
![](img/Screenshot%20from%202021-09-07%2011-32-03.png)
141141

142142

143143

_posts/Robotics/Geometry/2021-06-01-3dpose.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ Copyleft! 2022 Cong Yu. Some rights reserved.
7676

7777
### 姿态表达
7878

79-
- 欧拉角 [2021-06-02-EulerAngles](YuYuCong.github.io/_posts/Robotics/Geometry/2021-06-02-EulerAngles.md)
80-
- 旋转矩阵 [2021-06-03-RotateMatrix](YuYuCong.github.io/_posts/Robotics/Geometry/2021-06-03-RotateMatrix.md)
81-
- 四元数 [2021-06-05-Quaternion](YuYuCong.github.io/_posts/Robotics/Geometry/2021-06-05-Quaternion.md)
82-
- 轴角 [2021-06-04-AngleAxis](YuYuCong.github.io/_posts/Robotics/Geometry/2021-06-04-AngleAxis.md)
79+
- 欧拉角 [2021-06-02-EulerAngles](Robotics/Geometry/2021-06-02-EulerAngles.md)
80+
- 旋转矩阵 [2021-06-03-RotateMatrix](Robotics/Geometry/2021-06-03-RotateMatrix.md)
81+
- 四元数 [2021-06-05-Quaternion](Robotics/Geometry/2021-06-05-Quaternion.md)
82+
- 轴角 [2021-06-04-AngleAxis](Robotics/Geometry/2021-06-04-AngleAxis.md)
8383
- SO3 todo(congyu)
8484

8585

_posts/Robotics/Geometry/2021-06-05-Quaternion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ $$
388388
四元数微分
389389

390390

391-
![|200](_backup/post-robotics-quaternion-diff.png)
391+
![|200](img/in-post/post-geometry/post-robotics-quaternion-diff.png)
392392

393393
$$
394394
\begin{equation}

_posts/Robotics/Geometry/2021-06-10-Geometry-Convert.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,8 @@ Quaternion ToQuaternion(double yaw, double pitch, double roll) // yaw (Z), pitch
452452
453453
![img](https://img-blog.csdnimg.cn/20191217160826969.png)
454454
455-
- arctan和arcsin的结果是![[-\frac{\pi}{2},\frac{\pi}{2}]](https://private.codecogs.com/gif.latex?%5B-%5Cfrac%7B%5Cpi%7D%7B2%7D%2C%5Cfrac%7B%5Cpi%7D%7B2%7D%5D),这并不能覆盖所有朝向(对于![\theta](https://private.codecogs.com/gif.latex?%5Ctheta)角![[-\frac{\pi}{2},\frac{\pi}{2}]](https://private.codecogs.com/gif.latex?%5B-%5Cfrac%7B%5Cpi%7D%7B2%7D%2C%5Cfrac%7B%5Cpi%7D%7B2%7D%5D)的取值范围已经满足),因此需要用atan2来代替arctan。
455+
- arctan和arcsin的结果是
456+
$$[-\frac{\pi}{2},\frac{\pi}{2}]$$(https://private.codecogs.com/gif.latex?%5B-%5Cfrac%7B%5Cpi%7D%7B2%7D%2C%5Cfrac%7B%5Cpi%7D%7B2%7D%5D),这并不能覆盖所有朝向(对于![\theta](https://private.codecogs.com/gif.latex?%5Ctheta)角$$[\frac{\pi}{2},\frac{\pi}{2}]$$(https://private.codecogs.com/gif.latex?%5B-%5Cfrac%7B%5Cpi%7D%7B2%7D%2C%5Cfrac%7B%5Cpi%7D%7B2%7D%5D)的取值范围已经满足),因此需要用atan2来代替arctan。
456457
- 符号约定 q0q1q2q3 qwqxqyqz
457458
458459
![img](https://img-blog.csdnimg.cn/20191217160923942.png)

_posts/c++/4.stl/2020-10-12-shared-ptr.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
---
22
layout: post
3-
title: "Smart Pointer"
4-
description: "Smart Pointer"
5-
categories: [c++]
6-
tags: [c++,shared_ptr]
3+
title: Smart Pointer
4+
description: Smart Pointer
5+
categories:
6+
- c++
7+
tags:
8+
- shared_ptr
9+
- cpp
10+
- cplusplus
711
redirect_from:
812
- /2020/10/12/
913
---

_posts/c++/DesignPattern/BehaviorTree/2021-01-26-BehaviorTree.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
---
22
layout: post
3-
title: "BehaviorTree(行为树)入门"
4-
subtitle: "使用行为树模式,让机器人实现复杂任务决策"
5-
categories: [Design-Pattern]
6-
tags: [BehaviorTree, Design-Pattern, c++, state-machine, ros]
7-
header-img: "img/in-post/post-cpp/bg_behavior_tree.drawio.png"
3+
title: BehaviorTree(行为树)入门
4+
subtitle: 使用行为树模式,让机器人实现复杂任务决策
5+
categories:
6+
- Design-Pattern
7+
tags:
8+
- BehaviorTree
9+
- Design-Pattern
10+
- state-machine
11+
- ros
12+
header-img: img/in-post/post-cpp/bg_behavior_tree.drawio.png
813
date: 2021.01.26
914
---
1015

_posts/c++/GoogleTest/2020-08-10-Google_Test.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
---
22
layout: post
3-
title: "Google Test使用方法总结"
4-
description: "写代码不测试,bug满天飞。"
5-
categories: [c++]
6-
tags: [c++,gtest,unit-test]
3+
title: Google Test使用方法总结
4+
description: 写代码不测试,bug满天飞。
5+
categories:
6+
- c++
7+
tags:
8+
- gtest
9+
- unit-test
10+
- cpp
11+
- cplusplus
712
redirect_from:
813
- /2020/08/10/
914
---

_posts/c++/GoogleTest/2020-08-17-GFlags.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
---
22
layout: post
3-
title: "GFlags使用方法教程"
3+
title: GFlags使用方法教程
44
subtitle: "GFlags: 方便的使用c++命令行参数"
5-
categories: [c++]
6-
tags: [c++, gflags]
7-
header-img: "img/in-post/"
5+
categories:
6+
- c++
7+
tags:
8+
- gflags
9+
- cpp
10+
- cplusplus
11+
header-img: img/in-post/
812
header-style: text
913
date: 2020.08.17
1014
---

_posts/c++/GoogleTest/2020-08-18-GLog.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
---
22
layout: post
3-
title: "GLog 使用方法与技巧"
4-
subtitle: "GLog:简单易用的c++日志库"
5-
categories: [c++]
6-
tags: [c++, glog]
7-
header-img: "img/in-post/"
3+
title: GLog 使用方法与技巧
4+
subtitle: GLog:简单易用的c++日志库
5+
categories:
6+
- c++
7+
tags:
8+
- glog
9+
- cplusplus
10+
- cpp
11+
header-img: img/in-post/
812
header-style: text
913
date: 2020.08.18
1014
---

_posts/c++/GoogleTest/2022-09-09-config.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
---
22
layout: post
3-
title: "如何设计易用的c++参数配置文件?"
4-
subtitle: "Yaml vs. json,还是自己尝试设计一个吧"
5-
categories: [c++]
6-
tags: [c++,json]
7-
header-img: "img/in-post/"
3+
title: 如何设计易用的c++参数配置文件?
4+
subtitle: Yaml vs. json,还是自己尝试设计一个吧
5+
categories:
6+
- c++
7+
tags:
8+
- json
9+
- cpp
10+
- cplusplus
11+
header-img: img/in-post/
812
header-style: text
913
date: 2020.08.19
1014
---

_posts/c++/boost/2020-09-25-boost filesystem.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
---
22
layout: post
3-
title: "Boost filesystem"
4-
description: "boost filesystem"
5-
categories: [c++]
6-
tags: [boost,c++]
3+
title: Boost filesystem
4+
description: boost filesystem
5+
categories:
6+
- c++
7+
tags:
8+
- boost
9+
- cpp
10+
- cplusplus
711
redirect_from:
812
- /2020/09/25/
913
---
@@ -36,7 +40,9 @@ Copyleft! 2021 William Yu. Some rights reserved.
3640

3741
<h4>Reference</h4>
3842

39-
- http://zh.highscore.de/cpp/boost/filesystem.html
43+
- [http://zh.highscore.de/cpp/boost/filesystem.html](http://zh.highscore.de/cpp/boost/filesystem.html)
44+
- boost filesystem [https://www.boost.org/doc/libs/1_79_0/libs/filesystem/doc/index.htm](https://www.boost.org/doc/libs/1_79_0/libs/filesystem/doc/index.htm)
45+
4046

4147

4248

_posts/c++/coding-style/2020-07-27-coding-style.md

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
---
22
layout: post
3-
title: "c++ coding style"
4-
subtitle: "c++代码风格规范,以及一些良好的代码习惯建议"
5-
categories: [c++]
6-
tags: [c++]
7-
header-img: "img/in-post/post-cpp/bg_code_style.png"
3+
title: c++ coding style
4+
subtitle: c++代码风格规范,以及一些良好的代码习惯建议
5+
categories:
6+
- c++
7+
tags:
8+
- cpp
9+
- cplusplus
10+
header-img: img/in-post/post-cpp/bg_code_style.png
811
redirect_from:
912
- /20220/07/27/
10-
1113
---
1214

1315
> 本文主要记录c++ coding style相关的一些笔记,以及一些常用的代码建议与小技巧。尽力将自己写的代码视作一件艺术品,是技术与艺术的结合体。
@@ -342,7 +344,19 @@ Usage:
342344
}
343345
if (std::abs(a) > std::numeric_limits<float>::epsilon()) { // good
344346
}
345-
347+
348+
349+
double d = 0.0001;
350+
if (d) { // bad
351+
}
352+
if (std::abs(d > std::numeric_limits<double>::epsilon() ) { // good
353+
}
354+
355+
if (!d) { // bad
356+
}
357+
if (std::abs(d < std::numeric_limits<double>::epsilon() ) { // good
358+
}
359+
346360
```
347361
348362
在CmakeList中禁止写出 float-equal 的代码

0 commit comments

Comments
 (0)