24 #ifndef CAMERA_ARAVIS_CONVERSION_UTILS
25 #define CAMERA_ARAVIS_CONVERSION_UTILS
29 #include <sensor_msgs/Image.h>
36 static const char *
szBufferStatusFromInt[] = {
"ARV_BUFFER_STATUS_SUCCESS",
"ARV_BUFFER_STATUS_CLEARED",
37 "ARV_BUFFER_STATUS_TIMEOUT",
"ARV_BUFFER_STATUS_MISSING_PACKETS",
38 "ARV_BUFFER_STATUS_WRONG_PACKET_ID",
"ARV_BUFFER_STATUS_SIZE_MISMATCH",
39 "ARV_BUFFER_STATUS_FILLING",
"ARV_BUFFER_STATUS_ABORTED"};
42 using ConversionFunction = std::function<void(sensor_msgs::ImagePtr& in, sensor_msgs::ImagePtr& out)>;
44 void renameImg(sensor_msgs::ImagePtr& in, sensor_msgs::ImagePtr& out,
const std::string out_format);
45 void shiftImg(sensor_msgs::ImagePtr& in, sensor_msgs::ImagePtr& out,
const size_t n_digits,
const std::string out_format);
46 void interleaveImg(sensor_msgs::ImagePtr& in, sensor_msgs::ImagePtr& out,
const size_t n_digits,
const std::string out_format);
47 void unpack10p32Img(sensor_msgs::ImagePtr& in, sensor_msgs::ImagePtr& out,
const std::string out_format);
48 void unpack10PackedImg(sensor_msgs::ImagePtr& in, sensor_msgs::ImagePtr& out,
const std::string out_format);
49 void unpack10pMonoImg(sensor_msgs::ImagePtr& in, sensor_msgs::ImagePtr& out,
const std::string out_format);
50 void unpack10PackedMonoImg(sensor_msgs::ImagePtr& in, sensor_msgs::ImagePtr& out,
const std::string out_format);
51 void unpack12pImg(sensor_msgs::ImagePtr& in, sensor_msgs::ImagePtr& out,
const std::string out_format);
52 void unpack12PackedImg(sensor_msgs::ImagePtr& in, sensor_msgs::ImagePtr& out,
const std::string out_format);
53 void unpack565pImg(sensor_msgs::ImagePtr& in, sensor_msgs::ImagePtr& out,
const std::string out_format);