10 #ifndef CNTRIPClient_H
11 #define CNTRIPClient_H
67 net_ref_stations(false),
89 server (
"www.euref-ip.net" ),
156 std::string &out_errmsg,
157 const std::string &server,
159 const std::string &auth_user = std::string(),
160 const std::string &auth_pass = std::string()
A client for NTRIP (HTTP) sources of differential GPS corrections from internet servers,...
mrpt::synch::CSemaphore m_sem_first_connect_done
void private_ntrip_thread()
The working thread.
static bool retrieveListOfMountpoints(TListMountPoints &out_list, std::string &out_errmsg, const std::string &server, int port=2101, const std::string &auth_user=std::string(), const std::string &auth_pass=std::string())
Connect to a given NTRIP caster and get the list of all available mountpoints and their parameters.
TConnResult m_answer_connection
virtual ~CNTRIPClient()
Default destructor.
mrpt::synch::MT_buffer m_upload_data
Buffer for data to be sent back to the server.
mrpt::synch::MT_buffer stream_data
The buffer with all the bytes so-far read from the NTRIP server stream.
NTRIPArgs m_args
All the parameters for the NTRIP connection.
mrpt::synch::CSemaphore m_sem_sock_closed
mrpt::system::TThreadHandle m_thread
bool m_thread_do_process
Will be "true" between "open" and "close".
CNTRIPClient()
Default constructor.
std::list< TMountPoint > TListMountPoints
Used in CNTRIPClient::retrieveListOfMountpoints.
bool m_waiting_answer_connection
void close()
Closes the connection.
bool open(const NTRIPArgs ¶ms, std::string &out_errmsg)
Tries to open a given NTRIP stream and, if successful, launches a thread for continuously reading fro...
void sendBackToServer(const std::string &data)
Enqueues a string to be sent back to the NTRIP server (e.g.
A semaphore for inter-thread synchronization.
This class is a bulk sequence of bytes with MultiThread (MT)-safe read and write operations.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
The arguments for connecting to a NTRIP stream, used in CNTRIPClient::open.
NTRIPArgs()
Default params.
A descriptor of one stream in an NTRIP Caster - See CNTRIPClient::retrieveListOfMountpoints.
int carrier
0: No carrier phase, 1: L1, 2: L1+L2
char authentication
"N": none, "B": basic, "D": digest
std::string nav_system
GPS, ...
std::string mountpoint_name
std::string compr_encryp
"none"
std::string country_code
ITA, ESP, DEU,...
std::string format_details
std::string network
IGS, ...
std::string format
RTCM 2.3, RTCM 3, CMR+, etc...
std::string generator_model
This structure contains the information needed to interface the threads API on each platform: