time.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: BSD-3-Clause
2 // SPDX-FileCopyrightText: Czech Technical University in Prague
3 
4 #pragma once
5 
6 #include <gnsstk/CommonTime.hpp>
7 
8 #include <ros/time.h>
9 
10 namespace gnsstk_ros
11 {
12 
16 struct UnixEpoch
17 {
19  static const long gnsstkDaysOffset; // NOLINT(runtime/int)
21 };
22 
28 long getDays(const gnsstk::CommonTime& time); // NOLINT(runtime/int)
29 
36 ros::Time convert(const gnsstk::CommonTime& commonTime);
37 
43 gnsstk::CommonTime convert(const ros::Time& rosTime);
44 
45 }
gnsstk_ros
Definition: constellations.h:15
gnsstk_ros::convert
gnsstk::Position convert(const geographic_msgs::GeoPoint &position)
Convert the ROS GeoPoint message to gnsstk Position with Geodetic type.
Definition: position.cpp:13
gnsstk_ros::UnixEpoch
UNIX epoch (1 Jan 1970) represented in gnsstk CommonTime means. Static values for efficient computati...
Definition: time.h:16
gnsstk_ros::UnixEpoch::gnsstkDaysOffset
static const long gnsstkDaysOffset
Number of days between CommonTime beginning of time and UNIX epoch start.
Definition: time.h:20
gnsstk_ros::getDays
long getDays(const gnsstk::CommonTime &time)
Get the number of days stored in the given time object.
Definition: time.cpp:20
gnsstk::CommonTime
ros::Time
gnsstk_ros::UnixEpoch::gnsstkCommonTime
static const gnsstk::CommonTime gnsstkCommonTime
Definition: time.h:18


gnsstk_ros
Author(s): Martin Pecka
autogenerated on Fri Nov 24 2023 03:50:23