Fixposition SDK 0.0.0-heads/main-0-g7b59b93
Collection of c++ libraries and apps for use with Fixposition products
Loading...
Searching...
No Matches
fpsdk::common::time::RosTime Struct Reference

Minimal ros::Time() / rplcpp::Time implementation (that doesn't throw) More...

#include <time.hpp>

Public Member Functions

 RosTime (const uint32_t sec, const uint32_t nsec)
 Constructor.
 
double ToSec () const
 Convert to seconds.
 
bool IsZero () const
 Check if time is zero (invalid, unset)
 

Public Attributes

uint32_t sec_
 Seconds part of time.
 
uint32_t nsec_
 Nanoseconds part of time (should be in range 0-999999999)
 

Detailed Description

Minimal ros::Time() / rplcpp::Time implementation (that doesn't throw)

Definition at line 66 of file time.hpp.

Constructor & Destructor Documentation

◆ RosTime()

fpsdk::common::time::RosTime::RosTime ( const uint32_t sec,
const uint32_t nsec )

Constructor.

Parameters
[in]secTime value seconds
[in]nsecTime value nanoseconds

Member Function Documentation

◆ ToSec()

double fpsdk::common::time::RosTime::ToSec ( ) const

Convert to seconds.

Returns
the time value (time since epoch) in [s]

◆ IsZero()

bool fpsdk::common::time::RosTime::IsZero ( ) const

Check if time is zero (invalid, unset)

Returns
true if time is zero (invalid, unset)

Member Data Documentation

◆ sec_

uint32_t fpsdk::common::time::RosTime::sec_

Seconds part of time.

Definition at line 91 of file time.hpp.

◆ nsec_

uint32_t fpsdk::common::time::RosTime::nsec_

Nanoseconds part of time (should be in range 0-999999999)

Definition at line 92 of file time.hpp.


The documentation for this struct was generated from the following file: