Example #1
0
 def test_fileIsAudio(self):
     rospack = rospkg.RosPack()
     qr_service = rospy.get_param("rapp_qr_detection_detect_qrs_topic")
     rospy.wait_for_service(qr_service)
     fd_service = rospy.ServiceProxy(qr_service, QrDetectionRosSrv)
     req = QrDetectionRosSrvRequest()
     req.imageFilename = rospack.get_path('rapp_testing_tools') + \
             '/test_data/nai_sample.wav'
     response = fd_service(req)
     qr_num = len(response.qr_messages)
     self.assertEqual(qr_num, 0)
 def test_fileIsAudio(self):
     rospack = rospkg.RosPack()
     qr_service = rospy.get_param("rapp_qr_detection_detect_qrs_topic")
     rospy.wait_for_service(qr_service)
     fd_service = rospy.ServiceProxy(qr_service, QrDetectionRosSrv)
     req = QrDetectionRosSrvRequest()
     req.imageFilename = rospack.get_path('rapp_testing_tools') + \
             '/test_data/nai_sample.wav'
     response = fd_service(req)
     qr_num = len(response.qr_messages)
     self.assertEqual( qr_num, 0 )
Example #3
0
 def test_qrExists_stress(self):
     rospack = rospkg.RosPack()
     qr_service = rospy.get_param("rapp_qr_detection_detect_qrs_topic")
     rospy.wait_for_service(qr_service)
     fd_service = rospy.ServiceProxy(qr_service, QrDetectionRosSrv)
     req = QrDetectionRosSrvRequest()
     req.imageFilename = rospack.get_path('rapp_testing_tools') + \
             '/test_data/qr_code_rapp.jpg'
     for i in range(0, 100):
         response = fd_service(req)
         qr_num = len(response.qr_messages)
         self.assertEqual(qr_num, 1)
 def test_qrExists_stress(self):
     rospack = rospkg.RosPack()
     qr_service = rospy.get_param("rapp_qr_detection_detect_qrs_topic")
     rospy.wait_for_service(qr_service)
     fd_service = rospy.ServiceProxy(qr_service, QrDetectionRosSrv)
     req = QrDetectionRosSrvRequest()
     req.imageFilename = rospack.get_path('rapp_testing_tools') + \
             '/test_data/qr_code_rapp.jpg'
     for i in range(0,100):
         response = fd_service(req)
         qr_num = len(response.qr_messages)
         self.assertEqual( qr_num, 1 )