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)

* image.hpp ros-navigation#3891

* Update image.hpp

Signed-off-by: enricosutera <[email protected]>
  • Loading branch information
GoesM authored and enricosutera committed May 19, 2024
1 parent 6a4a6a4 commit 7e81b5e
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 7e81b5e

Please sign in to comment.