Skip to content

Commit

Permalink
detecting_line()をdetect_line()に変更
Browse files Browse the repository at this point in the history
  • Loading branch information
YusukeKato committed Feb 5, 2024
1 parent 5c2a276 commit 5df6d4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class Camera_Follower : public rclcpp_lifecycle::LifecycleNode
const cv::Mat & frame,
sensor_msgs::msg::Image & msg) const;

bool detecting_line(const cv::Mat & input_frame, cv::Mat & result_frame);
bool detect_line(const cv::Mat & input_frame, cv::Mat & result_frame);

rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn
on_configure(const rclcpp_lifecycle::State &);
Expand Down
4 changes: 2 additions & 2 deletions src/camera_line_follower_component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void Camera_Follower::image_callback(const sensor_msgs::msg::Image::SharedPtr ms
cv::cvtColor(cv_img->image, frame, CV_RGB2BGR);

if (!frame.empty()) {
object_is_detected_ = detecting_line(frame, result_frame);
object_is_detected_ = detect_line(frame, result_frame);
convert_frame_to_message(result_frame, *result_msg);
result_image_pub_->publish(std::move(result_msg));
}
Expand Down Expand Up @@ -127,7 +127,7 @@ void Camera_Follower::convert_frame_to_message(
msg.header.frame_id = "camera_frame";
}

bool Camera_Follower::detecting_line(const cv::Mat & input_frame, cv::Mat & result_frame)
bool Camera_Follower::detect_line(const cv::Mat & input_frame, cv::Mat & result_frame)
{
// Specific colors are extracted from the input image and converted to binary values.
cv::Mat gray;
Expand Down

0 comments on commit 5df6d4a

Please sign in to comment.