osrf / mbzirc

Simulator for the MBZIRC Maritime Grand Challenge
Apache License 2.0
72 stars 47 forks source link

Fix reporting targets from RGBD camera #216

Closed iche033 closed 2 years ago

iche033 commented 2 years ago

Signed-off-by: Ian Chen ichen@osrfoundation.org

fixes https://github.com/osrf/mbzirc/issues/209.

Problem was that rgbd camera does not support the VisualAt function that is used to identify targets. I worked around the issue by creating a regular camera with the rgbd camera's resolution and hfov, which is used in place of the rgbd camera when a target report is received.

Steps for testing are similar to https://github.com/osrf/mbzirc/pull/195. Instead of using an mbzirc_hd_camera, use an mbzirc_rgbd_camera. The rgbd camera has lower resolution so when reporting targets, change coordinates to 320, 240