摘要: 1、概述 最近在做c++的客户端,调研了一圈选了libhv libhv是c++编写HTTP API 服务端/客户端最简单的库,没有之一 具有如下特性: 跨平台(Windows, Linux, Mac) 支持https 支持RESTful API 支持application/json、applicat 阅读全文
posted @ 2022-08-18 13:26 hiccup_lh 阅读(1343) 评论(0) 推荐(0) 编辑
摘要: mac_address: 12:23 device_number: 001 ros加载yaml时不会把第一个当作字符串,解析出来是一个数,不知道怎么计算得来的。 会把第二个解析为1,如果要当作字符串传入,给对应数值加上引号即可 mac_address: "12:23" device_number: 阅读全文
posted @ 2022-08-17 16:38 hiccup_lh 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1、git reset --hard 重置stage区和工作目录里的内容,就是你的没有commit的修改会被全部擦掉 2、git reset --soft reset --soft:用于版本的回退,只进行对commit操作的回退,不影响工作区的文件。 在提交代码的时候,commit之后,然后我又在工 阅读全文
posted @ 2022-08-16 09:59 hiccup_lh 阅读(689) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <iomanip> #include <vector> #include <numeric> #include <chrono> volatile int sink; int main() { std::cout << std::fixed 阅读全文
posted @ 2022-08-14 00:28 hiccup_lh 阅读(399) 评论(0) 推荐(0) 编辑
摘要: C++获取本机IP地址 /* *功能:传入一个网口名,获取相应的IP地址 * */ #include <stdio.h> #include <ifaddrs.h> #include <netinet/in.h> #include <string.h> #include <arpa/inet.h> s 阅读全文
posted @ 2022-08-12 15:02 hiccup_lh 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 1.split 将一个字符串拆分成一个子字符串列表,列表中的子字符串正好可以构成原字符串。 两个参数: 第一个参数表示使用哪个字符进行拆分。 第二个参数表示进行拆分的次数(两次拆分,可得3 个子字符串) #1、无参数 string1 = "My deliverable is due in May" 阅读全文
posted @ 2022-08-11 00:58 hiccup_lh 阅读(143) 评论(0) 推荐(0) 编辑
摘要: pip install 包名 -i http://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com 阅读全文
posted @ 2022-08-02 22:54 hiccup_lh 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 在脚本中使用sudo echo 'passward' | sudo -S cp file1 /etc/hosts 阅读全文
posted @ 2022-07-28 16:17 hiccup_lh 阅读(105) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python from jtop import jtop if __name__ == "__main__": print("All accessible jtop properities") with jtop() as jetson: # boards print( 阅读全文
posted @ 2022-07-26 14:40 hiccup_lh 阅读(397) 评论(0) 推荐(0) 编辑
摘要: CmakeLists.txt cmake_minimum_required()#指定catkin最低版本 project()#指定软件包的名称 find_package()#指定编译时需要的依赖项 add_message_files()/add_service_files()/add_action_ 阅读全文
posted @ 2022-07-25 22:28 hiccup_lh 阅读(22) 评论(0) 推荐(0) 编辑