MRPT  1.9.9
time.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | https://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2020, Individual contributors, see AUTHORS file |
6  | See: https://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See: https://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 
10 #pragma once
11 
12 #include <mrpt/system/datetime.h>
13 #include <ros/time.h>
14 
15 namespace mrpt::ros1bridge
16 {
17 /** \addtogroup mrpt_ros1bridge_grp
18  * @{ */
19 
20 /**
21  * converts ros time to mrpt time
22  * @param src ros time
23  * @param des mrpt time
24  */
25 mrpt::system::TTimeStamp fromROS(const ros::Time& src);
26 
27 /**
28  * converts mrpt time to ros time
29  * @param src ros time
30  * @param des mrpt time
31  */
32 ros::Time toROS(const mrpt::system::TTimeStamp& src);
33 
34 /** @} */
35 
36 }; // namespace mrpt::ros1bridge
mrpt::Clock::time_point TTimeStamp
A system independent time type, it holds the the number of 100-nanosecond intervals since January 1...
Definition: datetime.h:40
bool toROS(const mrpt::obs::CObservationGPS &obj, const std_msgs::Header &msg_header, sensor_msgs::NavSatFix &msg)
Convert mrpt::obs::CObservationGPS -> sensor_msgs/NavSatFix The user must supply the "msg_header" fie...
Definition: gps.cpp:48
ROS message: http://docs.ros.org/api/sensor_msgs/html/msg/NavSatFix.html MRPT message: https://github...
Definition: gps.h:28
bool fromROS(const sensor_msgs::NavSatFix &msg, mrpt::obs::CObservationGPS &obj)
Convert sensor_msgs/NavSatFix -> mrpt::obs::CObservationGPS.
Definition: gps.cpp:20



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: c7a3bec24 Sun Mar 29 18:33:13 2020 +0200 at dom mar 29 18:50:38 CEST 2020