ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Hi dornedge!
Particularly the subscribeCamera callback function needs two arguments, one for the message itself and the second for sensor_msgs::CameraInfoConstPtr& info_msg ,so cv_ptr_prev must be the 3rd argument. That is why I used it with _1 and _2.
Anyway, foolish from me, yes! there's nothing stopping it from declaring it as a member variable!, and that way is the problem solved! :):) Many thanks!