Skip to content
Snippets Groups Projects
Commit cf792d8b authored by Timothy Wiley's avatar Timothy Wiley
Browse files

Update dummy RGB image header

parent 9c266184
Branches
No related tags found
No related merge requests found
......@@ -135,6 +135,14 @@ void PositionTrackFull3DNode::callbackKinectDepthOnly(const sensor_msgs::ImageCo
}*/
try {
// Set rgb dummy image header
// Need to do nasty casting stuff so the header can change...
//boost::shared_ptr< ::sensor_msgs::Image >
sensor_msgs::ImagePtr tmpDummyImage(boost::const_pointer_cast<sensor_msgs::Image>(dummyImage));
tmpDummyImage->header.seq = depthImage->header.seq;
tmpDummyImage->header.stamp = depthImage->header.stamp;
tmpDummyImage->header.frame_id = depthImage->header.frame_id;
callbackKinect(depthImage, dummyImage);
lastprocess = ros::Time::now();
} catch (...) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment