Skip to content

Commit

Permalink
Adjust the Variable types in Nav2_costmap_2d pkg in [nav2_humble] ros…
Browse files Browse the repository at this point in the history
…-navigation#3891 (ros-navigation#3900) (ros-navigation#3902)

* image.hpp ros-navigation#3891

* Update image.hpp

(cherry picked from commit 7a7c6da)

Co-authored-by: GoesM <[email protected]>
  • Loading branch information
2 people authored and RBT22 committed Nov 16, 2023
1 parent 075169c commit 7af5c96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nav2_costmap_2d/include/nav2_costmap_2d/denoise/image.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Image
* Share image data between new and old object.
* Changing data in a new object will affect the given one and vice versa
*/
Image(Image & other);
Image(const Image & other);

/**
* @brief Create image from the other (move constructor)
Expand Down Expand Up @@ -132,7 +132,7 @@ Image<T>::Image(size_t rows, size_t columns, T * data, size_t step)
}

template<class T>
Image<T>::Image(Image & other)
Image<T>::Image(const Image & other)
: data_start_{other.data_start_},
rows_{other.rows_}, columns_{other.columns_}, step_{other.step_} {}

Expand Down

0 comments on commit 7af5c96

Please sign in to comment.