Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
ros::Subscriber sub;

if(i>0){              // 'i' is received as node argument
sub = nh.subscribe("/image_rect_color/compressed", 1, imageCallback);
}

This worked for me.