logger_node_pa.cpp
Go to the documentation of this file.
1 //==============================================================================
2 // Copyright (c) 2019, Peter Weissig, TU Chemnitz
3 // All rights reserved.
4 //
5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are met:
7 // * Redistributions of source code must retain the above copyright
8 // notice, this list of conditions and the following disclaimer.
9 // * Redistributions in binary form must reproduce the above copyright
10 // notice, this list of conditions and the following disclaimer in the
11 // documentation and/or other materials provided with the distribution.
12 // * Neither the name of the Flight Systems and Automatic Control group,
13 // TU Darmstadt, nor the names of its contributors may be used to
14 // endorse or promote products derived from this software without
15 // specific prior written permission.
16 //
17 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18 // AND
19 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY
22 // DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 // ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 //==============================================================================
29 
30 // This file is an addon from TUC-ProAut (https://github.com/TUC-ProAut/).
31 // It was created to log all data from the ublox to a logfile and to publish
32 // the data as ros messages. This is used by our group to also evaluate the
33 // measured data with the rtklib.
34 
35 // ROS includes
36 #include <ros/ros.h>
37 // Ublox GPS includes
38 #include <ublox_gps/raw_data_pa.h>
39 
40 using namespace ublox_node;
41 
42 //
43 // Raw Data Stream (feature from TUC-ProAut)
44 //
45 
46 int main(int argc, char** argv) {
47 
48  ros::init(argc, argv, "ublox_logger");
49 
50  RawDataStreamPa node(true);
51  node.getRosParams();
52  node.initialize();
53 
54  ros::spin();
55 
56  return 0;
57 }
Implements functions for raw data stream.
Definition: raw_data_pa.h:60
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int main(int argc, char **argv)
ROSCPP_DECL void spin(Spinner &spinner)
void initialize(void)
Initializes raw data streams If storing to file is enabled, the filename is created and the correspon...
Definition: raw_data_pa.cpp:77
void getRosParams(void)
Get the raw data stream parameters.
Definition: raw_data_pa.cpp:57


ublox_gps
Author(s): Johannes Meyer
autogenerated on Thu Jan 28 2021 03:13:52