Beispiel #1
0
    def test_play_bag(self):
        launch = launchROS()
        time.sleep(5)
        try:

            play_bag()
            #subprocess.Popen(['rosrun', 'image_view', 'image_view', 'image:=/ORB_SLAM/Frame' '_autosize:=true'], stdin = subprocess.PIPE, stderr = subprocess.PIPE, stdout = subprocess.PIPE)
        except:
            self.fail("can't find last image")
Beispiel #2
0
 def test_ros_launch(self):
     launch = launchROS()
     time.sleep(5)
     try:
         rostopic.rosgraph.Master('/rostopic').getPid()
     except socket.error:
         self.fail("couldn't start Ros")
     else:
         launch.kill()
Beispiel #3
0
    def test_play_bag(self):
        launch = launchROS()
        time.sleep(5)
        try:

            play_bag()
            #subprocess.Popen(['rosrun', 'image_view', 'image_view', 'image:=/ORB_SLAM/Frame' '_autosize:=true'], stdin = subprocess.PIPE, stderr = subprocess.PIPE, stdout = subprocess.PIPE)
        except:
            self.fail("can't find last image")
Beispiel #4
0
 def test_ros_launch(self):
     launch = launchROS()
     time.sleep(5)
     try:
         rostopic.rosgraph.Master('/rostopic').getPid()
     except socket.error:
         self.fail("couldn't start Ros")
     else:
         launch.kill()
Beispiel #5
0
    def test_create_bag(self):
        try:
            launch = launchROS()
            time.sleep(3)
            img_converter("Test.mp4")
            create_bag()
            time.sleep(5)

        except:
            self.fail(" create_bag failed to create bag")
Beispiel #6
0
 def test_create_bag(self):
     try:
         launch = launchROS()
         time.sleep(3)
         img_converter("Test.mp4")
         create_bag()
         time.sleep(5)
         
     except:
         self.fail(" create_bag failed to create bag")
Beispiel #7
0
 def test_checkROS(self):
     launch = launchROS()
     time.sleep(5)
     check = checkROS
     self.assertTrue(check)
     launch.kill()
Beispiel #8
0
 def test_checkROS(self):
     launch = launchROS()
     time.sleep(5)
     check = checkROS
     self.assertTrue(check)
     launch.kill()