Autoware.Auto
time_utils Namespace Reference

Namespaces

 details
 

Functions

TIME_UTILS_PUBLIC builtin_interfaces::msg::Time to_message (std::chrono::system_clock::time_point t)
 Convert from std::chrono::time_point to time message. More...
 
TIME_UTILS_PUBLIC builtin_interfaces::msg::Duration to_message (std::chrono::nanoseconds dt)
 Convert from std::chrono::duration to duration message. More...
 
TIME_UTILS_PUBLIC std::chrono::system_clock::time_point from_message (builtin_interfaces::msg::Time t) noexcept
 Convert from std::chrono::time_point from time message. More...
 
TIME_UTILS_PUBLIC std::chrono::nanoseconds from_message (builtin_interfaces::msg::Duration dt) noexcept
 Convert from std::chrono::duration from duration message. More...
 
TIME_UTILS_PUBLIC std::chrono::nanoseconds interpolate (std::chrono::nanoseconds a, std::chrono::nanoseconds b, float t) noexcept
 Standard interpolation. More...
 

Function Documentation

◆ from_message() [1/2]

std::chrono::nanoseconds time_utils::from_message ( builtin_interfaces::msg::Duration  dt)
noexcept

Convert from std::chrono::duration from duration message.

◆ from_message() [2/2]

std::chrono::system_clock::time_point time_utils::from_message ( builtin_interfaces::msg::Time  t)
noexcept

Convert from std::chrono::time_point from time message.

◆ interpolate()

std::chrono::nanoseconds time_utils::interpolate ( std::chrono::nanoseconds  a,
std::chrono::nanoseconds  b,
float  t 
)
noexcept

Standard interpolation.

◆ to_message() [1/2]

builtin_interfaces::msg::Duration time_utils::to_message ( std::chrono::nanoseconds  dt)

Convert from std::chrono::duration to duration message.

◆ to_message() [2/2]

builtin_interfaces::msg::Time time_utils::to_message ( std::chrono::system_clock::time_point  t)

Convert from std::chrono::time_point to time message.