39 from hardware_driver_pkg.msg
import AnchorScan
53 rospy.init_node(
"hardware_ros_driver_template", anonymous =
True)
57 pub = rospy.Publisher(
'IPS', AnchorScan, queue_size = 2)
63 while not rospy.is_shutdown():
70 msg.header.stamp = rospy.Time.now()
73 msg.AnchorID = [101, 102, 103, 104]
77 msg.x = [2.675, 3.42, 12.475, 12.473]
81 msg.y = [-0.09, 4.58, -0.015, 4.543]
85 msg.z = [1.94, 2.07, 2.4, 2.35]
89 msg.tdoa_of_anchors = [TDOA_102_101, TDOA_103_101, TDOA_104_101]
97 if __name__ ==
'__main__':
100 except rospy.ROSInterruptException:
def anchor_data_publisher()