Function navtk::get_time

Function Documentation

std::pair<bool, aspn_xtensor::TypeTimestamp> navtk::get_time(std::shared_ptr<aspn_xtensor::AspnBase> msg)

Extract timestamp from an AspnBase object.

Parameters

msg – Message containing a timestamp.

Returns

A pair where the first element is a flag indicating if msg has a timestamp, and if true, the second element is the timestamp. If the flag is false, the second element will have a timestamp of 0.