Research Scientist, self-proclaimed Geek, Code Writer
Sep 20 2011

PCL Toyota Code Sprint 2011

It is our immense pleasure to announce the beginning of a new PCL Code Sprint sponsored by Toyota: PCL-TOCS!

PCL Code Sprints are intended to rapidly advance the capabilities of the Point Cloud Library in a certain area/subject by offering stipends to talented student developers and pairing them with knowledgeable mentors for several months of accelerated software development. These sprints have been inspired by the Google Summer Of Code (GSOC) initiative, and we will be following the same basic model. Projects will run for an initial period of 3 months with the same structure and performance evaluations as the GSOC program, and all of the code produced will be open source.

For this fall’s PCL-Toyota Code Sprint, we have identified the following important areas for further development in PCL, and we are therefore searching for outstanding candidates (and mentors) to work on the following projects:

  1. Surface reconstruction and point cloud smoothing

    Accurate surface reconstruction and point cloud smoothing have been demonstrated in specific test environments with minimal clutter and when the object of interest fills most of the field of view. However, additional algorithms are needed when performing surface reconstruction and/or point cloud smoothing in a cluttered space. In this project, students will work to develop algorithms capable of smoothing noisy point clouds and reconstructing surfaces of objects so that they can be compared against a collection of known 3D objected models. The algorithms developed must be able to operate in a cluttered home or health-care environment, and they must be tolerant of noisy point cloud data (such as those acquired by sensors like the Microsoft Kinect). This project will also investigate the reliability and accuracy of different surface reconstruction techniques when data is acquired from a moving sensor.

  2. CPU and GPU optimizations
    • CPU and GPU optimizations for real-time global point cloud localization
      In this project, students will work to develop CPU and GPU optimizations to enable real-time 3D place recognition. Existing algorithms are able to process a point cloud containing a partial view of an environment and subsequently localize it within a previously captured 3D map of the complete environment. However, this task is very computationally expensive, and many improvements are needed to make these approaches practical for real world uses. The goal of this project is to develop highly optimized implementations of a number of general purpose search and feature extraction algorithms that can be used in a variety of applications.
    • CPU and GPU optimizations for real-time 3D segmentation and boundary extraction
      With image segmentation, being able to perform multiple levels of segmentation on a single image is becoming more common to aid in recognition tasks. For instance, it is common to use coarse segmentation initially to identify regions of interest and then use a finer segmentation for boundary detection of individual objects in the scene. In this project, the student will develop real-time algorithms for segmenting 3D images, using CPU and GPU optimizations so that multiple levels of segmentation be computed quickly.

The above projects will run for a period of 3 months divided into two terms. Each student developer will receive a stipend of $5000 for their contributions, subject to satisfactory mid-term and final evaluations.

Potential candidates should submit the following information to pcl-tocs@pointclouds.org:

  • a brief resume
  • a list of existing PCL contributions (if any)
  • a list of projects (emphasis on open source projects please) that they contributed to in the past

Advanced C++ programming skills are required for all projects. Please remember that this is a unique opportunity to work with some of the world’s best 3D perception researchers!

Interested mentors should send a brief e-mail to the address mentioned above pointing out their time commitments and expertise in the field.


May 18 2010

PCL :: Point Cloud Library

This is a post on one of my current projects (that seems to keep me up late these days) called PCL, short for Point Cloud Library. First, thanks to everyone that e-mailed and expressed interest on helping out to develop PCL faster. We were pleasantly surprised at ICRA to see how many of you consider this important, and I was personally overwhelmed by some of the e-mails that I received after meeting with you. Again, sincerely thank you!

Because not a lot of people know why we are doing this or how this started, here’s a few random bits on PCL…

  • PCL is a complete open source software package built as part of ROS, which stands for Robot Operating System/Robot Open Source. If you don’t know what ROS is yet, don’t worry, you will soon. We’re growing bigger everyday, and adding more functionality that will make your robots go “wheeeee” sooner than you think. :) Check out a few of them today to see them moving around, picking up objects, or simply just acting cool. ROS is a community driven open source effort (supported by Willow Garage) and the best way to think about it is a massive collection of tightly integrated software packages that enable robotics research and development. There’s probably over 100 useful packages in there, including OpenCV and OpenRave so don’t just take my word for it, go check it out yourself!
  • PCL was created as a successor to an earlier attempt of designing PointCloud data types, structures and algorithms that proved to be inefficient. Those days are gone now, and we’re proud to announce PointCloud…2. Yes, our new underlying data type that represents point cloud data is _really_ called PointCloud2. Call it an uninspired day to name things if you wish. PointCloud2 was designed with PCL in mind (or vice versa - same thing ;), and supports alignment (e.g. SSE), has a compact data size, and has a lower computational overhead in general (especially when used with nodelets - more on that later).
  • Because we want PCL to become for 3D and point cloud data processing what OpenCV is for 2D image processing, we are developing a large number of algorithms for operations such as: filtering, downsampling, 3D feature estimation, registration, surface reconstruction, segmentation, and many more, into PCL. To make things flexible and efficient on the long run, we designed PCL as a fully templated C++ library, with an Eigen backend, and lots of Boost goodies. Yes, porting it to an Android (or whatever) might be a bit of a challenge, but we’ll worry about that later. Right now, we just want robots to perceive and understand their surrounding environment better. The “robot sharing a cluster of cell phones” app will come naturally once we manage to correctly identify all the cell phones in a building ;)
  • We try to use explicit parallelization where possible in PCL, via OpenMP and TBB. We try to avoid parallelizing everything implicitly, because saving CPU cycles on those extra cores that your computer might have is a good thing ®. Basically you want to know when something is going all “parallel” and eating up all your resources on a robot. We ran into decent issues in the past, and learned a valuable lesson. I think.
  • Because we know that learning something new is hard, we’re trying to help you out. There’s documentation, API documentation, tutorials, videos, and more. We already have examples for you on how to do object recognition, and environment modeling, to name a few. And you need to understand that we just started. PCL is roughly 3-4 months old, give or take.

