Skip to content

Commit

Permalink
Fix encoding for rgbd
Browse files Browse the repository at this point in the history
  • Loading branch information
ymd-stella committed Aug 10, 2024
1 parent eb55bcf commit 28bcfee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stella_vslam_ros.cc
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ void rgbd::callback(const sensor_msgs::msg::Image::ConstSharedPtr& color, const
camera_optical_frame_ = color->header.frame_id;
}
auto colorcv = cv_bridge::toCvShare(color, encoding_)->image;
auto depthcv = cv_bridge::toCvShare(depth, encoding_)->image;
auto depthcv = cv_bridge::toCvShare(depth)->image;
if (colorcv.empty() || depthcv.empty()) {
return;
}
Expand Down

0 comments on commit 28bcfee

Please sign in to comment.