diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 23e52bb0..95bd42a7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,6 +1,5 @@ set (sources BrownDistortionModel.cc - CameraSensorUtil.cc Distortion.cc EnvironmentalData.cc GaussianNoiseModel.cc @@ -59,7 +58,7 @@ target_link_libraries(${rendering_target} gz-rendering${GZ_RENDERING_VER}::gz-rendering${GZ_RENDERING_VER} ) -set(camera_sources CameraSensor.cc) +set(camera_sources CameraSensor.cc CameraSensorUtil.cc) gz_add_component(camera SOURCES ${camera_sources} DEPENDS_ON_COMPONENTS rendering @@ -76,7 +75,7 @@ target_link_libraries(${camera_target} gz-transport${GZ_TRANSPORT_VER}::gz-transport${GZ_TRANSPORT_VER} ) -set(depth_camera_sources DepthCameraSensor.cc) +set(depth_camera_sources DepthCameraSensor.cc CameraSensorUtil.cc) gz_add_component(depth_camera SOURCES ${depth_camera_sources} DEPENDS_ON_COMPONENTS camera diff --git a/src/CameraSensorUtil.hh b/src/CameraSensorUtil.hh index 9b267066..ed76c986 100644 --- a/src/CameraSensorUtil.hh +++ b/src/CameraSensorUtil.hh @@ -82,12 +82,11 @@ math::Matrix4d buildPerspectiveMatrix( /// This value is negative if the plane is to be behind /// the camera /// \return OpenGL projection matrix -math::Matrix4d GZ_SENSORS_VISIBLE buildProjectionMatrix( - double _imageWidth, double _imageHeight, - double _intrinsicsFx, double _intrinsicsFy, - double _intrinsicsCx, double _intrinsicsCy, - double _intrinsicsS, double _clipNear, - double _clipFar); +math::Matrix4d buildProjectionMatrix(double _imageWidth, double _imageHeight, + double _intrinsicsFx, double _intrinsicsFy, + double _intrinsicsCx, double _intrinsicsCy, + double _intrinsicsS, double _clipNear, + double _clipFar); } } }