Go to the documentation of this file.
35 #ifndef ROSTIME_IMPL_DURATION_H_INCLUDED
36 #define ROSTIME_IMPL_DURATION_H_INCLUDED
38 #include <ros/duration.h>
55 sec = (int32_t)floor(
d);
56 nsec = (int32_t)((
d - (
double)
sec)*1000000000);
57 return *
static_cast<T*
>(
this);
63 sec = (int32_t)(
t / 1000000000);
64 nsec = (int32_t)(
t % 1000000000);
68 return *
static_cast<T*
>(
this);
74 return T(
sec + rhs.sec,
nsec + rhs.nsec);
80 return T(toSec() * scale);
86 return T(
sec - rhs.sec,
nsec - rhs.nsec);
99 return *
static_cast<T*
>(
this);
106 return *
static_cast<T*
>(
this);
112 fromSec(toSec() * scale);
113 return *
static_cast<T*
>(
this);
121 else if (
sec == rhs.sec &&
nsec < rhs.nsec)
131 else if (
sec == rhs.sec &&
nsec > rhs.nsec)
141 else if (
sec == rhs.sec &&
nsec <= rhs.nsec)
151 else if (
sec == rhs.sec &&
nsec >= rhs.nsec)
159 return sec == rhs.sec &&
nsec == rhs.nsec;
ROSTIME_DECL void normalizeSecNSecSigned(int64_t &sec, int64_t &nsec)
bool operator<(const TiXmlString &a, const TiXmlString &b)
bool operator>(const TiXmlString &a, const TiXmlString &b)
TiXmlString operator+(const TiXmlString &a, const TiXmlString &b)
uint32_t nsec(const rosTime &time)
bool operator==(const TiXmlString &a, const TiXmlString &b)
uint32_t sec(const rosTime &time)
bool operator>=(const TiXmlString &a, const TiXmlString &b)
bool operator<=(const TiXmlString &a, const TiXmlString &b)
Base class for Duration implementations. Provides storage, common functions and operator overloads....
geometry_msgs::TransformStamped t
sick_scan_xd
Author(s): Michael Lehning
, Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:08