摘要: 工具 bloom-generate 和 fakeroot 参考连接 一定能解决ROS系统 rosdep update超时问题de简单方法 ROS bloom deb打包 重点可参考这篇博客:将 ros 功能包打包为 deb 安装包并成功安装 (超详细解析) Generate deb from dep 阅读全文
posted @ 2025-05-22 15:17 雪夜羽 阅读(46) 评论(0) 推荐(0)
摘要: ROS2回调组 官方文档参考 ros2的回调组callback_groups的官方文档(humble) http://docs.ros.org/en/humble/How-To-Guides/Using-callback-groups.html 前置参考:执行者executors http://do 阅读全文
posted @ 2024-12-12 15:22 雪夜羽 阅读(500) 评论(0) 推荐(0)
摘要: python xxx.py 2>&1 | tee log.txt 将 程序运行的 标准输出 和 错误输出 保存到 log.txt 中,且保留终端输出。 或 python xxx.py >log.txt 2>&1 如果需要追加 python xxx.py 2>&1 | tee -a log.txt 或 阅读全文
posted @ 2024-04-18 18:38 雪夜羽 阅读(129) 评论(0) 推荐(0)
摘要: 需求: 深度学习基于pytorch,模型需要加密。 查看到网上有使用cryptography加密的方法,如 https://blog.csdn.net/weixin_43508499/article/details/124390983 , 总体思路是调用torch的save函数将模型保存为io.By 阅读全文
posted @ 2024-02-23 19:43 雪夜羽 阅读(383) 评论(0) 推荐(0)
摘要: CMAKE相对路径编译和python的ctypes引用 cmake 编译库使用相对路径 cmake 编译使用相对路径生成动态库,进而满足其他代码的调用,如python的ctypes 由于ctypes能调用c,而不能调用c++,所以,使用extern c来处理,使ctypes能够调用。 extern 阅读全文
posted @ 2023-09-14 15:14 雪夜羽 阅读(228) 评论(0) 推荐(0)
摘要: ## 相机模型 ### 针孔相机模型 利用相似三角形 $\frac{D_{世界}}{D_{相机}}=\frac{H}{F}$ 其中: - $D_{世界}$为世界坐标系中的距离长度,如一本书的长宽。 - $D_{相机}$为相机坐标系下的距离长度,为像的大小,或在cmos底片上的大小距离。 - $H$为 阅读全文
posted @ 2023-08-07 14:33 雪夜羽 阅读(101) 评论(0) 推荐(0)
摘要: ``` import numpy as np import copy a=np.mat("1 2 3;4 5 6;7 8 9") print(a) b=a b[0,0]=0 print(a) print(b) print("-"*10) ``` 输出结果 ``` [[1 2 3] [4 5 6] [ 阅读全文
posted @ 2023-05-31 18:20 雪夜羽 阅读(71) 评论(0) 推荐(0)
摘要: 代码解析1 先贴代码 代码来源 https://www.runoob.com/python/python-func-super.html 中的笔记 > B A --| |--> D > C class A(): def __init__(self): print('enter A') print(' 阅读全文
posted @ 2023-03-28 18:29 雪夜羽 阅读(56) 评论(0) 推荐(0)
摘要: python 日志 logging 模块 通过 logging 模块打印日志 前提理解 logging模块的方式是 1. logger 记录器 记录日志 2. handle 处理器,处理记录的日志 常用的四大组件,logger 日志记录 handle 处理器 filter 过滤器 formatter 阅读全文
posted @ 2023-02-03 17:22 雪夜羽 阅读(107) 评论(0) 推荐(0)
摘要: 打包python模块 目的,将写好的python库文件,打包成wheel,然后使用pip安装到系统,独立成模块。 使用工具 需要提前使用pip安装wheel。 打包使用setuptools库。 需要步骤 1. 编写setup.py文件。 2. 编写MANIFEST.in文件。 结构 dir1 pac 阅读全文
posted @ 2023-01-30 14:40 雪夜羽 阅读(2225) 评论(0) 推荐(0)