magazino / pylon_camera

ROS-Driver for Basler Cameras
BSD 3-Clause "New" or "Revised" License
78 stars 108 forks source link

Updated camera calibration support #6

Closed kmalhan closed 7 years ago

kmalhan commented 7 years ago

When camera is not calibrated at the beginning, and user performs camera calibration, node crashes at following line 433 as "cv_bridge_img_rect" is not pointing to anything. cv_bridge_img_rect_->header.stamp = img_raw_msg_.header.stamp;

I have added the code to call setupRectification() if "cv_bridge_img_rect" is null pointer to make sure that topic and related objects are initialized before accessing them.

kmalhan commented 7 years ago

I am sorry but I unexpectedly pushed my changes and pull request got modified. I will close this and submit new one with correct change.