simple_offboard: increase the rate of checking in waitTransform

This commit is contained in:
Oleg Kalachev
2019-07-21 21:25:51 +03:00
parent ea072ad01a
commit 82f2a2df50

View File

@@ -157,7 +157,7 @@ void handleLocalPosition(const PoseStamped& pose)
inline bool waitTransform(const string& target, const string& source,
const ros::Time& stamp, const ros::Duration& timeout)
{
ros::Rate r(10);
ros::Rate r(100);
auto start = ros::Time::now();
while (ros::ok()) {
if (ros::Time::now() - start > timeout) return false;