XBOX360 kinect + ROS2_humble

简介:

在ROS 2 Humble中使用Xbox 360 Kinect,需要依赖一个关键的社区驱动包:kinect_ros2。下面是详细的步骤和注意事项。

kinect_ros2 是一个基于 libfreenect 的ROS 2包,支持RGB和深度图像发布。目前主要有两个仓库,功能基本相同:

  • fadlio/kinect_ros2:较原始。

  • predomaquilare/kinect_ros2_humble:针对Humble的复刻

安装与使用:

1.安装依赖 (libfreenect):需手动从源码编译。

bash 复制代码
git clone https://github.com/OpenKinect/libfreenect.git
cd libfreenect
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..
make
sudo make install
sudo ldconfig

2.获取并编译驱动包

bash 复制代码
cd ~/ros2_ws/src
git clone https://github.com/predomaquilare/kinect_ros2_humble.git # 或 fadlio/kinect_ros2
cd ~/ros2_ws
rosdep install --from-paths src --ignore-src -r -y
colcon build
source install/setup.bash

3.连接与运行 :将Kinect插入电脑的USB 2.0 接口,使用 ros2 run 启动节点:

终端一:

bash 复制代码
colcon build
bash 复制代码
. install/setup.bash
bash 复制代码
ros2 run kinect_ros2 showimage.launch.py

终端二:

bash 复制代码
. install/setup.bash
bash 复制代码
ros2 launch kinect_ros2 pointcloud.launch.py 
相关推荐
黑白园5 小时前
个人台式机VMware 15及Ubuntu 16.04.5卸载以及VMware 16.2.3及Ubuntu 24.04.4安装
linux·ubuntu
想你依然心痛1 天前
从监控数据到告警管理:Prometheus与Alertmanager部署实战
ubuntu·prometheus·内网穿透·系统监控·cpolar·告警管理
黑白园1 天前
解决服务器拒绝连接导致ubuntu镜像无法下载问题 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases/
ubuntu
yangpan0111 天前
ubuntu输入法安装及选择
linux·运维·ubuntu
强里秋千墙外道1 天前
Ubuntu 开机 Kernel Panic:HWE 内核升级失败 + NVIDIA DKMS 踩坑实录
linux·运维·ubuntu
啊啊啊迈 旋棍2 天前
【译】TypeScript 7 测试版已在 Visual Studio 2026 18.6 Insiders 3 中默认启用
ubuntu·typescript·visual studio
Eloudy2 天前
ubuntu 22.04安装 cuda 12.8.2
linux·运维·ubuntu
接针2 天前
Pycharm远程连接Ubuntu的conda环境
ubuntu·pycharm·conda
漂移的电子2 天前
解决Vue3 + TypeScript + Vite搭建的项目,动态路由页面加载失败的最隐蔽原因
javascript·ubuntu·typescript