上一页 1 2 3 4 5 6 ··· 20 下一页
摘要: ``` //atomic3.cpp 使用CAS操作实现一个无锁栈 #include #include template class lock_free_stack { private: struct node { T data; node* next; node(const T& data) : d 阅读全文
posted @ 2023-07-07 15:11 penuel 阅读(11) 评论(0) 推荐(0) 编辑
摘要: #### 1. 跳转缓慢,跳转函数,一直转圈圈,比较慢 关闭vscode 1. 删除索引文件 ``` cd ~/.config/Code/User/workspaceStorage rm -rf * ``` 2.重新打开vscode即可 #### 2. 波浪线报错 在确认c_cpp_properti 阅读全文
posted @ 2023-07-04 11:28 penuel 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 1. bookmarks 2. c/c++ 3. c/c++ extension pack 4. CMake 5. CMake Tools 6. Dev Containers 7. Docker 8. Git History 9. GitLens 10. highlight-words 11. Ma 阅读全文
posted @ 2023-06-28 11:03 penuel 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1.安装openvpn ``` sudo apt-get install openvpn sudo apt-get install network-manager-openvpn ``` 2.在/etc/NetworkManager/system-connections下新建以.connection 阅读全文
posted @ 2023-06-25 18:06 penuel 阅读(1) 评论(0) 推荐(0) 编辑
摘要: ``` #include #include void* threadFunction(void* arg) { // 线程函数逻辑 // ... return nullptr; } int main() { pthread_t thread; pthread_attr_t attr; // 初始化线 阅读全文
posted @ 2023-05-31 13:55 penuel 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 1. 下载highlight-words插件 2. 在settings.json文件中添加以下代码 路径:(文件>首选项>设置>打开设置(json) 图标在右上角) ``` "highlightwords.colors": [ { "light": "#b3d9ff", "dark": "cyan" 阅读全文
posted @ 2023-05-30 11:47 penuel 阅读(1897) 评论(0) 推荐(1) 编辑
摘要: 查看功能 ros2 node list ros2 topic list ros2 service list ros2 action list 查看节点信息: ros2 node info <node_name> 话题 ros2 topic echo <topic_name> 查看话题的详细信息: r 阅读全文
posted @ 2023-05-24 11:53 penuel 阅读(223) 评论(0) 推荐(0) 编辑
摘要: Matlab MPC toolbox : https://www.mathworks.com/products/mpc.html μAO-MPC : http://ifatwww.et.uni-magdeburg.de/syst/muAO-MPC/ Acado toolkit : https://a 阅读全文
posted @ 2023-03-29 16:53 penuel 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 对偶问题是原始优化问题的另一种表述方式。在对偶问题中,优化的目标函数和约束条件都与原始问题不同,但两个问题具有等价的最优解。通过解决对偶问题,可以间接地得到原始问题的最优解,这种方法称为对偶法。 对于一个凸优化问题,其对偶问题可以通过拉格朗日对偶性(Lagrange duality)得到。对于原始问 阅读全文
posted @ 2023-03-13 10:41 penuel 阅读(286) 评论(0) 推荐(0) 编辑
摘要: ADMM(Alternating Direction Method of Multipliers,多项式交替方向乘子法)是一种用于求解凸优化问题的迭代算法。该算法是由Gabriel Peyré, Neal Parikh和Mathieu Chanaux等人在2010年左右提出的,是一种分布式算法,适用 阅读全文
posted @ 2023-03-13 10:41 penuel 阅读(300) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 20 下一页