mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-09 22:29:48 +08:00
refactor: replace isGemini335PID with isGemini330SeriesPID for improved clarity and consistency
This commit is contained in:
@@ -149,6 +149,16 @@ const int32_t GEMINI_338LE_PID = 0x081B; // Gemini 338Le
|
||||
const int32_t GEMINI_338L_PID = 0x081C; // Gemini 338L
|
||||
const int32_t GEMINI_331L_PID = 0x081D; // Gemini 331L
|
||||
|
||||
inline bool isGemini330SeriesPID(uint32_t pid) {
|
||||
return pid == GEMINI_335_PID || pid == GEMINI_330_PID || pid == GEMINI_336_PID ||
|
||||
pid == GEMINI_335L_PID || pid == GEMINI_330L_PID || pid == GEMINI_336L_PID ||
|
||||
pid == GEMINI_335LG_PID || pid == GEMINI_336LG_PID || pid == GEMINI_335LE_PID ||
|
||||
pid == GEMINI_336LE_PID || pid == CUSTOM_ADVANTECH_GEMINI_336_PID ||
|
||||
pid == CUSTOM_ADVANTECH_GEMINI_336L_PID || pid == GEMINI_338_PID ||
|
||||
pid == GEMINI_338LG_PID || pid == GEMINI_338LE_PID || pid == GEMINI_338L_PID ||
|
||||
pid == GEMINI_331L_PID;
|
||||
}
|
||||
|
||||
inline bool isGemini305SeriesPID(uint32_t pid) {
|
||||
return pid == GEMINI_305_PID || pid == GEMINI_305_PID2 || pid == GEMINI_305G_PID ||
|
||||
pid == GEMINI_309G_PID;
|
||||
|
||||
@@ -666,8 +666,6 @@ class OBCameraNode {
|
||||
|
||||
orbbec_camera_msgs::msg::IMUInfo createIMUInfo(const stream_index_pair& stream_index);
|
||||
|
||||
static bool isGemini335PID(uint32_t pid);
|
||||
|
||||
static bool isGemini435LePID(uint32_t pid);
|
||||
static bool isPublishMetaData(uint32_t pid);
|
||||
static bool isDabaiASeriesForHwD2C(uint32_t pid);
|
||||
|
||||
Reference in New Issue
Block a user