Skip to content

Commit

Permalink
[jsk_perception] fix bugs in rect_array_in_panorama_to_boudning_box_a…
Browse files Browse the repository at this point in the history
…rray
  • Loading branch information
sktometometo committed Mar 20, 2021
1 parent 9c2fef0 commit c8b3051
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -30,8 +30,7 @@ def transformPanoramaPoint(x,
theta_max,
phi_min,
phi_max):
phi = phi_max + \
1.0 * (phi_min - phi_max) * x / image_width
phi = phi_max + 1.0 * (phi_min - phi_max) * x / image_width
theta = theta_min + 1.0 * (theta_max - theta_min) * y / image_height
return (theta, phi)

Expand Down Expand Up @@ -101,7 +100,8 @@ def _cb_object(self,
time_current = msg_rects.header.stamp

msg_bbox_array = BoundingBoxArray()
msg_bbox_array.header = msg_rects.header
msg_bbox_array.header.frame_id = self._frame_fixed
msg_bbox_array.header.stamp = msg_rects.header.stamp

try:
pykdl_transform_fixed_to_panorama = tf2_geometry_msgs.transform_to_kdl(
Expand Down

0 comments on commit c8b3051

Please sign in to comment.