File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,9 @@ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES aarch64 OR arm)
113113
114114endif (${CMAKE_SYSTEM_PROCESSOR} MATCHES aarch64 OR arm)
115115
116+ # Make package version available in CPP as a defination
117+ add_definitions ("-D${PROJECT_NAME} _VERSION=\" ${${PROJECT_NAME} _VERSION}\" " )
118+
116119add_library (acquilib SHARED
117120 src/capture.cpp
118121 src/camera.cpp
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" ?>
22<package format =" 2" >
33 <name >spinnaker_sdk_camera_driver</name >
4- <version >0.0 .0</version >
4+ <version >1.1 .0</version >
55 <description >Point Grey (FLIR) Spinnaker based camera driver (Blackfly S etc.)</description >
66
77 <maintainer email =" vikrantshah+ros@gmail.com" >Vikrant Shah</maintainer >
Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ void acquisition::Capture::init_variables_register_to_ros() {
139139 // Retrieve singleton reference to system object
140140 ROS_INFO_STREAM (" *** SYSTEM INFORMATION ***" );
141141 ROS_INFO_STREAM (" Creating system instance..." );
142+ ROS_INFO_STREAM (" spinnaker_sdk_camera_driver package version: " << spinnaker_sdk_camera_driver_VERSION);
142143 system_ = System::GetInstance ();
143144
144145 const LibraryVersion spinnakerLibraryVersion = system_->GetLibraryVersion ();
You can’t perform that action at this time.
0 commit comments