simple_offboard: consider message timed out if time stamp is zero

This commit is contained in:
Oleg Kalachev
2021-08-23 22:39:10 +03:00
parent 7809e7ed2d
commit 5f43367d82

View File

@@ -183,7 +183,7 @@ inline bool waitTransform(const string& target, const string& source,
}
}
#define TIMEOUT(msg, timeout) (ros::Time::now() - msg.header.stamp > timeout)
#define TIMEOUT(msg, timeout) (msg.header.stamp.isZero() || (ros::Time::now() - msg.header.stamp > timeout))
bool getTelemetry(GetTelemetry::Request& req, GetTelemetry::Response& res)
{