fix: remove unused JPEG decoder includes and initialization in OBLidarNode

This commit is contained in:
slz
2026-01-19 09:37:40 +08:00
parent 6fda5befaf
commit 2530447e80
2 changed files with 0 additions and 12 deletions
@@ -65,7 +65,6 @@
#include "orbbec_camera/d2c_viewer.h"
#include "magic_enum/magic_enum.hpp"
#include "orbbec_camera/image_publisher.h"
#include "jpeg_decoder.h"
#include <std_msgs/msg/string.hpp>
#include <fcntl.h>
#include <unistd.h>
-11
View File
@@ -25,12 +25,6 @@
#include "diagnostic_msgs/msg/diagnostic_status.hpp"
#include "libobsensor/hpp/Utils.hpp"
#if defined(USE_RK_HW_DECODER)
#include "orbbec_camera/rk_mpp_decoder.h"
#elif defined(USE_NV_HW_DECODER)
#include "orbbec_camera/jetson_nv_decoder.h"
#endif
namespace orbbec_camera {
namespace orbbec_lidar {
using namespace std::chrono_literals;
@@ -49,11 +43,6 @@ OBLidarNode::OBLidarNode(rclcpp::Node *node, std::shared_ptr<ob::Device> device,
stream_name_[ACCEL] = "accel";
stream_name_[GYRO] = "gyro";
setupTopics();
#if defined(USE_RK_HW_DECODER)
jpeg_decoder_ = std::make_unique<RKJPEGDecoder>(width_[COLOR], height_[COLOR]);
#elif defined(USE_NV_HW_DECODER)
jpeg_decoder_ = std::make_unique<JetsonNvJPEGDecoder>(width_[COLOR], height_[COLOR]);
#endif
is_camera_node_initialized_ = true;
}