Skip to content

Commit 7f584c2

Browse files
committed
Compile fixes
1 parent 9dc5a3c commit 7f584c2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/CameraNode.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ CameraNode::CameraNode(const rclcpp::NodeOptions &options)
320320
libcamera::StreamConfiguration &scfg = cfg->at(0);
321321

322322
// list all camera formats, including those not supported by the ROS message
323-
RCLCPP_DEBUG_STREAM(get_logger(), "default " << role << " stream configuration: \"" << scfg.toString() << "\"");
323+
RCLCPP_DEBUG_STREAM(get_logger(), "default " << *roles.begin() << " stream configuration: \"" << scfg.toString() << "\"");
324324
RCLCPP_DEBUG_STREAM(get_logger(), scfg.formats());
325325

326326
// get common pixel formats that are supported by the camera and the node
@@ -376,8 +376,7 @@ CameraNode::CameraNode(const rclcpp::NodeOptions &options)
376376

377377
modecfg.pixelFormat = libcamera::formats::SBGGR12_CSI2P;
378378

379-
RCLCPP_INFO_STREAM(get_logger(), "modecfg ");
380-
RCLCPP_INFO_STREAM(get_logger(), modecfg);
379+
RCLCPP_INFO_STREAM(get_logger(), "Mode configuration: " << modecfg.toString());
381380

382381
set_parameter(rclcpp::Parameter("mode_width", int64_t(modecfg.size.width)));
383382
set_parameter(rclcpp::Parameter("mode_height", int64_t(modecfg.size.height)));

0 commit comments

Comments
 (0)