Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Serafadam committed Oct 13, 2023
1 parent a6391be commit 0694bf1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
1 change: 1 addition & 0 deletions depthai_bridge/include/depthai_bridge/ImageConverter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ class ImageConverter {
dai::CameraExposureOffset _expOffset;
bool _reverseStereoSocketOrder = false;
double _baseline;
bool _alphaScalingEnabled = false;
double _alphaScalingFactor = 0.0;
};

Expand Down
2 changes: 0 additions & 2 deletions depthai_ros_driver/src/dai_nodes/stereo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,6 @@ void Stereo::setupStereoQueue(std::shared_ptr<dai::Device> device) {
}
info.R[0] = info.R[4] = info.R[8] = 1.0;
}
im->setCameraInfo(info);

stereoIM->setCameraInfo(info);

stereoPubIT = it.advertiseCamera(getName() + "/image_raw", 1);
Expand Down
10 changes: 2 additions & 8 deletions depthai_ros_driver/src/param_handlers/sensor_param_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,11 @@ void SensorParamHandler::declareParams(std::shared_ptr<dai::node::ColorCamera> c
int videoWidth = declareAndLogParam<int>("i_width", width);
int videoHeight = declareAndLogParam<int>("i_height", height);
if(videoWidth > maxVideoWidth) {
RCLCPP_WARN(getROSNode()->get_logger(),
"Video width %d is greater than max video width %d. Setting video width to max video width.",
videoWidth,
maxVideoWidth);
ROS_WARN("Video width %d is greater than max video width %d. Setting video width to max video width.", videoWidth, maxVideoWidth);
videoWidth = maxVideoWidth;
}
if(videoHeight > maxVideoHeight) {
RCLCPP_WARN(getROSNode()->get_logger(),
"Video height %d is greater than max video height %d. Setting video height to max video height.",
videoHeight,
maxVideoHeight);
ROS_WARN("Video height %d is greater than max video height %d. Setting video height to max video height.", videoHeight, maxVideoHeight);
videoHeight = maxVideoHeight;
}
colorCam->setVideoSize(videoWidth, videoHeight);
Expand Down

0 comments on commit 0694bf1

Please sign in to comment.