.. _program_listing_file_include_ros2_ouster_image_os.hpp: Program Listing for File image_os.hpp ===================================== |exhale_lsh| :ref:`Return to documentation for file ` (``include/ros2_ouster/image_os.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp // Copyright 2020, Steve Macenski // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef ROS2_OUSTER__IMAGE_OS_HPP_ #define ROS2_OUSTER__IMAGE_OS_HPP_ namespace image_os { struct ImageOS { float intensity; uint16_t reflectivity; uint16_t noise; uint32_t range; uint8_t ring; uint8_t col; EIGEN_MAKE_ALIGNED_OPERATOR_NEW static inline ImageOS make( float x, float y, float z, float intensity, uint32_t t, uint16_t reflectivity, uint8_t ring, uint8_t col, uint16_t noise, uint32_t range) { return {intensity, reflectivity, noise, range, ring, col}; } }; } // namespace image_os #endif // ROS2_OUSTER__IMAGE_OS_HPP_