Class managing the algorithmic part of the package. More...
#include <SickSafetyscanners.h>
Public Types | |
typedef boost::function< void(const sick::datastructure::Data &)> | packetReceivedCallbackFunction |
Private Attributes | |
std::shared_ptr< sick::communication::AsyncTCPClient > | m_async_tcp_client_ptr |
std::shared_ptr< sick::communication::AsyncUDPClient > | m_async_udp_client_ptr |
std::shared_ptr< boost::asio::io_service > | m_io_service_ptr |
std::shared_ptr< boost::asio::io_service::work > | m_io_work_ptr |
packetReceivedCallbackFunction | m_newPacketReceivedCallbackFunction |
std::shared_ptr< sick::data_processing::UDPPacketMerger > | m_packet_merger_ptr |
std::shared_ptr< sick::cola2::Cola2Session > | m_session_ptr |
boost::scoped_ptr< boost::thread > | m_udp_client_thread_ptr |
Class managing the algorithmic part of the package.
Definition at line 83 of file SickSafetyscanners.h.
typedef boost::function<void(const sick::datastructure::Data&)> sick::SickSafetyscanners::packetReceivedCallbackFunction |
Typedef for function which has to be passed to this class. This enables the use of functions from the calling class.
Definition at line 90 of file SickSafetyscanners.h.
sick::SickSafetyscanners::SickSafetyscanners | ( | const packetReceivedCallbackFunction & | newPacketReceivedCallbackFunction, |
sick::datastructure::CommSettings * | settings, | ||
boost::asio::ip::address_v4 | interface_ip | ||
) |
Constructor of the SickSafetyscanners class.
newPacketReceivedCallbackFunction | Function from the calling class, which will be called when a new packet is received. |
settings | Current settings for the sensor. |
Definition at line 40 of file SickSafetyscanners.cpp.
|
virtual |
Destructor.
Definition at line 73 of file SickSafetyscanners.cpp.
|
private |
Definition at line 256 of file SickSafetyscanners.cpp.
void sick::SickSafetyscanners::changeSensorSettings | ( | const sick::datastructure::CommSettings & | settings | ) |
Changes the internal settings of the sensor.
settings | New set of settings to pass to the sensor. |
Definition at line 104 of file SickSafetyscanners.cpp.
void sick::SickSafetyscanners::FindSensor | ( | const datastructure::CommSettings & | settings, |
uint16_t | blink_time | ||
) |
Definition at line 111 of file SickSafetyscanners.cpp.
|
private |
Definition at line 314 of file SickSafetyscanners.cpp.
|
private |
Definition at line 99 of file SickSafetyscanners.cpp.
|
private |
Definition at line 449 of file SickSafetyscanners.cpp.
void sick::SickSafetyscanners::requestApplicationName | ( | const sick::datastructure::CommSettings & | settings, |
sick::datastructure::ApplicationName & | application_name | ||
) |
Definition at line 127 of file SickSafetyscanners.cpp.
|
private |
Definition at line 331 of file SickSafetyscanners.cpp.
void sick::SickSafetyscanners::requestConfigMetadata | ( | const datastructure::CommSettings & | settings, |
datastructure::ConfigMetadata & | config_metadata | ||
) |
Definition at line 207 of file SickSafetyscanners.cpp.
|
private |
Definition at line 397 of file SickSafetyscanners.cpp.
void sick::SickSafetyscanners::requestDeviceName | ( | const sick::datastructure::CommSettings & | settings, |
datastructure::DeviceName & | device_name | ||
) |
Requests the name of the device from the sensor.
settings | Settings containing information to establish a connection to the sensor. |
device_name | Returned device name. |
Definition at line 152 of file SickSafetyscanners.cpp.
|
private |
Definition at line 321 of file SickSafetyscanners.cpp.
void sick::SickSafetyscanners::requestDeviceStatus | ( | const datastructure::CommSettings & | settings, |
datastructure::DeviceStatus & | device_status | ||
) |
Definition at line 223 of file SickSafetyscanners.cpp.
|
private |
Definition at line 415 of file SickSafetyscanners.cpp.
void sick::SickSafetyscanners::requestFieldData | ( | const sick::datastructure::CommSettings & | settings, |
std::vector< sick::datastructure::FieldData > & | field_data | ||
) |
Requests data of the protective and warning fields from the sensor.
settings | Settings containing information to establish a connection to the sensor. |
field_data | Returned field data. |
Definition at line 135 of file SickSafetyscanners.cpp.
|
private |
Definition at line 264 of file SickSafetyscanners.cpp.
void sick::SickSafetyscanners::requestFirmwareVersion | ( | const sick::datastructure::CommSettings & | settings, |
sick::datastructure::FirmwareVersion & | firmware_version | ||
) |
Definition at line 191 of file SickSafetyscanners.cpp.
|
private |
Definition at line 351 of file SickSafetyscanners.cpp.
|
private |
Definition at line 292 of file SickSafetyscanners.cpp.
void sick::SickSafetyscanners::requestMonitoringCases | ( | const sick::datastructure::CommSettings & | settings, |
std::vector< sick::datastructure::MonitoringCaseData > & | monitoring_cases | ||
) |
Requests the monitoring cases from the sensor.
settings | Settings containing information to establish a connection to the sensor. |
monitoring_cases | Returned monitoring cases. |
Definition at line 143 of file SickSafetyscanners.cpp.
void sick::SickSafetyscanners::requestOrderNumber | ( | const datastructure::CommSettings & | settings, |
datastructure::OrderNumber & | order_number | ||
) |
Definition at line 168 of file SickSafetyscanners.cpp.
|
private |
Definition at line 369 of file SickSafetyscanners.cpp.
void sick::SickSafetyscanners::requestPersistentConfig | ( | const datastructure::CommSettings & | settings, |
sick::datastructure::ConfigData & | config_data | ||
) |
Requests the persistent configuration from the sensor.
settings | Settings containing information to establish a connection to the sensor. |
config_data | Returned persistent configuration data. |
Definition at line 199 of file SickSafetyscanners.cpp.
|
private |
Definition at line 433 of file SickSafetyscanners.cpp.
void sick::SickSafetyscanners::requestProjectName | ( | const datastructure::CommSettings & | settings, |
datastructure::ProjectName & | project_name | ||
) |
Definition at line 176 of file SickSafetyscanners.cpp.
|
private |
Definition at line 379 of file SickSafetyscanners.cpp.
void sick::SickSafetyscanners::requestRequiredUserAction | ( | const datastructure::CommSettings & | settings, |
datastructure::RequiredUserAction & | required_user_action | ||
) |
Definition at line 231 of file SickSafetyscanners.cpp.
|
private |
Definition at line 424 of file SickSafetyscanners.cpp.
void sick::SickSafetyscanners::requestSerialNumber | ( | const sick::datastructure::CommSettings & | settings, |
sick::datastructure::SerialNumber & | serial_number | ||
) |
Definition at line 160 of file SickSafetyscanners.cpp.
|
private |
Definition at line 341 of file SickSafetyscanners.cpp.
void sick::SickSafetyscanners::requestStatusOverview | ( | const datastructure::CommSettings & | settings, |
datastructure::StatusOverview & | status_overview | ||
) |
Definition at line 215 of file SickSafetyscanners.cpp.
|
private |
Definition at line 406 of file SickSafetyscanners.cpp.
void sick::SickSafetyscanners::requestTypeCode | ( | const sick::datastructure::CommSettings & | settings, |
sick::datastructure::TypeCode & | type_code | ||
) |
Requests the typecode of the sensor.
settings | Settings containing information to establish a connection to the sensor. |
type_code | Returned typecode. |
Definition at line 119 of file SickSafetyscanners.cpp.
|
private |
Definition at line 361 of file SickSafetyscanners.cpp.
void sick::SickSafetyscanners::requestUserName | ( | const datastructure::CommSettings & | settings, |
datastructure::UserName & | user_name | ||
) |
Definition at line 184 of file SickSafetyscanners.cpp.
|
private |
Definition at line 389 of file SickSafetyscanners.cpp.
bool sick::SickSafetyscanners::run | ( | ) |
Start the connection to the sensor and enables output.
Definition at line 80 of file SickSafetyscanners.cpp.
|
private |
Definition at line 240 of file SickSafetyscanners.cpp.
|
private |
Definition at line 442 of file SickSafetyscanners.cpp.
|
private |
Definition at line 89 of file SickSafetyscanners.cpp.
|
private |
Definition at line 191 of file SickSafetyscanners.h.
|
private |
Definition at line 190 of file SickSafetyscanners.h.
|
private |
Definition at line 188 of file SickSafetyscanners.h.
|
private |
Definition at line 189 of file SickSafetyscanners.h.
|
private |
Definition at line 186 of file SickSafetyscanners.h.
|
private |
Definition at line 196 of file SickSafetyscanners.h.
|
private |
Definition at line 194 of file SickSafetyscanners.h.
|
private |
Definition at line 192 of file SickSafetyscanners.h.