def execute(self, userdata): rospy.loginfo("Informing Ambulance...............") #Creating image from REEM's camera image_converter() image_created_number = ImageCreator(location_list=[ userdata.person_location.pose.position.x, userdata.person_location.pose.position.y ], origin=IMAGE_ORIGIN, scale=RESOLUTION, image_name=IMAGE_NAME, pkg_path=PKG_PATH, image_path=IMAGE_PATH) create_pdf(PKG_PATH + '/config/') print "PDF CREATED in " + PKG_PATH + '/config/reem3.pdf' rospy.loginfo("Copying file to %s/reem3.pdf" % self.pendrive_location) #shutil.copy(PKG_PATH + '/config/' + "reem3.pdf", self.pendrive_location + '/reem3.pdf') rospy.loginfo("Ambulance informed successfully !!!!") rospy.loginfo("Secure Copying from Control to Multimedia - Pendrive") subprocess.call("copy_to_usb.sh", shell=True) subprocess.call("unmountexample.sh", shell=True) return 'succeeded'
def execute(self, userdata): rospy.loginfo("Informing Ambulance...............") image_created_number = ImageCreator(location_list=[userdata.person_location.pose.pose.position.x, userdata.person_location.pose.pose.position.y], origin=IMAGE_ORIGIN, scale=RESOLUTION, image_name=IMAGE_NAME, pkg_path=PKG_PATH, image_path=IMAGE_PATH) create_pdf(PKG_PATH + '/config/') print "PDF CREATED in " + PKG_PATH + '/config/reem3.pdf' rospy.loginfo("Copying file to %s/reem3.pdf" % self.pendrive_location) #shutil.copy(PKG_PATH + '/config/' + "reem3.pdf", self.pendrive_location + '/reem3.pdf') rospy.loginfo("Ambulance informed successfully !!!!") return 'succeeded'
def execute(self, userdata): rospy.loginfo("Informing Ambulance...............") #Creating image from REEM's camera image_converter() image_created_number = ImageCreator(location_list=[userdata.person_location.pose.pose.position.x, userdata.person_location.pose.pose.position.y], origin=IMAGE_ORIGIN, scale=RESOLUTION, image_name=IMAGE_NAME, pkg_path=PKG_PATH, image_path=IMAGE_PATH) create_pdf(PKG_PATH + '/config/') print "PDF CREATED in " + PKG_PATH + '/config/reem3.pdf' rospy.loginfo("Copying file to %s/reem3.pdf" % self.pendrive_location) #shutil.copy(PKG_PATH + '/config/' + "reem3.pdf", self.pendrive_location + '/reem3.pdf') rospy.loginfo("Ambulance informed successfully !!!!") rospy.loginfo("Secure Copying from Control to Multimedia - Pendrive") subprocess.call("copy_to_usb.sh", shell=True) return 'succeeded'