ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You might want to try something like below:

void filterImage (const sensor_msgs::ImageConstPtr& rgb_msg)
{
    sensor_msgs::Image current_rgb_msg;
    current_rgb_msg = *rgb_msg;   
}

You can further manipulate the value from current_rgb_msg variable.