10 listener.waitForTransform(
'odom', msg.header.frame_id, msg.header.stamp, rospy.Duration(1.0))
11 p_conv = listener.transformPoint(
'odom', msg)
12 bbox_array = BoundingBoxArray()
13 bbox_array.header = p_conv.header
15 bbox.header = p_conv.header
16 bbox.pose =
Pose(position=p_conv.point)
20 bbox_array.boxes.append(bbox)
21 bbox_pub.publish(bbox_array)
23 rospy.init_node(
'clicked_bbox')
25 point_sub = rospy.Subscriber(
'clicked_point', PointStamped, clicked_point_cb)
26 bbox_pub = rospy.Publisher(
27 'bbox_with_clicked_point', BoundingBoxArray, queue_size=1)
def clicked_point_cb(msg)