30 int main (
int argc, 
char **argv)
 
   32   ros::init (argc, argv, 
"image_publisher");
 
   36   image_transport::ImageTransport it (nh);
 
   37   image_transport::Publisher pub = it.advertise (
"Image_In", 1);
 
   39   cv_bridge::CvImagePtr cv_ptr (
new cv_bridge::CvImage);
 
   54   string folder_path=
"/home/pedrobatista/Desktop/AtlasDataset/BootData";
 
   62   sensor_msgs::ImagePtr msg;
 
   65   ros::Rate loop_rate (0.04);
 
   67   int nfiles = vect.size(); 
int n=0;
 
   73   while (nh.ok () && n<nfiles )
 
   75       string ImgPath=vect[n].string();
 
   77       if (strstr(vect[n].
string().c_str(),
".jpg") || strstr(vect[n].
string().c_str(),
".png"))
 
   80         cv_ptr->image = cv::imread(ImgPath, CV_LOAD_IMAGE_COLOR);
 
   82         msg = cv_ptr->toImageMsg ();
 
   83         msg->header.frame_id = 
"Image_in";
 
   84         msg->encoding = 
"rgb8";
 
   85         msg->header.stamp = ros::Time::now ();
 
   89         cout<<
"nfiles: "<<n<<endl; 
 
int main(int argc, char **argv)
 
void GetFileList(string folder_path, PVector &dest_vect)