Can i call a callback funcion on my main funcion?
Hi,
I'm a noob at ros but i'm trying to do some school work. I have a cameraCallback funcion and it is subscribed as "// Setup camera subscriber ros::Subscriber sub_cam = nh.subscribe(robot_name+"/camera_front/image_raw", 1, cameraCallback);"
Now, i need to call only the funtion cameraCallback, withouth calling ros::spinOnce. Can anyone tell me how to do it? cameraCallback function if defined like this: "void cameraCallback(const sensor_msgs::ImageConstPtr& msg){}" and i can't call it on my main, with "cameraCallback(&msg);"
Any answer will be helpfull. Thanks in advance