Skip to content

Commit

Permalink
コメントを修正
Browse files Browse the repository at this point in the history
Co-authored-by: Shota Aoki <[email protected]>
  • Loading branch information
YusukeKato and Shota Aoki authored Dec 6, 2023
1 parent b1b3ceb commit 8f559e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/camera_line_follower_component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void Camera_Follower::on_cmd_vel_timer()
constexpr double OBJECT_AREA_THRESHOLD = 0.01; // 0.0 ~ 1.0
geometry_msgs::msg::Twist cmd_vel;

// Detect and follow the line
// Follow the line
// when the number of pixels of the object is greater than the threshold.
if (object_is_detected_ && object_normalized_area_ > OBJECT_AREA_THRESHOLD) {
cmd_vel.linear.x = LINEAR_VEL * (object_normalized_area_ - TARGET_AREA);
Expand Down

0 comments on commit 8f559e8

Please sign in to comment.