File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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 )));
You can’t perform that action at this time.
0 commit comments