File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -272,7 +272,21 @@ bool Vision::start()
272272 case GST_STATE_CHANGE_ASYNC :
273273 RCLCPP_ERROR (node_->get_logger (), " [%s]: Failed to start stream (timeout)" , camera_name_.c_str ());
274274 return false ;
275+
276+ case GST_STATE_CHANGE_SUCCESS :
277+ RCLCPP_INFO (node_->get_logger (), " [%s]: Stream started (async)" , camera_name_.c_str ());
278+ break ;
279+
280+ case GST_STATE_CHANGE_NO_PREROLL :
281+ RCLCPP_INFO (node_->get_logger (), " [%s]: Stream started (no preroll)" , camera_name_.c_str ());
282+ break ;
283+
284+ default :
285+ RCLCPP_ERROR (node_->get_logger (), " [%s]: Unknown state change result" , camera_name_.c_str ());
286+ return false ;
275287 }
288+
289+ break ;
276290 }
277291
278292 case GST_STATE_CHANGE_SUCCESS :
@@ -380,7 +394,8 @@ bool Vision::publish()
380394 // Update header information
381395 auto cur_cinfo = camera_info_manager_->getCameraInfo ();
382396
383- if (cur_cinfo.height != image_height_ || cur_cinfo.width != image_width_)
397+ if (cur_cinfo.height != static_cast <unsigned int >(image_height_) ||
398+ cur_cinfo.width != static_cast <unsigned int >(image_width_))
384399 {
385400 RCLCPP_WARN_ONCE (node_->get_logger (),
386401 " [%s]: Calibration file sensor resolution (%dx%d pixels) doesn't match stream resolution (%dx%d "
You can’t perform that action at this time.
0 commit comments