|Please ask about problems and questions regarding this tutorial on answers.ros.org. Don't forget to include in your question the link to this page, the versions of your OS & ROS, and also add appropriate tags.|
Pioneer 3D-X controlled via a visual servoing lawDescription: In this tutorial we will how to control a real or a simulated (in V-REP) Pioneer robot using a visual servoing control law.
Tutorial Level: INTERMEDIATE
In this tutorial we will use:
- The mobile robot Pioneer 3D-X (real or simulated) equipped with a camera.
- A target with a qr-code.
visp_auto_tracker: it is a model-based trackers provided by ViSP visual servoing library into a ROS package. The tracked object should have a QRcode of Flash code pattern. Based on the pattern, the object is automaticaly detected. This computer vision algorithm computes the pose (i.e. position and orientation) of an object in an image. It is fast enough to allow object online tracking using a camera.
vrep_ros_bridge (for simulation) : this bridge allows us to control the V-REP simulation via ROS.
- V-REP (for simulation): 3D Simulator.
Aim of the tutorial is to control a Pioneer 3D-X using a visual servoing control law. The node visp_auto_tracker will receive the images from the camera mounted on the robot (real or simulated) and will compute the position of the target with respect to the frame camera. The position of the target is sent to the node demo_pioneer that compute using a servoing control law the new velocity to apply to the robot in order to minimized the error between the actual position and the desired position of the target. In this demo the desired position is such that the pioneer will stay at 0.4 meters from the target.
Follow instructions you find in http://wiki.ros.org/hydro/Installation/Ubuntu page.
Complete the tutorial page. It is mandatory to follow the tutorial number 1 "Installing and Configuring Your ROS Environment".
Now we have installed ROS and we have created our workspace.
- Open a terminal and type:
sudo apt-get install ros-hydro-visp
Install demo_pioneer and vision_visp:
Follow the instruction you can find here