chili-epfl / ros_markers

ROS wrapper for the EPFL's chilitags library
BSD 3-Clause "New" or "Revised" License
7 stars 18 forks source link

ros_markers

This project is a ROS wrapper for the EPFL's chilitags library.

Nao looking at markers

The chilitags C++ library is a robust and lightweight library for detection of fiducial markers.

Main features:

This ROS node wraps the chilitags library to use the standard ROS mechanisms: images and camera calibration are read from a standard ROS camera, and 6D position of markers are published as TF transforms.

Installation

Cloning this repo inside a catkin workspace will download the chilitags library, and compile it together with the ROS nodes:

cd ~/catkin_ws/src # Or wherever you catkin workspace is
git clone https://github.com/chili-epfl/ros_markers.git
catkin_make --pkg chilitags_catkin ros_markers

Usage

An example usage is:

$ roslaunch ros_markers detect.launch image_topic:=v4l/camera/image_raw camera_frame_id:=v4l_frame

(note that if you want to launch the node directly, ie, without roslaunch, this example become: ./detect image:=v4l/camera/image_raw _camera_frame_id:=v4l_frame. Do not forget the _ before camera_frame_id!)

This will start to look for markers in the image stream, and publish the TF transformation of the detected ones.

The provided launch file lists all of the available parameters. The most important one is the markers configuration. This (YAML) file describes where the markers are on your objects, and lets you publish the position of an object with multiple markers attached. See the sample configuration for a complete example.

Other resources