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 Code Style On pid_error #2343

Merged
merged 1 commit into from
Feb 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions soccer/src/soccer/control/motion_control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ MotionControl::MotionControl(int shell_id, rclcpp::Node* node)
node->create_publisher<std_msgs::msg::Float64>("debug/motion_control/pose_error_x", 10);
error_y_pub_ =
node->create_publisher<std_msgs::msg::Float64>("debug/motion_control/pose_error_y", 10);
error_heading_pub_ =
node->create_publisher<std_msgs::msg::Float64>("debug/motion_control/pose_error_heading", 10);
error_heading_pub_ = node->create_publisher<std_msgs::msg::Float64>(
"debug/motion_control/pose_error_heading", 10);
}

void MotionControl::run(const RobotState& state, const planning::Trajectory& trajectory,
Expand Down Expand Up @@ -151,7 +151,6 @@ void MotionControl::run(const RobotState& state, const planning::Trajectory& tra
error_heading_pub_->publish(error_heading_msg);
}


correction = Twist(position_x_controller_.run(static_cast<float>(error.position().x())),
position_y_controller_.run(static_cast<float>(error.position().y())),
angle_controller_.run(static_cast<float>(error.heading())));
Expand Down