Class CImpinjRFID
Defined in File CImpinjRFID.h
Inheritance Relationships
Base Type
public mrpt::hwdrivers::CGenericSensor(Class CGenericSensor)
Class Documentation
-
class CImpinjRFID : public mrpt::hwdrivers::CGenericSensor
This class implements an interface to an Impinj RFID reader. This object connects to a program that does the actual communication with the receiver. This is done because the manufacturer only provides libraries for C# and Java. The program that runs the device must be started after this object
Public Functions
-
CImpinjRFID()
Default constructor.
-
~CImpinjRFID() override
-
void connect()
Connect to the reader.
-
virtual void doProcess() override
This method will be invoked at a minimum rate of “process_rate” (Hz)
- Throws:
This – method must throw an exception with a descriptive message if some critical error is found.
-
virtual void initialize() override
This method can or cannot be implemented in the derived class, depending on the need for it.
- Throws:
This – method must throw an exception with a descriptive message if some critical error is found.
-
virtual void loadConfig_sensorSpecific(const mrpt::config::CConfigFileBase &configSource, const std::string §ion) override
Loads specific configuration for the device from a given source of configuration parameters, for example, an “.ini” file, loading from the section “[iniSection]” (see config::CConfigFileBase and derived classes)
- Throws:
This – method must throw an exception with a descriptive message if some critical parameter is missing or has an invalid value.
-
bool getObservation(mrpt::obs::CObservationRFID &obs)
Gets the information of the tags as a timestamped observation NOTE: Deprecated, use getObservations instead. See CGenericSensor documentation. This function is kept for internal use of the module
See also
- Returns:
Returns true if the observation was correct, and false otherwise
-
void closeReader()
Close the connection to the reader.
-
CImpinjRFID()