fixed get camera params

This commit is contained in:
Joe Dong
2023-02-15 19:50:30 +08:00
parent 9b79d6696b
commit daff270011
4 changed files with 45 additions and 6 deletions
@@ -143,6 +143,10 @@ class OBCameraNode {
std::optional<OBCameraParam> findDefaultCameraParam();
std::optional<OBCameraParam> getDepthCameraParam();
std::optional<OBCameraParam> getColorCameraParam();
void getExposureCallback(const std::shared_ptr<GetInt32::Request>& request,
std::shared_ptr<GetInt32::Response>& response,
const stream_index_pair& stream_index);
@@ -52,6 +52,7 @@ class OBCameraNodeFactory : public rclcpp::Node {
std::atomic_bool is_alive_{false};
std::atomic_bool device_connected_{false};
std::string serial_number_;
std::string device_unique_id_;
std::shared_ptr<Parameters> parameters_ = nullptr;
std::shared_ptr<std::thread> query_thread_ = nullptr;
std::recursive_mutex device_lock_;