ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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.