Skip to content

Commit

Permalink
add socket name to preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Serafadam committed Sep 8, 2023
1 parent e045e68 commit 6c2c539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion depthai_ros_driver/src/dai_nodes/sensors/rgb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ void RGB::setupQueues(std::shared_ptr<dai::Device> device) {
previewQ = device->getOutputQueue(previewQName, ph->getParam<int>("i_max_q_size"), false);
previewPubIT = it.advertiseCamera(getName() + "/preview/image_raw", 1);
previewInfoManager = std::make_shared<camera_info_manager::CameraInfoManager>(ros::NodeHandle(getROSNode(), "/" + previewQName), previewQName);
auto tfPrefix = getTFPrefix(getName());
auto tfPrefix = getTFPrefix(utils::getSocketName(static_cast<dai::CameraBoardSocket>(ph->getParam<int>("i_board_socket_id"))));
imageConverter = std::make_unique<dai::ros::ImageConverter>(tfPrefix + "_camera_optical_frame", false);
if(ph->getParam<std::string>("i_calibration_file").empty()) {
previewInfoManager->setCameraInfo(sensor_helpers::getCalibInfo(*imageConverter,
Expand Down

0 comments on commit 6c2c539

Please sign in to comment.