Skip to content

Commit

Permalink
bugfix: Opened device output
Browse files Browse the repository at this point in the history
  • Loading branch information
boitumeloruf committed Jan 16, 2024
1 parent 299dca1 commit 3a0e0b2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/camera_aravis_nodelet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,12 @@ void CameraAravisNodelet::onInit()
}

p_device_ = arv_camera_get_device(p_camera_);
ROS_INFO("Opened: %s-%s", arv_camera_get_vendor_name(p_camera_),
arv_device_get_string_feature_value(p_device_, "DeviceSerialNumber"));
const char* vendor_name = arv_camera_get_vendor_name(p_camera_);
const char* model_name = arv_camera_get_model_name(p_camera_);
const char* device_id = arv_camera_get_device_id(p_camera_);
const char* device_sn = arv_device_get_string_feature_value(p_device_, "DeviceSerialNumber");
ROS_INFO("Successfully Opened: %s-%s-%s", vendor_name, model_name,
(device_sn) ? device_sn : device_id);

// Start the dynamic_reconfigure server.
reconfigure_server_.reset(new dynamic_reconfigure::Server<Config>(reconfigure_mutex_, pnh));
Expand Down

0 comments on commit 3a0e0b2

Please sign in to comment.