passing image as a message
Hi,
I would like to understand this function
void image_callback(sensor_msgs::ImageConstPtr image)
{
ROS_DEBUG_STREAM("VO:image_callback{" << ros::Time::now() << "} seq=" << image->header.seq);
static nav_msgs::Odometry odom_output;
/* vo->on_image(&image->data[0], (image->encoding == "bgr8" ? false : true), image->width, image->height, &odom_output.twist.twist.linear.x, &odom_output.twist.twist.angular.z);
odom_output.header.stamp = image->header.stamp;
odom_output.header.seq++;*/
pub_vo.publish(odom_output);
}
Thanks