If the upper_body_detector is initialized before the rgbd sensor and the
depth image is received before the rgb image (as is the case with a
kinect v1 using openni1 driver), color_image is an empty smart pointer
and thus trying to access a member causes a segfault.
If the upper_body_detector is initialized before the rgbd sensor and the depth image is received before the rgb image (as is the case with a kinect v1 using openni1 driver), color_image is an empty smart pointer and thus trying to access a member causes a segfault.