mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-26 11:43:25 +00:00
* aruco_pose: use pytest * Use ros_pytest * Add ros_pytest to rosdep * aruco_pose: compare floats more roughly in pytest * aruco_pose: rewrite all the rest tests in pytest
14 lines
350 B
Python
Executable File
14 lines
350 B
Python
Executable File
import rospy
|
|
import pytest
|
|
|
|
from visualization_msgs.msg import MarkerArray as VisMarkerArray
|
|
|
|
|
|
@pytest.fixture
|
|
def node():
|
|
return rospy.init_node('aruco_pose_test_empty_map', anonymous=True)
|
|
|
|
def test_empty_map(node):
|
|
markers = rospy.wait_for_message('aruco_map/visualization', VisMarkerArray, timeout=5)
|
|
assert len(markers.markers) == 0
|