Tetrapod Project
log_utils_node.cpp
Go to the documentation of this file.
1 /*******************************************************************/
2 /* AUTHOR: Paal Arthur S. Thorseth */
3 /* ORGN: Dept of Eng Cybernetics, NTNU Trondheim */
4 /* FILE: log_utils_node.cpp */
5 /* DATE: Jun 12, 2021 */
6 /* */
7 /* Copyright (C) 2021 Paal Arthur S. Thorseth, */
8 /* Adrian B. Ghansah */
9 /* */
10 /* This program is free software: you can redistribute it */
11 /* and/or modify it under the terms of the GNU General */
12 /* Public License as published by the Free Software Foundation, */
13 /* either version 3 of the License, or (at your option) any */
14 /* later version. */
15 /* */
16 /* This program is distributed in the hope that it will be useful, */
17 /* but WITHOUT ANY WARRANTY; without even the implied warranty */
18 /* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */
19 /* See the GNU General Public License for more details. */
20 /* */
21 /* You should have received a copy of the GNU General Public */
22 /* License along with this program. If not, see */
23 /* <https://www.gnu.org/licenses/>. */
24 /* */
25 /*******************************************************************/
26 
27 #include "ros/ros.h"
28 
29 #include <log_utils/log_utils.h>
30 
31 // Main
32 int main(int argc, char **argv)
33 {
34  LogUtils log_utils;
35 
36  ros::Duration(0.5).sleep();
37 
38  ros::Rate log_rate(100);
39 
40  while(true)
41  {
42  log_utils.WriteToLog();
43 
44  log_rate.sleep();
45  }
46 
47  ros::spin();
48 
49  return 0;
50 }
A class for logging utilities.
Definition: log_utils.h:49
void WriteToLog()
Definition: log_utils.cpp:57
int main(int argc, char **argv)