摘要: 本文以在GitHub建立远程的空仓库为例,介绍本地仓库推送至远程仓库,保留提交历史,所有分支,所有tag,和批量改写提交历史的步骤,以解决『大体积的历史commit无法推送到远程仓库』的问题; 阅读全文
posted @ 2024-04-10 19:12 _bob 阅读(37) 评论(0) 推荐(0) 编辑
 
摘要: 0 概述 tf2是ROS的核心库之一,它记录了所有坐标系的转换关系,包括动态坐标转换tf,和静态坐标转换tf_static; 首先,介绍tf2库(即,geometry2)编译/调试环境的搭建步骤;然后,介绍部分的类图结构,和调用时序; 1 搭建ROS2的编译环境 参考:http://docs.ros 阅读全文
posted @ 2023-12-19 18:44 _bob 阅读(191) 评论(0) 推荐(0) 编辑
  2024年4月29日
摘要: 在ROS1中,你可以将你的代码编写成Node或者Nodelet。Node被编译成可执行文件,Nodelet被编译成一个共享库,然后由一个container进程在运行时加载。 阅读全文
posted @ 2024-04-29 19:48 _bob 阅读(68) 评论(0) 推荐(0) 编辑
  2024年4月17日
摘要: 介绍编写ROS2(C++语言)软件包的步骤; 阅读全文
posted @ 2024-04-17 12:57 _bob 阅读(25) 评论(0) 推荐(0) 编辑
  2023年9月22日
摘要: 在ros(ros1&c++)中使用gtest进行单元测试;介绍了在ROS1程序中,使用gtest框架编写单元测试,和编译,运行的步骤; 阅读全文
posted @ 2023-09-22 13:19 _bob 阅读(350) 评论(0) 推荐(0) 编辑
  2020年9月14日
摘要: 1 // g++ selection_sort.cc -Wall -O3 -std=c++11 && ./a.exe 2 3 4 #include <iostream> 5 #include <vector> 6 7 8 static void swap(int &a, int &b) { 9 in 阅读全文
posted @ 2020-09-14 17:51 _bob 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 1 // g++ bubble_sort.cc -Wall -O3 && ./a.exe 2 3 4 #include <iostream> 5 #include <vector> 6 7 8 static void swap(int &a, int &b) { 9 b = a + b; 10 a 阅读全文
posted @ 2020-09-14 16:39 _bob 阅读(186) 评论(0) 推荐(0) 编辑
  2020年9月13日
摘要: 1 // To Compile and Run: g++ -std=c++11 lambda.cc -Wall -O3 && ./a.out 2 3 4 #include <iostream> 5 6 7 int main() { 8 int c = 12; 9 10 std::cout 11 << 阅读全文
posted @ 2020-09-13 23:53 _bob 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 1 // To Compile and Run: g++ invert_list.cc -std=c++11 -Wall -O3 && ./a.out 2 3 4 #include <iostream> 5 #include <vector> 6 7 8 class ListNode { 9 pub 阅读全文
posted @ 2020-09-13 22:48 _bob 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 1 // To Compile and Run: g++ binary_search.cc -std=c++11 -Wall -O3 && ./a.out 8 2 3 4 #include <stdlib.h> 5 #include <assert.h> 6 7 #include <iostream 阅读全文
posted @ 2020-09-13 00:35 _bob 阅读(235) 评论(0) 推荐(0) 编辑