Skip to content

Commit

Permalink
関数にconstを付ける
Browse files Browse the repository at this point in the history
  • Loading branch information
YusukeKato committed Dec 6, 2023
1 parent f6067af commit 5a17a7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Camera_Follower : public rclcpp_lifecycle::LifecycleNode
std::string mat_type2encoding(const int mat_type) const;
void convert_frame_to_message(
const cv::Mat & frame,
sensor_msgs::msg::Image & msg);
sensor_msgs::msg::Image & msg) const;

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

Expand Down
2 changes: 1 addition & 1 deletion src/camera_line_follower_component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ std::string Camera_Follower::mat_type2encoding(const int mat_type) const

// Ref: https://github.com/ros2/demos/blob/dashing/image_tools/src/cam2image.cpp
void Camera_Follower::convert_frame_to_message(
const cv::Mat & frame, sensor_msgs::msg::Image & msg)
const cv::Mat & frame, sensor_msgs::msg::Image & msg) const
{
// copy cv information into ros message
msg.height = frame.rows;
Expand Down

0 comments on commit 5a17a7d

Please sign in to comment.