Some utility functions for the PR2.