9 #ifndef CNTRIPEmitter_H 10 #define CNTRIPEmitter_H A generic interface for a wide-variety of sensors designed to be used in the application RawLogGrabbe...
void initialize()
Set up the NTRIP communications, raising an exception on fatal errors.
mrpt::utils::CTicTac m_rate_timer
A communications serial port built as an implementation of a utils::CStream.
void setOutputSerialPort(const std::string &port)
Changes the serial port to connect to (call prior to 'doProcess'), for example "COM1" or "ttyS0"...
std::string m_com_port
If set to non-empty, the serial port will be attempted to be opened automatically when this class is ...
CNTRIPClient m_client
The NTRIP comms object.
A client for NTRIP (HTTP) sources of differential GPS corrections from internet servers, or Global navigation satellite system (GNSS) internet radio.
This class allows loading and storing values and vectors of different types from a configuration text...
std::string m_raw_output_file_prefix
This class implements a high-performance stopwatch.
GLsizei const GLchar ** string
CNTRIPEmitter()
Constructor.
void loadConfig_sensorSpecific(const mrpt::utils::CConfigFileBase &configSource, const std::string &iniSection)
See the class documentation at the top for expected parameters.
#define DEFINE_GENERIC_SENSOR(class_name)
This declaration must be inserted in all CGenericSensor classes definition, within the class declarat...
CNTRIPClient::NTRIPArgs m_ntrip_args
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
std::ofstream m_raw_output_file_stream
void doProcess()
The main loop, which must be called in a timely fashion in order to process the incomming NTRIP data ...
std::string getRawOutputFilePrefix() const
virtual ~CNTRIPEmitter()
Destructor.
std::string getOutputSerialPort() const
bool m_transmit_to_server
mrpt::comms::CSerialPort m_out_COM
The output serial port.
void setRawOutputFilePrefix(const std::string &outfile)
This "virtual driver" encapsulates a NTRIP client (see CNTRIPClient) but adds the functionality of du...
The arguments for connecting to a NTRIP stream, used in CNTRIPClient::open.
CNTRIPClient & getNTRIPClient()
Exposes the NTRIP client object.
const CNTRIPClient & getNTRIPClient() const
Exposes the NTRIP client object.