teaching:se-kiba:perception-tutorial
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| teaching:se-kiba:perception-tutorial [2013/04/24 21:15] – balintbe | teaching:se-kiba:perception-tutorial [2016/05/19 09:19] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | =====Perception Tutorial===== | + | =======Perception Tutorial======= |
| Tutorial describing first steps needed to start processing data from the Kinect, in the form of Point Clouds, | Tutorial describing first steps needed to start processing data from the Kinect, in the form of Point Clouds, | ||
| - | If not present install ros-fuerte-openni-kinect. | + | ==== 1. Prerequisite ==== |
| - | *sudo apt-get install | + | Follow the steps described in [[software:ros: |
| - | More detailed description to be added soon\\ | + | If you are using a PrimeSense device (Xbox Kinect, Asus Xtion) check whether // |
| + | dpkg -l | grep ros-fuerte-openni-kinect | ||
| + | If not present install using: | ||
| + | sudo apt-get install ros-fuerte-openni-kinect | ||
| + | Check out the code presented at seminar in your ros-workspace from:\\ | ||
| + | [[https:// | ||
| + | Prerecorded bag file can be found in ../ | ||
| - | Code will be available at:\\ | + | ==== 2. Viewing and recording data from the Kinect === |
| - | [[https:// | + | |
| - | ==Viewing | + | == Bag files and Rviz == |
| - | + | For a PrimeSense device: connect it to your PC and run: | |
| - | | + | |
| - | * record using bag files or save clouds | + | Run rviz: |
| - | * replay bag files, view them in rviz\\ | + | rosrun rviz rviz |
| - | * subscribing | + | Add a new PointCloud2 display type to rviz, and choose |
| - | ==Processing Point Clouds== | + | Use //rosbag// to record data in a bag file, e.g.: |
| + | rosbag record / | ||
| + | Note: /tf is needed if you want to view the recorded data using rviz. | ||
| + | Play back a bag file using: | ||
| + | rosbag play filename.bag --loop | ||
| + | More detail and a more elegant way of saving data from a Kinect to bag files can be found [[http:// | ||
| - | | + | In order to save Point Clouds to *.pcd files run: |
| - | | + | |
| - | | + | |
| - | | + | == Image_view == |
| - | | + | View rgb image: |
| + | | ||
| + | View depth image: | ||
| + | | ||
| + | |||
| + | == From a ROS node == | ||
| + | To see how you subscribe to a topic from a ros node take a look at // | ||
| - | | + | ==== 3.Processing Point Clouds ==== |
| + | |||
| + | The following are presented in // | ||
| + | * reading in a pcd file[[http:// | ||
| + | * using PCLVisualizer[[http:// | ||
| + | * removing nans | ||
| + | * calcultaing normals[[http:// | ||
| + | * filtering based on axes[[http:// | ||
| + | * downsampling the Point Cloud[[http:// | ||
| + | * RANSAC plane fitting, and extracting indices [[http:// | ||
| + | |||
| + | For further questions contact: // | ||
teaching/se-kiba/perception-tutorial.1366838135.txt.gz · Last modified: (external edit)
