2 from sensor_msgs.msg
import Range
4 rospy.init_node(
'sender')
7 r.header.frame_id =
'/base_laser_link' 8 r.field_of_view = 25*3.14/180
12 pub = rospy.Publisher(
'/sonar', Range)
14 while not rospy.is_shutdown():
15 r.header.stamp = rospy.Time.now()