ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Try the following:
sensor_msgs::ImageConstPtr my_image_const_ptr = &my_image;
sensor_msgs::ImageConstPtr is nothing else than a constant shared pointer to a sensor_msgs::Image
2 | No.2 Revision |
Try the following:
sensor_msgs::Image my_image = <somehow get this image>;
sensor_msgs::ImageConstPtr my_image_const_ptr = &my_image;
sensor_msgs::ImageConstPtr sensor_msgs::ImageConstPtr
is nothing else than a constant shared pointer to a sensor_msgs::Image.
3 | No.3 Revision |
Try the following:
sensor_msgs::Image my_image = <somehow get this image>;
image with toImageMsg()>;
sensor_msgs::ImageConstPtr my_image_const_ptr = &my_image;
sensor_msgs::ImageConstPtr
is nothing else than a constant shared pointer to a sensor_msgs::Image
.