There’s lots more to be said, but for now, just go check it out! If you’re asking yourselves why bother, well… why not? It’s open source, it’s fast, and it’s easy to use (or so we hope). If you don’t like it, just e-mail us and we’ll fix it for you. Yup, just like that!

Here’s a teaser for one of the many things that can be done as of today with PCL. Though the video was generated before PCL was conceived, all the algorithms that are needed to obtain these results are present in PCL. In fact, we’ll create a tutorial soon to show you how to do it too in case you get stuck.

Finally, don’t forget to check out the slides from our class at Stanford for more information about PCL and point clouds. I’ve also uploaded my ICRA 2010 PCL talk/presentation slides here.


Apr 1 2009

Change your desktop wallpaper

I got bored of my desktop wallpaper a few days ago, and wanted something different for a change. Here’s what I did:

My Desktop Wallpaper

My Desktop Wallpaper

If you like what you see ;) keep on reading.

The above is generated using Xplanet. However, to get everything to work perfectly you need to tweak a few things. If you wanna duplicate this, here’s what you need to do:

  • download and install xplanet from http://xplanet.sourceforge.net or use apt-get install xplanet on Debian/Ubuntu systems;
  • get the script from http://xplanet.sourceforge.net/FAQ.php#gnome2 (or use my modified copy here) if you have Gnome like I do. There’s also a KDE version available there if you still use _that_ (rolleyes). My changes account for a different projection type and some other small changes. Use their instructions to add it to your list of startup programs (Gnome2 menu -> System -> Preferences -> Sessions);
  • get the script from http://xplanet.sourceforge.net/Extras/download_clouds.py (or use my modified copy here). My changes account for higher quality cloud maps (4096 instead of 2048);
  • create a directory called .xplanet in your home directory;
  • go to the NASA Blue Marble collection and download the monthly pictures from January - December and save them into $HOME/.xplanet/world/ (or change my modifications from the gnome2 script). You have two options there: 1) download the simpler maps showing only the topography of the continents (page 2 and 3) with the oceans in a single color; or 2) download the maps which show both the topography of the continents together with the bathymetry of the oceans. My choice was 2). Downsample and rename the maps as you wish to best fit your screen. I saved my copies as world.topo.bathy.2004{01-12}.1050.jpg. You need to save yours under the same name or change the gnome2 script;
  • from the same page, download the BMNG Raw Topography picture and the BMNG Raw Bathymetry picture. You need to edit the second one to make it binary (black and white) with all continents black and all oceans (or other water spots) white. This can be easily done if you open it up in GIMP, do a select color on the continents, then invert selection, and cut. Save them under $HOME/.xplanet/bump.jpg and $HOME/.xplanet/specular.jpg respectively;
  • get a night shot Earth scene from flatplanet (my favorite is night-electric.jpg) and save it under $HOME/.xplanet/night.jpg
  • finally download my configuration script from here and place it into $HOME/.xplanet/config.

Let’s revise. You now should have the following files in your $HOME/.xplanet/ directory: bump.jpg, config, night.jpg, and specular.jpg. You should also have a subdirectory $HOME/.xplanet/world/, containing 12 files: from world.topo.bathy.200401.1050.jpg to world.topo.bathy.200412.1050.jpg. Now, you need to do one more thing, and you’re done: cloud maps. By default, the xplanet-download_clouds.py will download a high quality (4096) cloud map which you can use. However, I didn’t like the default too much because the clouds towards the poles are just mirrored from the data below them, due to the fact that there is no satellite data for the clouds around the poles. This mirroring artifact looked too weird for me, so I decided to crop the map instead (and then resize it). This results in a minor stretching artifact, but in my opinion it definitely provides a better visual aspect.

Final thoughts. The xplanet-gnome2.sh script will start Xplanet whenever you start your Gnome2 session, and will use all the images together with the current system time above to generate a new screenshot every 2 minutes for your desktop. I consider this an _extremely minor_ penalty performance. If you don’t want your changes that often on the desktop, simply change the sleep time in the script to something else.

The cloud maps are a bit trickier if you want to use _real satellite_ data. The Xplanet folks recommend using the xplanet-download_clouds.py script every 3 hours, because that’s the frequency they generate the new cloud maps with. So, together with my cropping/resizing changes, I made the following script (let’s call it xplanet_clouds.sh — note: my xplanet scripts are in $HOME/bin):

#!/bin/bash
$HOME/bin/xplanet-download_clouds.py /tmp/clouds_4096.jpg
/usr/bin/convert -crop 4096×1700+0+174 /tmp/clouds_4096.jpg /tmp/clouds_custom.jpg
/usr/bin/convert -resize 1680 /tmp/clouds_custom.jpg $HOME/.xplanet/clouds.jpg
rm -f /tmp/clouds_4096.jpg /tmp/clouds_custom.jpg

and then used crontab -e to add the following entry:

0 */3 * * *  path-to-your-xplanet_clouds.sh-script

Have fun.


Mar 2 2009

Firefox multiple tabs rows

If you need more than one row of tabs in Firefox and are tired of scrolling left/right in your list, check out Tab Mix Plus. To add more than one row, go to “Tools->Tab Mix Plus Options->Display->Tab Bar->When tabs don’t fit width:” and set to Multi-row.


Feb 20 2009

Replanning/Perception demo

During my Willow Garage internship, Ioan and I worked on a few things with the PR2 mobile robot. Here’s one of them. :) You can also try here if the above link doesn’t take you directly there.

WG Demo #1