Skip to content

Commit

Permalink
Update capture.cpp
Browse files Browse the repository at this point in the history
- adds missing ; on line 378
- fixes warning of printing var of size_t at two places
  • Loading branch information
mithundiddi authored Sep 21, 2021
1 parent e1aab60 commit e39b2ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/capture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ void acquisition::Capture::read_parameters() {
int mcam_int;

if (!EXTERNAL_TRIGGER_){
bool const got_master_cam = nh_pvt_.getParam("master_cam", mcam_int)
bool const got_master_cam = nh_pvt_.getParam("master_cam", mcam_int);
ROS_ASSERT_MSG(got_master_cam,"master_cam is required!");

master_cam_id_=to_string(mcam_int);
Expand Down Expand Up @@ -1222,7 +1222,7 @@ void acquisition::Capture::write_queue_to_disk(queue<ImagePtr>* img_q, int cam_n
SyncInfo_ sync_info = sync_message_queue_vector_.at(cam_no).front();
sync_info.latest_imu_trigger_count_;
timeStamp = sync_info.latest_imu_trigger_time_.toSec() * 1e6;
ROS_INFO("time Queue size for cam %d is = %d",cam_no,sync_message_queue_vector_.at(cam_no).size());
ROS_INFO("time Queue size for cam %d is = %zd",cam_no,sync_message_queue_vector_.at(cam_no).size());
sync_message_queue_vector_.at(cam_no).pop();
}
else{
Expand Down Expand Up @@ -1416,7 +1416,7 @@ void acquisition::Capture::dynamicReconfigureCallback(spinnaker_sdk_camera_drive
if(first_image_received){
for (int i = 0; i < numCameras_; i++){
sync_message_queue_vector_.at(i).push(sync_info);
ROS_DEBUG("Sync trigger added to cam: %d, length of queue: %d",i,sync_message_queue_vector_.at(i).size());
ROS_DEBUG("Sync trigger added to cam: %d, length of queue: %zd",i,sync_message_queue_vector_.at(i).size());
}
}
//double curr_time_msg_recieved = ros::Time::now().toSec();
Expand Down

0 comments on commit e39b2ac

Please sign in to comment.