Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 9, 2025
1 parent 3499682 commit 0cf0c30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions control/pid_controller_dp/src/pid_controller_ros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ PIDControllerNode::PIDControllerNode() : Node("pid_controller_node") {
this->declare_parameter("software_operation_mode_topic",
"/softwareOperationMode");

std::string odom_topic =
this->get_parameter("odom_topic").as_string();
std::string odom_topic = this->get_parameter("odom_topic").as_string();
std::string dp_reference_topic =
this->get_parameter("dp_reference_topic").as_string();
std::string control_topic =
Expand Down
5 changes: 3 additions & 2 deletions guidance/reference_filter_dp/src/reference_filter_ros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,12 @@ void ReferenceFilterNode::execute(
goal_handle->publish_feedback(feedback);
reference_pub_->publish(feedback_msg);

if ((x_.head(6)-r_.head(6)).norm() < 0.1) {
if ((x_.head(6) - r_.head(6)).norm() < 0.1) {
result->success = true;
goal_handle->succeed(result);
x_.head(6) = r_.head(6);
vortex_msgs::msg::ReferenceFilter feedback_msg = fill_reference_msg();
vortex_msgs::msg::ReferenceFilter feedback_msg =
fill_reference_msg();
reference_pub_->publish(feedback_msg);
RCLCPP_INFO(this->get_logger(), "Goal reached");
return;
Expand Down

0 comments on commit 0cf0c30

Please sign in to comment.