@@ -187,8 +187,8 @@ BENCHMARK_F(ActionServerPerformanceTest, action_server_cancel_goal)(benchmark::S
187187
188188 rclcpp::spin_until_future_complete (node, future_cancel, std::chrono::seconds (1 ));
189189 auto cancel_response = future_cancel.get ();
190- using CancelResponse = test_msgs::action::Fibonacci::Impl::CancelGoalService::Response;
191- if (CancelResponse ::ERROR_NONE != cancel_response->return_code ) {
190+ using CancelActionResponse = test_msgs::action::Fibonacci::Impl::CancelGoalService::Response;
191+ if (CancelActionResponse ::ERROR_NONE != cancel_response->return_code ) {
192192 state.SkipWithError (" Cancel request did not succeed" );
193193 break ;
194194 }
@@ -247,12 +247,12 @@ BENCHMARK_F(ActionServerPerformanceTest, action_server_set_success)(benchmark::S
247247 // too wide, they at least could agree it was fine. In my testing MSVC errored if goal_order was
248248 // not captured, but clang would warn if it was explicitly captured.
249249 const auto result = [&]() {
250- auto result = std::make_shared<Fibonacci::Result>();
250+ auto action_result = std::make_shared<Fibonacci::Result>();
251251 for (int i = 0 ; i < goal_order; ++i) {
252252 // Not the fibonacci sequence, but that's not important to this benchmark
253- result ->sequence .push_back (i);
253+ action_result ->sequence .push_back (i);
254254 }
255- return result ;
255+ return action_result ;
256256 } ();
257257
258258 reset_heap_counters ();
@@ -291,12 +291,12 @@ BENCHMARK_F(ActionServerPerformanceTest, action_server_abort)(benchmark::State &
291291
292292 // Capturing with & because MSVC and Clang disagree about how to capture goal_order
293293 const auto result = [&]() {
294- auto result = std::make_shared<Fibonacci::Result>();
294+ auto action_result = std::make_shared<Fibonacci::Result>();
295295 for (int i = 0 ; i < goal_order; ++i) {
296296 // Not the fibonacci sequence, but that's not important to this benchmark
297- result ->sequence .push_back (i);
297+ action_result ->sequence .push_back (i);
298298 }
299- return result ;
299+ return action_result ;
300300 } ();
301301
302302 reset_heap_counters ();
0 commit comments