From c00882def6c8ec5d936d5af6989c61b2f22731c9 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Sun, 3 Mar 2019 00:14:13 +0300 Subject: [PATCH] aruco_pose: moar tests --- aruco_pose/test/basic.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/aruco_pose/test/basic.py b/aruco_pose/test/basic.py index a8b67046..4d6eff32 100755 --- a/aruco_pose/test/basic.py +++ b/aruco_pose/test/basic.py @@ -64,9 +64,13 @@ class TestArucoPose(unittest.TestCase): def test_visualization(self): vis = rospy.wait_for_message('aruco_detect/visualization', VisMarkerArray, timeout=5) + assert len(vis.markers) == 9 def test_debug(self): img = rospy.wait_for_message('aruco_detect/debug', Image, timeout=5) + assert img.width == 640 + assert img.height == 480 + assert img.header.frame_id == 'main_camera_optical' def test_map(self): pose = rospy.wait_for_message('aruco_map/pose', PoseWithCovarianceStamped, timeout=5) @@ -81,6 +85,9 @@ class TestArucoPose(unittest.TestCase): def test_map_image(self): img = rospy.wait_for_message('aruco_map/image', Image, timeout=5) + assert img.width == 2000 + assert img.height == 2000 + assert img.encoding == 'mono8' def test_map_visualization(self): vis = rospy.wait_for_message('aruco_map/visualization', VisMarkerArray, timeout=5)