Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spin recovery test #2684

Merged
merged 14 commits into from
Nov 18, 2021
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ bool SpinRecoveryTester::defaultSpinRecoveryTest(
sendFakeOdom(0.0);
}

rclcpp::spin_some(node_);
rclcpp::sleep_for(std::chrono::milliseconds(100));

auto goal_handle_future = client_ptr_->async_send_goal(goal_msg);

Expand Down Expand Up @@ -328,7 +328,7 @@ void SpinRecoveryTester::sendFakeOdom(float angle)

geometry_msgs::msg::PolygonStamped footprint;
footprint.header.frame_id = "odom";
footprint.header.stamp = rclcpp::Time();
footprint.header.stamp = node_->now();
footprint.polygon.points.resize(4);
footprint.polygon.points[0].x = 0.22;
footprint.polygon.points[0].y = 0.22;
Expand Down