Handles communication and interaction with the Andor camera. More...
#include <commAdapter.hpp>
Public Member Functions | |
| CommAdapter (const RtmsNetworkConfig &rtms_cfg, std::string_view config_filename="", bool compute_latency=false, const PublisherThreadConfig &thread_cfg=PublisherThreadConfig()) | |
| Constructor for CommAdapter. | |
| virtual | ~CommAdapter () |
| Destructor for CommAdapter. | |
| virtual void | Initialise () |
| Initializes the communication adapter. | |
| virtual void | CheckConnection (bool &connected) |
| Checks if the connection to the camera is established. | |
| virtual void | Connect () |
| Establishes a connection to the camera. | |
| virtual void | Disconnect () |
| Disconnects from the camera. | |
| virtual bool | IsConnected () const |
| Checks if the adapter is currently connected to the camera. | |
| virtual void | Read (ifw::fgf::common::VectorVariant ¶ms) const override |
| Reads multiple parameters from the camera. | |
| virtual void | Read (ifw::fgf::common::PairVariant ¶m) const override |
| Reads a single parameter from the camera. | |
| virtual void | Write (const ifw::fgf::common::VectorVariant ¶ms) override |
| Writes multiple parameters to the camera. | |
| virtual void | Write (const ifw::fgf::common::PairVariant ¶m) override |
| Writes a single parameter to the camera. | |
| virtual short | Start () override |
| Starts the acquisition process. | |
| virtual short | Stop () override |
| Stops the acquisition process. | |
| virtual short | Init () |
| Initializes the camera for acquisition. | |
| virtual std::string | GetLoggers () |
| virtual short | SetLogLevel (std::string &level, std::string &logger) |
| virtual short | Reset () override |
| Resets the camera to its initial state. | |
| virtual short | Setup () |
| Download parameters to the camera. | |
Public Member Functions inherited from ifw::fgf::common::ICommAdapter | |
| virtual | ~ICommAdapter () |
| virtual | ~ICommAdapter () |
Static Public Member Functions | |
| static std::string | getErrorMessage (int errorCode) |
Protected Attributes | |
| std::shared_ptr< ifw::fgf::common::RawImage > | m_rawimage |
| Pointer to latest received image. | |
| int | m_img_bpp {0} |
| Bits per pixel of the current image. | |
| int | m_img_width {0} |
| Width of the current image. | |
| int | m_img_height {0} |
| Height of the current image. | |
Handles communication and interaction with the Andor camera.
The CommAdapter class provides methods to initialize, connect, read, write, and manage the acquisition process of the Andor camera. It implements the fgf::common::ICommAdapter interface and manages the communication through OPC UA or other protocols.
| ifw::fgf::andor::CommAdapter::CommAdapter | ( | const RtmsNetworkConfig & | rtms_cfg, |
| std::string_view | config_filename = "", | ||
| bool | compute_latency = false, | ||
| const PublisherThreadConfig & | thread_cfg = PublisherThreadConfig() ) |
Constructor for CommAdapter.
| rtms_cfg | RTMS network configuration. |
| config_filename | Optional configuration file. |
| compute_latency | Enable runtime latency measurement. |
| thread_cfg | Thread affinity and priority tuning. |
|
virtual |
Destructor for CommAdapter.
|
virtual |
Checks if the connection to the camera is established.
| connected | A boolean reference that will be set to true if connected, false otherwise. |
|
virtual |
Establishes a connection to the camera.
|
virtual |
Disconnects from the camera.
|
inlinestatic |
|
virtual |
Implements ifw::fgf::common::ICommAdapter.
|
virtual |
Initializes the camera for acquisition.
|
virtual |
Initializes the communication adapter.
|
virtual |
Checks if the adapter is currently connected to the camera.
|
overridevirtual |
Reads a single parameter from the camera.
| param | A reference to a PairVariant that will be filled with the parameter value. |
Implements ifw::fgf::common::ICommAdapter.
|
overridevirtual |
Reads multiple parameters from the camera.
| params | A reference to a VectorVariant that will be filled with parameter values. |
Implements ifw::fgf::common::ICommAdapter.
|
overridevirtual |
Resets the camera to its initial state.
Implements ifw::fgf::common::ICommAdapter.
|
virtual |
Implements ifw::fgf::common::ICommAdapter.
|
virtual |
Download parameters to the camera.
Implements ifw::fgf::common::ICommAdapter.
|
overridevirtual |
Starts the acquisition process.
Implements ifw::fgf::common::ICommAdapter.
|
overridevirtual |
Stops the acquisition process.
Implements ifw::fgf::common::ICommAdapter.
|
overridevirtual |
Writes a single parameter to the camera.
| param | A constant reference to a PairVariant containing the parameter to write. |
Implements ifw::fgf::common::ICommAdapter.
|
overridevirtual |
Writes multiple parameters to the camera.
| params | A constant reference to a VectorVariant containing the parameters to write. |
Implements ifw::fgf::common::ICommAdapter.
|
protected |
Bits per pixel of the current image.
|
protected |
Height of the current image.
|
protected |
Width of the current image.
|
protected |
Pointer to latest received image.