1 #ifndef EEROS_ROS_TOOLS_HPP 2 #define EEROS_ROS_TOOLS_HPP 5 #include <std_msgs/Header.h> 7 #define NS_PER_SEC 1000000000 12 static ros::Time convertToRosTime(uint64_t timestampNs) {
14 t.sec =
static_cast<double>(timestampNs) /
NS_PER_SEC;
15 t.nsec = timestampNs %
static_cast<uint64_t
>(1e9);
19 static void initNode(std::string name) {
20 char* args[] = {NULL};
21 int argc =
sizeof(args)/
sizeof(args[0]) - 1;
22 ros::init(argc, args, name);
Definition: Config.hpp:14