Function aruco_ros::rosCameraInfo2ArucoCamParams

Function Documentation

aruco::CameraParameters aruco_ros::rosCameraInfo2ArucoCamParams(const sensor_msgs::msg::CameraInfo &cam_info, bool useRectifiedParameters)

rosCameraInfo2ArucoCamParams gets the camera intrinsics from a CameraInfo message and copies them to aruco_ros own data structure

Parameters:
  • cam_info

  • useRectifiedParameters – if true, the intrinsics are taken from cam_info.P and the distortion parameters are set to 0. Otherwise, cam_info.K and cam_info.D are taken.

Returns: