Go to the documentation of this file.
   25         const string server = 
"www.euref-ip.net";
 
   26         const int server_port = 2101;
 
   31         bool ret = CNTRIPClient::retrieveListOfMountpoints(
 
   32                 lst, errMsg, server, server_port);
 
   36                 cout << 
"Error: " << errMsg << endl;
 
   42                 cout << 
"Zero streams listed in caster...?" << endl;
 
   49                  it != lst.end(); it++)
 
   66         cout << 
"Connecting to: " << it->mountpoint_name << 
" - " << it->id << endl;
 
   67         params.mountpoint = it->mountpoint_name;
 
   78                 cout << 
"ERROR: " << msgerr << endl;
 
   82                 cout << 
"Reading stream... press any key to finish." << endl;
 
   84                 std::vector<uint8_t> dat;
 
   88                         cout << 
"Read " << dat.size() << 
" bytes." << endl;
 
   89                         std::this_thread::sleep_for(1000ms);
 
   97         const string server = 
"193.144.251.13";
 
   98         const int server_port = 2101;
 
  105         params.mountpoint = 
"ACOR0";
 
  107         params.port = server_port;
 
  115                 cout << 
"ERROR: " << msgerr << endl;
 
  119                 cout << 
"Reading stream... press any key to finish." << endl;
 
  121                 std::vector<uint8_t> dat;
 
  125                         cout << 
"Read " << dat.size() << 
" bytes." << endl;
 
  126                         std::this_thread::sleep_for(1000ms);
 
  143         catch (std::exception& e)
 
  145                 std::cout << 
"MRPT exception caught: " << e.what() << std::endl;
 
  150                 printf(
"Untyped exception!!");
 
  
bool kbhit() noexcept
An OS-independent version of kbhit, which returns true if a key has been pushed.
const Scalar * const_iterator
A client for NTRIP (HTTP) sources of differential GPS corrections from internet servers,...
std::string mountpoint_name
mrpt::containers::MT_buffer stream_data
The buffer with all the bytes so-far read from the NTRIP server stream.
Contains classes for various device interfaces.
void readAndClear(std::vector< uint8_t > &d)
Read the whole buffer and empty it.
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.
std::string format
RTCM 2.3, RTCM 3, CMR+, etc...
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...
std::string country_code
ITA, ESP, DEU,...
This namespace provides a OS-independent interface to many useful functions: filenames manipulation,...
GLenum const GLfloat * params
A descriptor of one stream in an NTRIP Caster - See CNTRIPClient::retrieveListOfMountpoints.
std::list< TMountPoint > TListMountPoints
Used in CNTRIPClient::retrieveListOfMountpoints.
   | Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST |  |