摘要: float32[] data float32 vel geometry_msgs/Pose pose string name 可以将std_msgs和common_msgs类型自由组合,做成满足条件的自定义的msg std_msgs - ROS Wiki common_msgs - ROS Wiki 阅读全文
posted @ 2022-06-13 10:46 hiccup_lh 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 1、创建要定义的模块 cd scripts touch hello.py hello.py #! /usr/bin/env python3 def print_test(): print(" ") 2、在功能包下创建setup.py文件 from distutils.core import setu 阅读全文
posted @ 2022-06-13 10:35 hiccup_lh 阅读(864) 评论(0) 推荐(1) 编辑
摘要: 1、全编译 catkin_make 2、只编译某一个包 catkin_make -DCATKIN_WHITELIST_PACKAGES="package_name" 3、编译一个包后在全部编译所有的包(原因不详,没具体测试过) catkin_make -DCATKIN_WHITELIST_PACKA 阅读全文
posted @ 2022-06-13 09:55 hiccup_lh 阅读(1246) 评论(0) 推荐(0) 编辑
摘要: 考虑需要把deepstream用在工程中 这个仓库是大神开源的deepstream的cmake工程 https://gitlab.com/cclaunch/deepstream_app 阅读全文
posted @ 2022-06-06 15:04 hiccup_lh 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 编写ros节点时,msg里的数据类型有数组类型 1、创建msg文件 msgs只是简单的文本文件,每行具有字段类型和字段名称,可以使用的字段类型有: int8, int16, int32, int64 (或者无符号类型: uint*) float32, float64 string time, dur 阅读全文
posted @ 2022-06-06 00:43 hiccup_lh 阅读(1036) 评论(0) 推荐(0) 编辑
摘要: 在C++中, char* p = "abc"; // valid in C, invalid in C++ 会跳出警告:warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 改成下面会通过 阅读全文
posted @ 2022-06-06 00:28 hiccup_lh 阅读(1506) 评论(0) 推荐(0) 编辑
摘要: 目前我们的定位信息依赖于全球定位系统GPS,GPS依赖于WGS84坐标系,是一种地心坐标系,但是GPS给定的定位信息是以经纬度的形式给出的,在无人驾驶车辆中难以计算实际道路中位置之间的距离关系,因此,一般需要将经纬度坐标转为大地坐标。一般会使用UTM来描述大地坐标系,从而将经纬度之间的距离关系转化为 阅读全文
posted @ 2022-05-09 00:15 hiccup_lh 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 在实际工程中采集的许多数据都需要滤波、这里参考查阅了网上资料,总结了常用的滤波算法,原文链接见文章结尾处。 1、限幅滤波法 名称:限幅滤波法(又称程序判断滤波法) 方法: ​ 根据经验判断,确定两次采样允许的最大偏差值(设为A) ​ 每次检测到新值时判断: ​ 如果本次值与上次值之差<=A,则本次值 阅读全文
posted @ 2022-05-06 12:25 hiccup_lh 阅读(545) 评论(0) 推荐(0) 编辑
摘要: 由于现在使用的jetson硬件基本都是Ubuntu18.04,ROS Melodic的默认环境是python2, 最新发布的ROS noetic才完全支持python3。因此对用ROS Melodic开发项目, 同时需要使用python3编写程序的使用者造成了一定的困扰 目标: 在对原有python 阅读全文
posted @ 2022-04-27 22:46 hiccup_lh 阅读(1816) 评论(1) 推荐(0) 编辑
摘要: 自定义数据集的加载 在实际的场景中,更多需要使用你已有的相关数据来定义数据集。你可以使用飞桨提供的paddle.io.Dataset基类,来快速实现自定义数据集。 import paddle from paddle.io import Dataset BATCH_SIZE = 64 BATCH_NU 阅读全文
posted @ 2022-04-26 12:31 hiccup_lh 阅读(93) 评论(0) 推荐(0) 编辑