#include <diagnostics.h>
|
template<typename T > |
void | addDiagnostic (const Spinnaker::GenICam::gcstring name) |
| Add a diagnostic with name only (no warning checks) More...
|
|
void | addDiagnostic (const Spinnaker::GenICam::gcstring name, bool check_ranges=false, std::pair< int, int > operational=std::make_pair(0, 0), int lower_bound=0, int upper_bound=0) |
| Add a diagnostic with warning checks. More...
|
|
void | addDiagnostic (const Spinnaker::GenICam::gcstring name, bool check_ranges=false, std::pair< float, float > operational=std::make_pair(0.0, 0.0), float lower_bound=0, float upper_bound=0) |
|
| DiagnosticsManager (const std::string name, const std::string serial, std::shared_ptr< ros::Publisher > const &pub) |
|
void | processDiagnostics (SpinnakerCamera *spinnaker) |
| Read the property of given parameters and push to aggregator. More...
|
|
| ~DiagnosticsManager () |
|
Definition at line 56 of file diagnostics.h.
spinnaker_camera_driver::DiagnosticsManager::DiagnosticsManager |
( |
const std::string |
name, |
|
|
const std::string |
serial, |
|
|
std::shared_ptr< ros::Publisher > const & |
pub |
|
) |
| |
spinnaker_camera_driver::DiagnosticsManager::~DiagnosticsManager |
( |
| ) |
|
template<typename T >
void spinnaker_camera_driver::DiagnosticsManager::addDiagnostic |
( |
const Spinnaker::GenICam::gcstring |
name | ) |
|
Add a diagnostic with name only (no warning checks)
Allows the user to add an integer or float parameter without having to give additional information. User must specify the type they are getting
- Parameters
-
name | is the name of the parameter as writting in the User Manual |
Definition at line 49 of file diagnostics.cpp.
void spinnaker_camera_driver::DiagnosticsManager::addDiagnostic |
( |
const Spinnaker::GenICam::gcstring |
name, |
|
|
bool |
check_ranges = false , |
|
|
std::pair< int, int > |
operational = std::make_pair(0, 0) , |
|
|
int |
lower_bound = 0 , |
|
|
int |
upper_bound = 0 |
|
) |
| |
Add a diagnostic with warning checks.
Allows the user to add an integer or float parameter and values to check it against. Anything outside of these ranges will be considered an error.
- Parameters
-
name | is the name of the parameter as writting in the User Manual |
Definition at line 61 of file diagnostics.cpp.
void spinnaker_camera_driver::DiagnosticsManager::addDiagnostic |
( |
const Spinnaker::GenICam::gcstring |
name, |
|
|
bool |
check_ranges = false , |
|
|
std::pair< float, float > |
operational = std::make_pair(0.0, 0.0) , |
|
|
float |
lower_bound = 0 , |
|
|
float |
upper_bound = 0 |
|
) |
| |
template<typename T >
diagnostic_msgs::DiagnosticStatus spinnaker_camera_driver::DiagnosticsManager::getDiagStatus |
( |
const diagnostic_params< T > & |
param, |
|
|
const T |
value |
|
) |
| |
|
private |
Function to push the diagnostic to the publisher.
Allows the user to add an integer or float parameter without having to give additional information. User must specify the type they are getting
- Parameters
-
param | is the diagnostic parameter name and boundaries |
value | is the current value of the parameter requested from the device |
Definition at line 76 of file diagnostics.cpp.
void spinnaker_camera_driver::DiagnosticsManager::processDiagnostics |
( |
SpinnakerCamera * |
spinnaker | ) |
|
Read the property of given parameters and push to aggregator.
Take all the collected parameters that were added read the values, then publish them to the allow the diagnostics aggreagtor to collect them
- Parameters
-
spinnaker | the SpinnakerCamera object used for getting the parameters from the spinnaker API |
Definition at line 107 of file diagnostics.cpp.
std::string spinnaker_camera_driver::DiagnosticsManager::camera_name_ |
|
private |
std::shared_ptr<ros::Publisher> spinnaker_camera_driver::DiagnosticsManager::diagnostics_pub_ |
|
private |
std::vector<diagnostic_params<float> > spinnaker_camera_driver::DiagnosticsManager::float_params_ |
|
private |
std::vector<diagnostic_params<int> > spinnaker_camera_driver::DiagnosticsManager::integer_params_ |
|
private |
const std::vector<std::string> spinnaker_camera_driver::DiagnosticsManager::manufacturer_params_ |
|
private |
Initial value:{
"DeviceVendorName", "DeviceModelName", "SensorDescription", "DeviceFirmwareVersion"
}
Definition at line 138 of file diagnostics.h.
std::string spinnaker_camera_driver::DiagnosticsManager::serial_number_ |
|
private |
The documentation for this class was generated from the following files: