felixendres / rgbdslam_v2

RGB-D SLAM for ROS
GNU General Public License v3.0
935 stars 399 forks source link

error: call of overloaded ‘round(float)’ is ambiguous #118

Open ideechaniz opened 4 years ago

ideechaniz commented 4 years ago

catkin_ws/src/rgbdslam_v2/src/misc.cpp:1016:53: error: call of overloaded ‘round(float)’ is ambiguous int old_ry_center = round((p.y / p.z)* fy + cy); ^

ideechaniz commented 4 years ago

I saw a similar issue for Ubuntu 18. I am using Debian 10.2 with ros melodic

chenjianqu commented 4 years ago

I fix it by modify the name of function "inline int round(float)"