Skip to content

Commit

Permalink
test alternative fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed Oct 11, 2023
1 parent 7657f25 commit d5b64ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
5 changes: 2 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
set (sources
BrownDistortionModel.cc
CameraSensorUtil.cc
Distortion.cc
EnvironmentalData.cc
GaussianNoiseModel.cc
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
11 changes: 5 additions & 6 deletions src/CameraSensorUtil.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit d5b64ef

Please sign in to comment.