Skip to content

Commit

Permalink
Fix distortion coefficient vector (bdaiinstitute#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhoelscher-bdai authored Dec 6, 2023
1 parent 8b35de9 commit e5ab1af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spot_driver_cpp/src/interfaces/spot_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ tl::expected<sensor_msgs::msg::CameraInfo, std::string> toCameraInfoMsg(
info_msg.header.stamp = applyClockSkew(image_response.shot().acquisition_time(), clock_skew);

// We assume that the camera images have already been corrected for distortion, so the 5 distortion parameters are all
// zero
info_msg.d = std::vector<double>{5, 0.0};
// zero.
info_msg.d = std::vector<double>{0.0, 0.0, 0.0, 0.0, 0.0};

// Set the rectification matrix to identity, since this is not a stereo pair.
info_msg.r[0] = 1.0;
Expand Down

0 comments on commit e5ab1af

Please sign in to comment.