cpslabor-education / openni_ros2_example

A simple example for Xtion ROS2 with OpenNI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

openni_ros2_example

A simple ROS2-based example for ASUS Xtion camera with OpenNI. This package is mostly for educational purpose, use at your own risk.

Prerequisites

Naturally, you shall need ROS2. You can build by yourself or use publicly available packages. Here, the simplest instructions are provided:

Ensure that the colcon toolchain is installed. You can issue the following command to install the toolchain on your system:

pip install -U colcon-common-extensions

Or if you have a system with both Python 2.x and Python 3.x interpreters:

pip3 install -U colcon-common-extensions

You shall need OpenNI drivers.

Usage

Install this package by cloning this repository (e.g. to your dev_ws/src folder):

git clone https://github.com/robotlabor-education/openni_ros2_example.git

Then, you can invoke colcon build in the workspace folder (e.g. dev_ws):

colcon build

On Linux, you can create symbolic links for your build to spare storage space:

colcon build --symlink-install

Visual Studio 2019 specifics

Under Windows colcon generates the proper Visual Studio 2019 files (solution and vcxproj files). These are generated in your workspace and corresponding package folders (e.g. dev_ws/build/openni_camera). You can start and build your application as a conventional Visual Studio project.

Protip for Visual Studio 2019 based builds

The messages are hidden during build. Therefore, the developer can't get real insight on what error happened during build. You can enable this during build:

colcon build --event-handlers console_direct+

Video instructions in Hungarian

Kövesd a linket a videóhoz az insturkciókhoz: https://youtu.be/InL-u0dnvCA

About

A simple example for Xtion ROS2 with OpenNI

License:Apache License 2.0


Languages

Language:C++ 89.0%Language:CMake 11.0%