farm-ng-core
core.stamp Namespace Reference

Classes

class  StampSemantics
 

Functions

Timestamp get_monotonic_now (str semantics)
 
Timestamp get_system_clock_now (str semantics)
 
Timestamp timestamp_from_monotonic (str semantics, float stamp)
 
float|None get_stamp_by_semantics_and_clock_type (Event event, str semantics, str clock_type)
 

Variables

 time_source = time
 

Function Documentation

◆ get_monotonic_now()

Timestamp core.stamp.get_monotonic_now ( str  semantics)

◆ get_stamp_by_semantics_and_clock_type()

float | None core.stamp.get_stamp_by_semantics_and_clock_type ( Event  event,
str  semantics,
str  clock_type 
)
Utility function to get the stamp of a Timestamp by semantics.

Args:
    event: farm-ng protobuf event
    semantics: semantics of the timestamp to get (see StampSemantics)
    clock_type: clock type of the timestamp to get (e.g., monotonic, system_clock)

◆ get_system_clock_now()

Timestamp core.stamp.get_system_clock_now ( str  semantics)

◆ timestamp_from_monotonic()

Timestamp core.stamp.timestamp_from_monotonic ( str  semantics,
float  stamp 
)

Variable Documentation

◆ time_source

core.stamp.time_source = time