#include <AgvSensor.h>
Public Member Functions | |
| AgvSensor () | |
| Base constructor. | |
| ~AgvSensor () | |
| Destructor (disconects the data sensor) | |
| AgvSensor (BaseCommunication *comm) | |
| Copy constructor: sets the basic communication object. | |
| CommunicationStatus | Initialize () |
| Initializes the object to connect the sensor. | |
| void | Close () |
| Method that closes all communication stops all threads and cleanup memory This method must be called when finishing usage of sensor. | |
| RawData | RetrieveRawData () |
| Wait for Raw Data availability. | |
| void | SendMdi () |
| Request the sensor to start sending MDI data to host. | |
| void | StopMdi () |
| Request the sensor to stop sending MDI data to host. | |
| PROTOCOL | GetRawDataExchangeMode () |
| Get the raw data exchange mode. | |
| AngleRange | GetAngleRange () |
| Gets the angle range. | |
| SCAN_PACKET_TYPE | GetDataPacketType () |
| Gets the data packed type. | |
| unsigned int | GetImmunityLevel () |
| Gets the immunity level. | |
| ContaminationThreshold | GetContaminationThreshold () |
| Gets the contamination threshold. | |
| ContaminationStatus | GetContaminationStatus () |
| Gets the contamination status. | |
| SoftwareVersion | GetVersion () |
| Gets the sensor version data. | |
| long | GetRuntimeHours () |
| Gets the sensor runtime hours. | |
| int | GetTemperature () |
| Gets the temperature. | |
| vector< RawDataError > | GetErrorLog () |
| Gets the error log. | |
| NetworkInformation | GetNetworkInformation () |
| Gets whole data information. | |
| string | GetDeviceName () |
| Gets the sensor's name. | |
| ConfigurationResult | SetRawDataExchangeMode (PROTOCOL pProtocol) |
| Sets the RAW data exchange mode. Can be either TCP or UDP. | |
| ConfigurationResult | SetDataPacketType (SCAN_PACKET_TYPE pPacketType) |
| Sets the packet type returned in raw data. Can be either DISTANCE or DISTANCE_INTENSITY. | |
| ConfigurationResult | SetAngleRange (AngleRange pAngleRange) |
| Sets the Angle range (start and stop) | |
| ConfigurationResult | SetImmunityLevel (int pImmunityLevel) |
| Sets the sensor's immunity level. | |
| ConfigurationResult | SetContaminationThreshold (ContaminationThreshold pContaminationThreshold) |
| Sets the contamination level threshold for warning and error. | |
| ConfigurationResult | SetNetworkInformation (NetworkInformation pNetwork) |
| Set the overall network information except IP v4 and Port. | |
| ConfigurationResult | SetDeviceName (string pName) |
| Sets the sensor's name. | |
| void | ResetDevice () |
| Resets the device. | |
| void | RebootDevice () |
| Reboots the device. | |
| vector< unsigned int > | GetWms () |
| Returns the window monitoring system of each sector (SECTORS_COUNT sectors - 132 -) | |
| FieldName | GetFieldName (int fieldSetNumber) |
| Gets the field name for a given field number. | |
| ObjectSize | GetObjectSize () |
| Gets the object size. | |
| WarningSpot | GetWarningSpot () |
| Gets the warning spot value. | |
| UncoverZone | GetUncoverZoneSize () |
| Gets the uncovered zone size. | |
| FieldData | GetField (uint8_t fieldNumber, NativeZoneTypeEnum zone) |
| Returns the requested field data. | |
| uint8_t | GetSelectedField () |
| Returns the current selected field data based on inputs. | |
| OnOffDelay | GetOnDelay () |
| Gets ON delay. | |
| OnOffDelay | GetOffDelay () |
| Gets OFF delay. | |
| ActiveLevel | GetOutputActiveLevel () |
| Gets the output active level for 4 outputs. | |
| ActiveLevel | GetOutputStatus () |
| Gets the output active status for 4 outputs. | |
| ActiveLevel | GetInputStatus () |
| Gets the input active status for 4 inputs. | |
| OutputFunction | GetOutputFunction () |
| Gest the output function for 4 outputs. | |
| DefaultValues | GetDefaultValues () |
| AgvSensorLeds | GetSensorLeds () |
| Gets the navigation sensor leds status. | |
| SensorLamps | GetSensorLamps () |
| Gets the sensor lamps status. | |
| ConfigurationResult | SetFieldName (FieldName fieldName) |
| Sets the field name data. | |
| ConfigurationResult | SetObjectSize (ObjectSize sizeToSet) |
| Sets the object size. | |
| ConfigurationResult | SetWarningSpot (WarningSpot spotToSet) |
| Sets the warning spots. | |
| ConfigurationResult | SetUncoverZoneSize (UncoverZone uncoverZoneToSet) |
| ConfigurationResult | SetField (FieldData data) |
| Set the requested field data. | |
| ConfigurationResult | SetMultipleSampling (MultipleSampling sampling) |
| Sets the multiple sampling. | |
| ConfigurationResult | SetHoldTime (HoldTime holdTime) |
| Sets the Hold time. | |
| ConfigurationResult | SetOnDelay (OnOffDelay onDelay) |
| Sets the ON delay. | |
| ConfigurationResult | SetOffDelay (OnOffDelay offDelay) |
| Sets the OFF delay. | |
| ConfigurationResult | SetOutputActiveLevel (ActiveLevel activeLevel) |
| Sets the output active level. | |
| ConfigurationResult | SetOutputFunction (OutputFunction function) |
| Sets the output function. | |
| ConfigurationResult | SetInputControlModeStatus (NativeInputControleModeStatus controlMode) |
| Sets the input control mode. | |
| ConfigurationResult | SetInputsValue (NativeActiveLevelEnum input1, NativeActiveLevelEnum input2, NativeActiveLevelEnum input3, NativeActiveLevelEnum input4) |
| Sets the input values. | |
| ConfigurationResult | SetSensorLeds (AgvSensorLeds leds) |
| Sets the sensor's leds. | |
| ConfigurationResult | StoreInFlash () |
| Store fields in the flash. | |
| uint16_t | GetPlatformVersion () |
| Gets the platform version. | |
| NativeInputControleModeStatus | GetInputControlModeStatus () |
| Gets the input controle mode status. | |
| void | StartLearning (uint8_t fieldNumber, NativeZoneTypeEnum zone, uint16_t uncover, NativeObjSizeEnum objectSize) |
| Starts the field learning. | |
| void | StopLearning () |
| Stops the learning. | |
| void | AbortLearning () |
| Aborts the learning. | |
| NativeFieldLearningStatus | GetLearningStatus () |
| Gets the actual learning status. | |
| uint16_t | GetLearningErrorCode () |
| Gets the Learning error code. | |
| NativeAbortStatus | GetAbortStatus () |
| Gets the learning abort status. | |
| string | RequestChallenge () |
| Request the challenge to the sensor. | |
| ConfigurationResult | SendCypher (string cypher) |
| Sends the cypher to the sensor. | |
| NativeZoneModeEnum | GetZone1Mode () |
| Getsq the Zone1Mode parameter. | |
| ConfigurationResult | SetZone1Mode (NativeZoneModeEnum mode) |
| Sets The Zone1Mode parameter. | |
| void | ResetAllFields () |
| Resets all fields to MAXVALUE. | |
| AgvSensor::AgvSensor | ( | ) |
Base constructor.
| AgvSensor::~AgvSensor | ( | ) |
Destructor (disconects the data sensor)
| AgvSensor::AgvSensor | ( | BaseCommunication * | comm | ) |
Copy constructor: sets the basic communication object.
| comm | The basic communication object |
| void AgvSensor::AbortLearning | ( | ) |
Aborts the learning.
| void AgvSensor::Close | ( | ) |
Method that closes all communication stops all threads and cleanup memory This method must be called when finishing usage of sensor.
| NativeAbortStatus AgvSensor::GetAbortStatus | ( | ) |
Gets the learning abort status.
| AngleRange AgvSensor::GetAngleRange | ( | ) |
Gets the angle range.
| ContaminationStatus AgvSensor::GetContaminationStatus | ( | ) |
Gets the contamination status.
| ContaminationThreshold AgvSensor::GetContaminationThreshold | ( | ) |
Gets the contamination threshold.
| SCAN_PACKET_TYPE AgvSensor::GetDataPacketType | ( | ) |
Gets the data packed type.
| DefaultValues AgvSensor::GetDefaultValues | ( | ) |
| string AgvSensor::GetDeviceName | ( | ) |
Gets the sensor's name.
| vector< RawDataError > AgvSensor::GetErrorLog | ( | ) |
Gets the error log.
| FieldData AgvSensor::GetField | ( | uint8_t | fieldNumber, |
| NativeZoneTypeEnum | zone ) |
Returns the requested field data.
| fieldNumber | The field number we want to retrieve |
| zone | The zone type (Near, Middle, Far) |
| FieldName AgvSensor::GetFieldName | ( | int | fieldSetNumber | ) |
Gets the field name for a given field number.
| fieldSetNumber | The fieldset number to retrieve |
| unsigned int AgvSensor::GetImmunityLevel | ( | ) |
Gets the immunity level.
| NativeInputControleModeStatus AgvSensor::GetInputControlModeStatus | ( | ) |
Gets the input controle mode status.
| ActiveLevel AgvSensor::GetInputStatus | ( | ) |
Gets the input active status for 4 inputs.
| uint16_t AgvSensor::GetLearningErrorCode | ( | ) |
Gets the Learning error code.
| NativeFieldLearningStatus AgvSensor::GetLearningStatus | ( | ) |
Gets the actual learning status.
| NetworkInformation AgvSensor::GetNetworkInformation | ( | ) |
Gets whole data information.
| ObjectSize AgvSensor::GetObjectSize | ( | ) |
Gets the object size.
| OnOffDelay AgvSensor::GetOffDelay | ( | ) |
Gets OFF delay.
| OnOffDelay AgvSensor::GetOnDelay | ( | ) |
Gets ON delay.
| ActiveLevel AgvSensor::GetOutputActiveLevel | ( | ) |
Gets the output active level for 4 outputs.
| OutputFunction AgvSensor::GetOutputFunction | ( | ) |
Gest the output function for 4 outputs.
| ActiveLevel AgvSensor::GetOutputStatus | ( | ) |
Gets the output active status for 4 outputs.
| uint16_t AgvSensor::GetPlatformVersion | ( | ) |
Gets the platform version.
Gets the platform version
| PROTOCOL AgvSensor::GetRawDataExchangeMode | ( | ) |
Get the raw data exchange mode.
| long AgvSensor::GetRuntimeHours | ( | ) |
Gets the sensor runtime hours.
| uint8_t AgvSensor::GetSelectedField | ( | ) |
Returns the current selected field data based on inputs.
| SensorLamps AgvSensor::GetSensorLamps | ( | ) |
Gets the sensor lamps status.
| AgvSensorLeds AgvSensor::GetSensorLeds | ( | ) |
Gets the navigation sensor leds status.
| int AgvSensor::GetTemperature | ( | ) |
Gets the temperature.
| UncoverZone AgvSensor::GetUncoverZoneSize | ( | ) |
Gets the uncovered zone size.
| SoftwareVersion AgvSensor::GetVersion | ( | ) |
Gets the sensor version data.
| WarningSpot AgvSensor::GetWarningSpot | ( | ) |
Gets the warning spot value.
| vector< unsigned int > AgvSensor::GetWms | ( | ) |
Returns the window monitoring system of each sector (SECTORS_COUNT sectors - 132 -)
| NativeZoneModeEnum AgvSensor::GetZone1Mode | ( | ) |
Getsq the Zone1Mode parameter.
| CommunicationStatus AgvSensor::Initialize | ( | ) |
Initializes the object to connect the sensor.
| void AgvSensor::RebootDevice | ( | ) |
Reboots the device.
| string AgvSensor::RequestChallenge | ( | ) |
Request the challenge to the sensor.
| void AgvSensor::ResetAllFields | ( | ) |
Resets all fields to MAXVALUE.
| void AgvSensor::ResetDevice | ( | ) |
Resets the device.
| RawData AgvSensor::RetrieveRawData | ( | ) |
Wait for Raw Data availability.
| ConfigurationResult AgvSensor::SendCypher | ( | string | cypher | ) |
Sends the cypher to the sensor.
| cypher |
| void AgvSensor::SendMdi | ( | ) |
Request the sensor to start sending MDI data to host.
| ConfigurationResult AgvSensor::SetAngleRange | ( | AngleRange | pAngleRange | ) |
Sets the Angle range (start and stop)
| pAngleRange | The encapsulation of the angle range to be set |
| ConfigurationResult AgvSensor::SetContaminationThreshold | ( | ContaminationThreshold | pContaminationThreshold | ) |
Sets the contamination level threshold for warning and error.
| pContaminationThreshold | The encapsulation of contamination leve threshold |
| ConfigurationResult AgvSensor::SetDataPacketType | ( | SCAN_PACKET_TYPE | pPacketType | ) |
Sets the packet type returned in raw data. Can be either DISTANCE or DISTANCE_INTENSITY.
| pPacketType | The packet type to be set |
| ConfigurationResult AgvSensor::SetDeviceName | ( | string | pName | ) |
Sets the sensor's name.
| ConfigurationResult AgvSensor::SetField | ( | FieldData | data | ) |
Set the requested field data.
| ConfigurationResult AgvSensor::SetFieldName | ( | FieldName | fieldName | ) |
Sets the field name data.
| fieldName |
| ConfigurationResult AgvSensor::SetHoldTime | ( | HoldTime | holdTime | ) |
Sets the Hold time.
| ConfigurationResult AgvSensor::SetImmunityLevel | ( | int | pImmunityLevel | ) |
Sets the sensor's immunity level.
| pImmunityLevel | The immunity level to be set |
| ConfigurationResult AgvSensor::SetInputControlModeStatus | ( | NativeInputControleModeStatus | controlMode | ) |
Sets the input control mode.
| controlMode |
| ConfigurationResult AgvSensor::SetInputsValue | ( | NativeActiveLevelEnum | input1, |
| NativeActiveLevelEnum | input2, | ||
| NativeActiveLevelEnum | input3, | ||
| NativeActiveLevelEnum | input4 ) |
Sets the input values.
Sets the input control mode.
| input1 | |
| input2 | |
| input3 | |
| input4 |
| controlMode |
| ConfigurationResult AgvSensor::SetMultipleSampling | ( | MultipleSampling | sampling | ) |
Sets the multiple sampling.
| sampling |
| ConfigurationResult AgvSensor::SetNetworkInformation | ( | NetworkInformation | pNetwork | ) |
Set the overall network information except IP v4 and Port.
| pNetwork | An encapsulation of the network data |
| ConfigurationResult AgvSensor::SetObjectSize | ( | ObjectSize | sizeToSet | ) |
Sets the object size.
| sizeToSet |
| ConfigurationResult AgvSensor::SetOffDelay | ( | OnOffDelay | offDelay | ) |
Sets the OFF delay.
| ConfigurationResult AgvSensor::SetOnDelay | ( | OnOffDelay | onDelay | ) |
Sets the ON delay.
| ConfigurationResult AgvSensor::SetOutputActiveLevel | ( | ActiveLevel | activeLevel | ) |
Sets the output active level.
| activeLevel |
| ConfigurationResult AgvSensor::SetOutputFunction | ( | OutputFunction | function | ) |
Sets the output function.
| function |
| ConfigurationResult AgvSensor::SetRawDataExchangeMode | ( | PROTOCOL | pProtocol | ) |
Sets the RAW data exchange mode. Can be either TCP or UDP.
| pProtocol | The exchange mode (TCP or UDP) |
| ConfigurationResult AgvSensor::SetSensorLeds | ( | AgvSensorLeds | leds | ) |
Sets the sensor's leds.
| leds |
| ConfigurationResult AgvSensor::SetUncoverZoneSize | ( | UncoverZone | sizeToSet | ) |
Sets the object size
| uncoverZoneToSet |
| ConfigurationResult AgvSensor::SetWarningSpot | ( | WarningSpot | spotToSet | ) |
Sets the warning spots.
| sportToSet |
| spotToSet |
| ConfigurationResult AgvSensor::SetZone1Mode | ( | NativeZoneModeEnum | mode | ) |
Sets The Zone1Mode parameter.
| mode | An enumeration indicating the mode |
| void AgvSensor::StartLearning | ( | uint8_t | fieldNumber, |
| NativeZoneTypeEnum | zone, | ||
| uint16_t | uncover, | ||
| NativeObjSizeEnum | objectSize ) |
Starts the field learning.
| fieldNumber | The field number on which the learning may be started |
| zone | The zone |
| uncover | Yhe uncover distance (from 0 to 500mm) |
| objectSize | The objecti size enum |
| void AgvSensor::StopLearning | ( | ) |
Stops the learning.
| void AgvSensor::StopMdi | ( | ) |
Request the sensor to stop sending MDI data to host.
| ConfigurationResult AgvSensor::StoreInFlash | ( | ) |
Store fields in the flash.