Skip to content

Commit

Permalink
style(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jan 8, 2025
1 parent 377eb81 commit 5ec9e28
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class SimpleAIPlanner : public PlannerBase, public rclcpp::Node
// キャンセルのコールバック
[&](const std::shared_ptr<rclcpp_action::ServerGoalHandle<SkillExecution>> goal_handle)
-> rclcpp_action::CancelResponse {
std::cout << "Canceling goal: " << std::endl;
std::cout << "Canceling goal: " << std::endl;
skill_execution_goal_handle.reset();
if (running_skill) {
running_skill.reset();
Expand All @@ -209,7 +209,7 @@ class SimpleAIPlanner : public PlannerBase, public rclcpp::Node
goal_handle->publish_feedback(feedback);
rclcpp::sleep_for(std::chrono::milliseconds(100)); // 100ms待機
}
std::cout << "Goal succeeded: " << std::endl;
std::cout << "Goal succeeded: " << std::endl;
auto result = std::make_shared<SkillExecution::Result>();
goal_handle->succeed(result);
});
Expand Down Expand Up @@ -248,7 +248,8 @@ class SimpleAIPlanner : public PlannerBase, public rclcpp::Node

rclcpp_action::Server<crane_msgs::action::SkillExecution>::SharedPtr skill_execution_server;

std::shared_ptr<rclcpp_action::ServerGoalHandle<crane_msgs::action::SkillExecution>> skill_execution_goal_handle;
std::shared_ptr<rclcpp_action::ServerGoalHandle<crane_msgs::action::SkillExecution>>
skill_execution_goal_handle;

std::shared_ptr<skills::SkillInterface> running_skill = nullptr;

Expand Down

0 comments on commit 5ec9e28

Please sign in to comment.