CreOS SDK
The CreOS SDK allows you to interact with Avular robots
 
Loading...
Searching...
No Matches
image.hpp
Go to the documentation of this file.
1
8namespace sensor_msgs::msg {
16class Image {
17public:
18 // This message contains an uncompressed image
19 // (0, 0) is at top-left corner of image
20
22 // Header frame_id should be optical frame of camera
23 // origin of frame should be optical center of cameara
24 // +x should point to the right in the image
25 // +y should point down in the image
26 // +z should point into to plane of the image
27 // If the frame_id here and the frame_id of the CameraInfo
28 // message associated with the image conflict
29 // the behavior is undefined
30
31 uint32_t height;
32 uint32_t width;
33
34 // The legal values for encoding are in file src/image_encodings.cpp
35 // If you want to standardize a new string format, join
36 // ros-users@lists.ros.org and send an email proposing a new encoding.
37
38 std::string encoding;
39 // taken from the list of strings in include/sensor_msgs/image_encodings.hpp
40
41 uint8_t is_bigendian;
42 uint32_t step;
43 std::vector<uint8_t> data;
44};
45} // namespace sensor_msgs::msg
ROS message class definition for Image.
Definition image.hpp:16
uint32_t width
image width, that is, number of columns
Definition image.hpp:32
uint32_t height
image height, that is, number of rows
Definition image.hpp:31
uint8_t is_bigendian
is this data bigendian?
Definition image.hpp:41
std::string encoding
Encoding of pixels – channel meaning, ordering, size.
Definition image.hpp:38
std::vector< uint8_t > data
actual matrix data, size is (step * rows)
Definition image.hpp:43
uint32_t step
Full row length in bytes.
Definition image.hpp:42
std_msgs::msg::Header header
Header timestamp should be acquisition time of image.
Definition image.hpp:21
ROS message class definition for Header.
Definition header.hpp:17
message definitions of the sensor_msgs package
Definition battery_state.hpp:8