7 from localizer_dwm1001.msg
import Tag
28 rospy.init_node(
'test_tag')
29 rospy.Subscriber(
"/dwm1001/tag", Tag, self.
callback)
32 while not rospy.is_shutdown()
and counter < 5
and (
not self.
tagData_ok):
35 rospy.loginfo(
"looping")
42 if isinstance(self.tag.x, float):
45 self.assertTrue(
False)
50 if isinstance(self.tag.y, float):
53 self.assertTrue(
False)
58 if isinstance(self.tag.z, float):
61 self.assertTrue(
False)
65 if __name__ ==
'__main__':
66 rosunit.unitrun(
'localizer_dwm1001',
'test_Tag_3_Publisher', TagTestCase)
def test_if_anchor_3_is_published(self)
def test_if_tag_z_is_float(self)
def test_if_tag_y_is_float(self)
def test_if_tag_x_is_float(self)