CreOS SDK
The CreOS SDK allows you to interact with Avular robots
 
Loading...
Searching...
No Matches
multi_array_layout.hpp
Go to the documentation of this file.
1
8namespace std_msgs::msg {
19public:
20 // This was originally provided as an example message.
21 // It is deprecated as of Foxy
22 // It is recommended to create your own semantically meaningful message.
23 // However if you would like to continue using this please use the equivalent in example_msgs.
24
25 // The multiarray declares a generic multi-dimensional array of a
26 // particular data type. Dimensions are ordered from outer most
27 // to inner most.
28 //
29 // Accessors should ALWAYS be written in terms of dimension stride
30 // and specified outer-most dimension first.
31 //
32 // multiarray(i,j,k) = data[data_offset + dim_stride[1]*i + dim_stride[2]*j + k]
33 //
34 // A standard, 3-channel 640x480 image with interleaved color channels
35 // would be specified as:
36 //
37 // dim[0].label = "height"
38 // dim[0].size = 480
39 // dim[0].stride = 3*640*480 = 921600 (note dim[0] stride is just size of image)
40 // dim[1].label = "width"
41 // dim[1].size = 640
42 // dim[1].stride = 3*640 = 1920
43 // dim[2].label = "channel"
44 // dim[2].size = 3
45 // dim[2].stride = 3
46 //
47 // multiarray(i,j,k) refers to the ith row, jth column, and kth channel.
48
49 std::vector<msg::MultiArrayDimension> dim;
50 uint32_t data_offset;
51};
52} // namespace std_msgs::msg
ROS message class definition for MultiArrayLayout.
Definition multi_array_layout.hpp:18
std::vector< msg::MultiArrayDimension > dim
Array of dimension properties.
Definition multi_array_layout.hpp:49
uint32_t data_offset
padding bytes at front of data
Definition multi_array_layout.hpp:50
message definitions of the std_msgs package
Definition bool.hpp:8