# Exp-Dataset
录制数据集的代码
## 1. 录数据流程
### 1.1 检查相机输出是否正常
```shell
# 1. 编译, launch文件和深度图滤波已经在代码中修改
cd xx/
git clone https://github.com/JeffYoung17/MYNT-EYE-D-SDK.git ./
make init
make ros
source xx/MYNT-EYE-D-SDK/wrappers/ros/devel/setup.sh or setup.zsh
# 2. 查看图像是否正常
roslaunch mynteye_wrapper_d display.launch
```
### 1.2 检查机器人控制是否正常
```shell
# 1. 上电开机, 直接遥控器控制 /mecanum_base
lsusb
ls -l /dev|grep ttyUSB
# 2. 编译
cd xx/
git clone https://github.com/JeffYoung17/Exp-Dataset.git ./
cd Exp-Dataset/wrappers/ros/
catkin_make -j8
source xx/Exp-Dataset/wrappers/ros/devel/setup.sh or setup.zsh
# 3. 启动机器人ros驱动
roslaunch robot_odom core.launch
rqt_graph / rostopic list / rostopic hz xxx # 检查话题是否正确发布
```
### 1.3 录制数据
```shell
# 1. 启动接收IMU和编码器, 发布odom坐标系到base_footprint坐标系的odom话题,但是不广播二者间的TF.
# TF:
# (1) map -> odom -> mynteye_link_frame -> ...
# (2) odom -> base_footprint
roslaunch robot_odom core.launch
# 2. 启动相机, 发布图像话题
roslaunch mynteye_wrapper_d mynteye.launch
# 3. 启动rtabmap_ros, 得到视觉里程计topic(坐标系和自车坐标系朝向一致)
# 如果图像时间戳硬同步 approx_sync:=false
# 如果图像时间戳不同步 approx_sync:=true
roslaunch rtabmap_ros rtabmap.launch \
rtabmap_args:="--delete_db_on_start" \
depth_topic:=/mynteye/depth/image_raw \
rgb_topic:=/mynteye/left/image_color \
camera_info_topic:=/mynteye/left/camera_info approx_sync:=true \
frame_id:=mynteye_link_frame
# 4. 启动ekf定位
roslaunch robot_odom ekf.launch
# 5. 启动record节点记录数据 /test下创建rgb和depth两个文件夹
rosrun record record_node /home/fqy/data/test/
```
## Appendix: 小觅相机的ros话题的消息格式和编码类型
```shell
topic: /mynteye/left/image_color
type: sensor_msgs/Image
encoding: "bgr8"
topic: /mynteye/left/image_mono
type: sensor_msgs/Image
encoding: "mono8"
topic: /mynteye/depth/image_raw
type: sensor_msgs/Image
encoding: "mono16"
```
```shell
/camera_mesh
/camera_mesh_array
/clicked_point
/initialpose
/move_base_simple/goal
/mynteye/depth/camera_info
/mynteye/depth/image_raw
/mynteye/depth/image_raw/compressed
/mynteye/depth/image_raw/compressed/parameter_descriptions
/mynteye/depth/image_raw/compressed/parameter_updates
/mynteye/depth/image_raw/compressedDepth
/mynteye/depth/image_raw/compressedDepth/parameter_descriptions
/mynteye/depth/image_raw/compressedDepth/parameter_updates
/mynteye/depth/image_raw/theora
/mynteye/depth/image_raw/theora/parameter_descriptions
/mynteye/depth/image_raw/theora/parameter_updates
/mynteye/imu/data_raw
/mynteye/imu/data_raw_processed
/mynteye/left/camera_info
/mynteye/left/image_color
/mynteye/left/image_color/compressed
/mynteye/left/image_color/compressed/parameter_descriptions
/mynteye/left/image_color/compressed/parameter_updates
/mynteye/left/image_color/theora
/mynteye/left/image_color/theora/parameter_descriptions
/mynteye/left/image_color/theora/parameter_updates
/mynteye/left/image_mono
/mynteye/left/image_mono/compressed
/mynteye/left/image_mono/compressed/parameter_descriptions
/mynteye/left/image_mono/compressed/parameter_updates
/mynteye/left/image_mono/theora
/mynteye/left/image_mono/theora/parameter_descriptions
/mynteye/left/image_mono/theora/parameter_updates
/mynteye/points/data_raw
/mynteye/right/camera_info
/mynteye/right/image_color
/mynteye/right/image_color/compressed
/mynteye/right/image_color/compressed/parameter_descriptions
/mynteye/right/image_color/compressed/parameter_updates
/mynteye/right/image_color/theora
/mynteye/right/image_color/theora/parameter_descriptions
/mynteye/right/image_color/theora/parameter_updates
/mynteye/right/image_mono
/mynteye/right/image_mono/compressed
/mynteye/right/image_mono/compressed/parameter_descriptions
/mynteye/right/image_mono/compressed/parameter_updates
/mynteye/right/image_mono/theora
/mynteye/right/image_mono/theora/parameter_descriptions
/mynteye/right/image_mono/theora/parameter_updates
/mynteye/temp/data_raw
```
没有合适的资源?快使用搜索试试~ 我知道了~
录制数据集的代码.zip
共29个文件
launch:6个
json:4个
txt:3个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 61 浏览量
2023-12-29
01:59:27
上传
评论
收藏 510KB ZIP 举报
温馨提示
录制数据集的代码.zip
资源推荐
资源详情
资源评论
收起资源包目录
录制数据集的代码.zip (29个子文件)
Exp-Dataset-master
.vscode
c_cpp_properties.json 741B
settings.json 2KB
task.json 272B
launch.json 921B
support_files
rtabmap-rosgraph.png 512KB
mynteye-frames.pdf 20KB
rtabmap-frames.pdf 20KB
.gitignore 39B
README.md 4KB
wrappers
ros
src
CMakeLists.txt 50B
record
CMakeLists.txt 3KB
src
direct_record.cc 4KB
record.cc 7KB
package.xml 3KB
launch
rtabmap.launch 25KB
ekf.launch 684B
record.launch 99B
rviz
record.rviz 6KB
robot_odom
include
robot_odom
base_node.hpp 603B
serial_node.hpp 1KB
CMakeLists.txt 1KB
src
serial_node.cpp 8KB
base_node.cpp 4KB
package.xml 1KB
launch
core.launch 263B
imu_complementary_filter.launch 297B
teleop_key.launch 124B
config
laser_config.yaml 249B
.catkin_workspace 98B
共 29 条
- 1
资源评论
马coder
- 粉丝: 1216
- 资源: 6602
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 电气类117、变电站真实巡检电力设备检测数据集(7500多张+15类+YOLO格式txt标签)-第二部分
- 电气类、117.变电站真实巡检电力设备检测数据集(7500多张+15类+YOLO格式txt标签)-第一部分
- IMG_20180720_124347_01.jpg
- IMG20240621095811.jpg
- jQuery 库.docx
- 基于 C 实现的图像处理(BMP)课程设计
- ST MCSDK 6.3.0
- 基于 C++实现的虚拟航班订票系统【C++课程设计】
- 111111111111111111
- 海信智能电视刷机数据 LED43K5100U(0000) 生产用软件数据 务必确认机编一致 强制刷机 整机USB升级程序
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功