add enable hardware d2d

This commit is contained in:
Joe Dong
2023-03-01 22:01:08 +08:00
parent 1b4c741edc
commit 95f40061a9
6 changed files with 13 additions and 3 deletions
@@ -105,7 +105,7 @@ const int32_t OPENNI_START_PID = 0x0601;
const int32_t OPENNI_END_PID = 0x06FF;
const int32_t ASTRA_MINI_PID = 0x0404;
const int32_t ASTRA_MINI_S_PID = 0x0407;
const int GEMINI2_PID = 0x0670;
const std::string DEFAULT_SEM_NAME = "orbbec_device_sem";
const key_t DEFAULT_SEM_KEY = 0x0401;
@@ -339,5 +339,6 @@ class OBCameraNode {
std::atomic_bool save_colored_point_cloud_{false};
rclcpp::Service<std_srvs::srv::Empty>::SharedPtr save_images_srv_;
rclcpp::Service<std_srvs::srv::Empty>::SharedPtr save_point_cloud_srv_;
bool enable_hardware_d2d_ = true;
};
} // namespace orbbec_camera
@@ -61,7 +61,7 @@ class OBCameraNodeDriver : public rclcpp::Node {
static OBLogSeverity obLogSeverityFromString(const std::string_view& log_level);
void checkConnectTimer() const;
void checkConnectTimer();
void queryDevice();