rclcpp  master
C++ ROS Client Library API
Public Types | Public Attributes | List of all members
rclcpp::TimeJump Struct Reference

A struct to represent a timejump. More...

#include <clock.hpp>

Public Types

enum  ClockChange_t { ROS_TIME_NO_CHANGE, ROS_TIME_ACTIVATED, ROS_TIME_DEACTIVATED, SYSTEM_TIME_NO_CHANGE }
 
typedef enum rclcpp::TimeJump::ClockChange_t ClockChange_t
 

Public Attributes

ClockChange_t jump_type_
 The change in clock_type if there is one. More...
 
rcl_duration_t delta_
 The change in time value. More...
 

Detailed Description

A struct to represent a timejump.

It represents the time jump duration and whether it changed clock type.

Member Typedef Documentation

◆ ClockChange_t

Member Enumeration Documentation

◆ ClockChange_t

Enumerator
ROS_TIME_NO_CHANGE 

The time type before and after the jump is ROS_TIME.

ROS_TIME_ACTIVATED 

The time type switched to ROS_TIME from SYSTEM_TIME.

ROS_TIME_DEACTIVATED 

The time type switched to SYSTEM_TIME from ROS_TIME.

SYSTEM_TIME_NO_CHANGE 

The time type before and after the jump is SYSTEM_TIME.

Member Data Documentation

◆ jump_type_

ClockChange_t rclcpp::TimeJump::jump_type_

The change in clock_type if there is one.

◆ delta_

rcl_duration_t rclcpp::TimeJump::delta_

The change in time value.


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