Update types
This commit is contained in:
parent
149ed6bdce
commit
cd9af4fc48
|
@ -52,6 +52,10 @@ enum class Capabilities : std::uint8_t {
|
||||||
POINTS,
|
POINTS,
|
||||||
/** Provices fisheye stream */
|
/** Provices fisheye stream */
|
||||||
FISHEYE,
|
FISHEYE,
|
||||||
|
/** Provices infrared stream */
|
||||||
|
INFRARED,
|
||||||
|
/** Provices second infrared stream */
|
||||||
|
INFRARED2,
|
||||||
/** Provices IMU (accelerometer, gyroscope) data */
|
/** Provices IMU (accelerometer, gyroscope) data */
|
||||||
IMU,
|
IMU,
|
||||||
/** Last guard */
|
/** Last guard */
|
||||||
|
|
|
@ -34,6 +34,8 @@ const char *to_string(const Capabilities &value) {
|
||||||
CASE(DEPTH)
|
CASE(DEPTH)
|
||||||
CASE(POINTS)
|
CASE(POINTS)
|
||||||
CASE(FISHEYE)
|
CASE(FISHEYE)
|
||||||
|
CASE(INFRARED)
|
||||||
|
CASE(INFRARED2)
|
||||||
CASE(IMU)
|
CASE(IMU)
|
||||||
default:
|
default:
|
||||||
CHECK(is_valid(value));
|
CHECK(is_valid(value));
|
||||||
|
|
|
@ -22,6 +22,8 @@ TEST(Capabilities, VerifyToString) {
|
||||||
EXPECT_STREQ("Capabilities::DEPTH", to_string(Capabilities::DEPTH));
|
EXPECT_STREQ("Capabilities::DEPTH", to_string(Capabilities::DEPTH));
|
||||||
EXPECT_STREQ("Capabilities::POINTS", to_string(Capabilities::POINTS));
|
EXPECT_STREQ("Capabilities::POINTS", to_string(Capabilities::POINTS));
|
||||||
EXPECT_STREQ("Capabilities::FISHEYE", to_string(Capabilities::FISHEYE));
|
EXPECT_STREQ("Capabilities::FISHEYE", to_string(Capabilities::FISHEYE));
|
||||||
|
EXPECT_STREQ("Capabilities::INFRARED", to_string(Capabilities::INFRARED));
|
||||||
|
EXPECT_STREQ("Capabilities::INFRARED2", to_string(Capabilities::INFRARED2));
|
||||||
EXPECT_STREQ("Capabilities::IMU", to_string(Capabilities::IMU));
|
EXPECT_STREQ("Capabilities::IMU", to_string(Capabilities::IMU));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user