mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-26 21:19:35 +00:00
simple_offboard: increase the rate of checking in waitTransform
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user