会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
hiccuplh
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
下一页
2022年8月18日
libhv
摘要: 1、概述 最近在做c++的客户端,调研了一圈选了libhv libhv是c++编写HTTP API 服务端/客户端最简单的库,没有之一 具有如下特性: 跨平台(Windows, Linux, Mac) 支持https 支持RESTful API 支持application/json、applicat
阅读全文
posted @ 2022-08-18 13:26 hiccup_lh
阅读(2389)
评论(0)
推荐(0)
2022年8月17日
ros 加载yaml问题
摘要: mac_address: 12:23 device_number: 001 ros加载yaml时不会把第一个当作字符串,解析出来是一个数,不知道怎么计算得来的。 会把第二个解析为1,如果要当作字符串传入,给对应数值加上引号即可 mac_address: "12:23" device_number:
阅读全文
posted @ 2022-08-17 16:38 hiccup_lh
阅读(143)
评论(0)
推荐(0)
2022年8月16日
git reset 之--hard、--mix、--soft
摘要: 1、git reset --hard 重置stage区和工作目录里的内容,就是你的没有commit的修改会被全部擦掉 2、git reset --soft reset --soft:用于版本的回退,只进行对commit操作的回退,不影响工作区的文件。 在提交代码的时候,commit之后,然后我又在工
阅读全文
posted @ 2022-08-16 09:59 hiccup_lh
阅读(802)
评论(0)
推荐(0)
2022年8月14日
C++计算时间差
摘要: #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
阅读(482)
评论(0)
推荐(0)
2022年8月12日
C++ 获取ip地址 python获取ip地址
摘要: 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
阅读(151)
评论(0)
推荐(0)
2022年8月11日
python常用处理字符串函数的详细分析
摘要: 1.split 将一个字符串拆分成一个子字符串列表,列表中的子字符串正好可以构成原字符串。 两个参数: 第一个参数表示使用哪个字符进行拆分。 第二个参数表示进行拆分的次数(两次拆分,可得3 个子字符串) #1、无参数 string1 = "My deliverable is due in May"
阅读全文
posted @ 2022-08-11 00:58 hiccup_lh
阅读(174)
评论(0)
推荐(0)
2022年8月2日
pip豆瓣源加速
摘要: pip install 包名 -i http://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com
阅读全文
posted @ 2022-08-02 22:54 hiccup_lh
阅读(94)
评论(0)
推荐(0)
2022年7月28日
在脚本中使用sudo
摘要: 在脚本中使用sudo echo 'passward' | sudo -S cp file1 /etc/hosts
阅读全文
posted @ 2022-07-28 16:17 hiccup_lh
阅读(119)
评论(0)
推荐(0)
2022年7月26日
jetson系列硬件通过jtop获取系统的运行状态
摘要: #!/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
阅读(550)
评论(0)
推荐(0)
2022年7月25日
2022-07-25 ros之cmakelists.txt和package.xml
摘要: 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
阅读(48)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页
公告