Variable ros2_ouster::IS_BIGENDIAN

Variable Documentation

static const bool ros2_ouster::IS_BIGENDIAN = [](){std::uint16_t dummy = 0x1;std::uint8_t * dummy_ptr = reinterpret_cast<std::uint8_t *>(&dummy);return dummy_ptr[0] == 0x1 ? false : true;} ()

Run-time big endian check.

Run-time initialize a constant determining if the underlying machine is big endian. This is needed to properly stamp the PointCloud2 ROS message (below).