Namespaces | Macros | Functions | Variables
time_modi.cpp File Reference
#include "ros/time.h"
#include "ros/impl/time.h"
#include <cmath>
#include <ctime>
#include <iomanip>
#include <stdexcept>
#include <limits>
#include <thread>
#include <mutex>
#include <sstream>
Include dependency graph for time_modi.cpp:

Go to the source code of this file.

Namespaces

 roswrap
 

Macros

#define HAS_CLOCK_GETTIME   (_POSIX_C_SOURCE >= 199309L)
 

Functions

const Duration roswrap::DURATION_MAX (std::numeric_limits< int32_t >::max(), 999999999)
 
const Duration roswrap::DURATION_MIN (std::numeric_limits< int32_t >::min(), 0)
 
static bool roswrap::g_initialized (true)
 
static bool roswrap::g_stopped (false)
 
static bool roswrap::g_use_sim_time (true)
 
void roswrap::normalizeSecNSec (uint32_t &sec, uint32_t &nsec)
 
void roswrap::normalizeSecNSec (uint64_t &sec, uint64_t &nsec)
 
void roswrap::normalizeSecNSecUnsigned (int64_t &sec, int64_t &nsec)
 
std::ostream & roswrap::operator<< (std::ostream &os, const Duration &rhs)
 
std::ostream & roswrap::operator<< (std::ostream &os, const Time &rhs)
 
std::ostream & roswrap::operator<< (std::ostream &os, const WallDuration &rhs)
 
std::ostream & roswrap::operator<< (std::ostream &os, const WallTime &rhs)
 
int roswrap::ros_nanosleep (const uint32_t &sec, const uint32_t &nsec)
 Simple representation of the rt library nanosleep function. More...
 
void roswrap::ros_steadytime (uint32_t &sec, uint32_t &nsec)
 
bool roswrap::ros_wallsleep (uint32_t sec, uint32_t nsec)
 Go to the wall! More...
 
void roswrap::ros_walltime (uint32_t &sec, uint32_t &nsec)
 
const Time roswrap::TIME_MAX (std::numeric_limits< uint32_t >::max(), 999999999)
 

Variables

static Time roswrap::g_sim_time (0, 0)
 
static std::mutex roswrap::g_sim_time_mutex
 
const Time roswrap::TIME_MIN (0, 1)
 

Macro Definition Documentation

◆ HAS_CLOCK_GETTIME

#define HAS_CLOCK_GETTIME   (_POSIX_C_SOURCE >= 199309L)

Definition at line 68 of file time_modi.cpp.



sick_scan_xd
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:14