ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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.