Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Master into ROS2 #245

Closed
wants to merge 104 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
80857dd
Merge branch 'github/fix/default_initialization_not_applied' into 'ma…
maximilianwulf Jun 26, 2020
688dc4f
Merge branch 'fix/grid_map_cv_conversion' into 'master'
remod Jul 6, 2020
02c5874
Merge branch 'fix/update-cmake-minimum-version' into 'master'
Jul 15, 2020
c796c48
Merge branch 'fix/rename_readmes' into 'master'
hogabrie Jul 28, 2020
270a9cc
Merge branch 'fix/grid_map_code_coverage' into 'master'
YoshuaNavaANYbotics Jul 30, 2020
3517962
Merge branch 'feature/unitcoverage_grid_map' into 'master'
YoshuaNavaANYbotics Aug 11, 2020
f0dd780
Merge branch 'fix/get_transformed_map' into 'master'
maximilianwulf Aug 13, 2020
f5bd2ed
Merge branch 'feature/grid_map_enable_coverage_analysis' into 'master'
YoshuaNavaANYbotics Aug 19, 2020
6e7fd04
Merge branch 'feature/coverage_macros_perception_demo_pkgs' into 'mas…
YoshuaNavaANYbotics Aug 26, 2020
fa0f362
Merge branch 'fix/perception_coverage_test_depends' into 'master'
YoshuaNavaANYbotics Aug 28, 2020
e3e00ff
Merge branch 'fix/perception_coverage_empty_tests' into 'master'
YoshuaNavaANYbotics Sep 2, 2020
b41708e
Merge branch 'fix/grid_map_cmake_unit_tests' into 'master'
YoshuaNavaANYbotics Sep 7, 2020
d85153c
Merge branch 'feature/median_fill_filter' into 'master'
mgaertneratanybotics Sep 11, 2020
100bccf
Merge branch 'feature/noetic' into 'master'
pleemann Sep 11, 2020
253bec4
Merge branch 'fix/gridmapfilters_update_package_version' into 'master'
mgaertneratanybotics Sep 14, 2020
49b87fb
Merge branch 'fix/gmock_rosdep' into 'master'
hogabrie Sep 15, 2020
593b914
Merge branch 'fix/remove_melodic_from_readmes' into 'master'
pleemann Sep 17, 2020
007163c
Merge branch 'feature/optimize_get_transformed_map' into 'master'
mgaertneratanybotics Oct 1, 2020
a623fa5
Merge branch 'feature/elevation_mapping_postprocessing_unit_test' int…
mgaertneratanybotics Oct 14, 2020
d2f7710
Merge branch 'feature/optimize_median_fill_filter' into 'master'
mgaertneratanybotics Oct 14, 2020
b437623
Merge branch 'feature/grid_map_to_image' into 'master'
mgaertneratanybotics Oct 20, 2020
775a30d
Merge branch 'feature/speedup_median_fill_filter_configuration' into …
mgaertneratanybotics Oct 23, 2020
c8b1057
Merge branch 'feature/speedup_submap_iterator' into 'master'
mgaertneratanybotics Oct 23, 2020
2e84c40
Merge branch 'fix/grid_map_pcl_install' into 'master'
YoshuaNavaANYbotics Oct 28, 2020
60f7e75
Merge branch 'fix/grid_map_cv_test_build_issue' into 'master'
maximilianwulf Oct 29, 2020
6487412
Merge branch 'fix/grid_map_pcl_data_install' into 'master'
YoshuaNavaANYbotics Oct 30, 2020
dad3187
Merge branch 'feature/grid_map_pcl_maxmin_elevation' into 'master'
mgaertneratanybotics Nov 2, 2020
04c40c5
Merge branch 'feature/elevation_mapping_ground_truth_server' into 'ma…
YoshuaNavaANYbotics Nov 6, 2020
f60c50a
Merge branch 'fix/grid_map_pcl_depends_pcl' into 'master'
YoshuaNavaANYbotics Nov 10, 2020
8d0a3b4
Merge branch 'feature/elev_mapping_bench_callback_modes' into 'master'
mgaertneratanybotics Nov 11, 2020
ea0759a
Merge branch 'feature/grid_map_static_analysis' into 'master'
YoshuaNavaANYbotics Nov 18, 2020
8483492
Merge branch 'fix/median_fill_filter_wrong_border_height' into 'master'
YoshuaNavaANYbotics Nov 20, 2020
f2e8f16
Merge branch 'feature/optimize_grid_map_rviz_plugin' into 'master'
mgaertneratanybotics Nov 22, 2020
a104f41
Merge branch 'fix/grid_map_rviz_plugin_indices' into 'master'
mgaertneratanybotics Nov 25, 2020
73ea27f
Merge branch 'fix/grid_map_rviz_plugin_segfault_on_melodic' into 'mas…
mgaertneratanybotics Dec 1, 2020
27e651b
Merge branch 'feature/_extend_grid_map_threshold_filter' into 'master'
YoshuaNavaANYbotics Dec 3, 2020
191c4f0
Merge branch 'feature/_morphological_mask_in_median_fill_filter' into…
YoshuaNavaANYbotics Dec 9, 2020
25a9844
Merge branch 'fix/mock_filter_behaviour_if_print_name_not_set' into '…
mgaertneratanybotics Dec 10, 2020
49d3159
Merge branch 'fix/grid_map_jenkins_pipeline' into 'master'
mgaertneratanybotics Dec 10, 2020
b5d2b93
Merge branch 'fix/grid_map_jenkins_melodic' into 'master'
mgaertneratanybotics Dec 15, 2020
61972c8
Merge branch 'fix/visibility_cleanup' into 'master'
mgaertneratanybotics Dec 15, 2020
f1344bd
Merge branch 'fix/clip_points_to_map' into 'master'
maximilianwulf Dec 16, 2020
8536d55
Merge branch 'fix/update_readme' into 'master'
maximilianwulf Jan 4, 2021
b02aa92
Merge branch 'feature/grid-map/v1-6-4'
samuelba Jan 6, 2021
9cbb4eb
Merge branch 'github/grid_map/255' into 'master'
maximilianwulf Jan 8, 2021
381b30e
Merge branch 'feature/update_readme_grid_map' into 'master'
Jan 13, 2021
539f9db
Merge branch 'fix/perception_compiler_warnings' into 'master'
Feb 16, 2021
0c0724f
Merge branch 'fix/grid_map_cv_remove_compiler_warnings' into 'master'
Mar 30, 2021
9bf14a1
Merge branch 'fix/grid_map_visualization_remove_compiler_warnings' in…
Mar 31, 2021
6297da7
Merge branch 'fix/grid_map_sdf_remove_compiler_warnings' into 'master'
Apr 1, 2021
9f68a57
Merge branch 'fix/grid_map_filters_remove_compiler_warnings' into 'ma…
Apr 1, 2021
1cbbf46
Merge branch 'fix/grid_map_ros_remove_gcc_warnings' into 'master'
Apr 6, 2021
6ddff74
Merge branch 'fix/grid_map_core_remove_compiler_warnings' into 'master'
Apr 7, 2021
758b504
Merge branch 'fix/grid_map_demos_remove_compiler_warnings' into 'master'
Apr 7, 2021
792e083
Merge branch 'fix/change_install_grid_map' into 'master'
maximilianwulf Jun 1, 2021
ee5edb0
Merge branch 'github/grid_map/293' into 'master'
maximilianwulf Jun 1, 2021
d564ab0
Merge branch 'fix/grid-map-rviz-plugin/render-in-gui-thread' into 'ma…
samuelba Jul 22, 2021
b207fee
Merge branch 'fix/grid-map-rviz-plugin/reset' into 'master'
samuelba Jul 30, 2021
761e11b
Merge branch 'release-21.08' of git.anybotics.com:anybotics/anybotics
remod Aug 13, 2021
893a416
Merge branch 'release-21.10' of git.anybotics.com:anybotics/anybotics
remod Oct 12, 2021
26db24a
Merge branch 'anymal_research/rsl/feature/grid_map_vis' into 'master'
Nov 3, 2021
0e4b5a4
Merge branch 'fix/grid_map/increase_unit_test_value' into 'master'
maximilianwulf Nov 18, 2021
794909a
Merge branch 'github/grid_map/297' into 'master'
mgaertneratanybotics Nov 22, 2021
55c0085
Merge branch 'github/grid_map/327' into 'master'
maximilianwulf Nov 25, 2021
fb3bcd6
Merge branch 'fix/elevation_mapping_post_processor_for_scaffolding_st…
maximilianwulf Nov 26, 2021
c88a9e3
Merge remote-tracking branch 'origin/release-21.11'
pleemann Nov 26, 2021
32978d9
Merge branch 'anymal_research/rsl/fix/grid_map_pcl' into 'master'
maximilianwulf Nov 30, 2021
a2eb6b1
Merge branch 'feature/grid_map/update_maintainers' into 'master'
maximilianwulf Dec 3, 2021
b59cd8c
Merge branch 'feature/grid_map_filters_improve_template_definitions' …
mgaertneratanybotics Dec 21, 2021
ccc4ad6
Merge branch 'feature/documentation_on_grid_map_move' into 'master'
mgaertneratanybotics Jan 5, 2022
d6d4650
Merge remote-tracking branch 'origin/release-22.01'
domingoesteban Feb 2, 2022
6b9a948
Merge branch 'fix/grid_map/failing_costmap_rostest' into 'master'
maximilianwulf Feb 9, 2022
6ad3aff
Merge branch 'fix/threshold_obstacle_frame' into 'master'
Feb 16, 2022
ba52294
Merge branch 'feature/eigen_utils_/dependencies' into 'master'
mgaertneratanybotics Mar 24, 2022
c23dcde
Merge remote-tracking branch 'origin/feature/merge/release-22.04-into…
hwyss-anybotics Apr 13, 2022
2459bde
Merge branch 'github/grid_map/211' into 'master'
maximilianwulf May 6, 2022
a15f50c
Merge branch 'fix/grid_map_remove_unused_code' into 'master'
harmishhk May 16, 2022
2a937c0
Merge branch 'feature/anydrive_rsl' into 'master'
samuelba May 23, 2022
7dbe117
Merge branch 'release-22.05'
samuelba May 28, 2022
f4ccb5f
Merge branch 'fix/grid_map_filters/define_include_path' into 'master'
maximilianwulf Jun 2, 2022
b7293f5
Merge branch 'fix/grid_map_core/reduce_clang_warnings' into 'master'
mgaertneratanybotics Jun 3, 2022
91ba880
Merge branch 'anymal_research/rsl/feature/grid_map_sdf' into 'master'
maximilianwulf Jun 23, 2022
4249a9d
Merge branch 'fix/grid_map_core_version' into 'master'
fvina-anybotics Jun 27, 2022
52c10ef
Merge remote-tracking branch 'origin/release-22.07'
remod Jul 1, 2022
d6f0912
Merge branch 'fix/grid_map_core/reduce_even_more_clang_warnings' into…
mgaertneratanybotics Jul 11, 2022
bb636e6
Merge branch 'release-22.08'
samuelba Aug 13, 2022
fd4034b
Merge branch 'release-22.10' into master
YoshuaNava Oct 10, 2022
03f8676
Merge branch 'release-22.12' of git.anybotics.com:anybotics/anybotics
hogabrie Nov 25, 2022
c4b8776
Merge branch 'release-23.02' of git.anybotics.com:anybotics/anybotics
remod Jan 20, 2023
c6b6e6c
Merge branch 'fix/grid_map_rviz/visualization_toggle_on_startup' into…
mgaertneratanybotics Feb 1, 2023
515e3d8
Merge branch 'feature/grid_map_rviz/anybotics_color_map' into 'master'
mgaertneratanybotics Feb 23, 2023
9d0de96
Merge remote-tracking branch 'origin/release-23.04'
aravindev Mar 24, 2023
7406b98
Merge branch 'fix/grid_map_rviz_plugin_crash' into 'master'
fvina-anybotics Apr 19, 2023
678f691
Merge branch 'fix/grid_map_rviz_plugin/reset_behavior' into 'master'
mgaertneratanybotics Apr 19, 2023
80863e9
Merge branch 'release-23.05' of git.anybotics.com:anybotics/anybotics
FGiraldez May 12, 2023
38bc721
Merge branch 'release-23.07' of git.anybotics.com:anybotics/anybotics
hogabrie Jul 1, 2023
0b889ca
Merge branch 'release-23.09'
pleemann Aug 18, 2023
da3ee2e
Merge release-23.10 into master.
PrajishKumar Oct 6, 2023
2be3747
Merge branch 'release-23.10'
samuelba Oct 10, 2023
53340cd
Merge branch 'fix/perception_code_cpp17' into 'master'
rororov Nov 15, 2023
8be23b7
Merge branch 'release-23.12'
PrajishKumar Nov 24, 2023
5af6906
xMerge branch 'release-24.02' of git.anybotics.com:anybotics/anybotics
hogabrie Jan 19, 2024
4c34876
Merge branch 'release-24.04'
samuelba Apr 13, 2024
caa687b
Merge branch 'release-24.06'
mgaertneratanybotics May 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions grid_map_core/include/grid_map_core/gtest_eigen.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ namespace grid_map {
for(int c = 0; c < A.cols(); c++)
{
if (std::isnan(A(r,c))) {
ASSERT_TRUE(std::isnan(B(r,c)));
ASSERT_TRUE(std::isnan(B(r,c))) << message << "\nNaN check failed at (" << r << "," << c << ")\n"
<< "\nMatrix A:\n" << A << "\nand matrix B\n" << B;
} else {
ASSERT_EQ(A(r,c),B(r,c)) << message << "\nEquality comparison failed at (" << r << "," << c << ")\n"
<< "\nMatrix A:\n" << A << "\nand matrix B\n" << B;
Expand All @@ -63,7 +64,8 @@ namespace grid_map {
for(int c = 0; c < A.cols(); c++)
{
if (std::isnan(A(r,c))) {
ASSERT_TRUE(std::isnan(B(r,c)));
ASSERT_TRUE(std::isnan(B(r,c))) << message << "\nNaN check failed at (" << r << "," << c << ")\n"
<< "\nMatrix A:\n" << A << "\nand matrix B\n" << B;
} else {
ASSERT_NEAR(A(r,c),B(r,c),tolerance) << message << "\nTolerance comparison failed at (" << r << "," << c << ")\n"
<< "\nMatrix A:\n" << A << "\nand matrix B\n" << B;
Expand All @@ -83,7 +85,8 @@ namespace grid_map {
for(int c = 0; c < A.cols(); c++)
{
if (std::isnan(A(r,c))) {
EXPECT_TRUE(std::isnan(B(r,c)));
EXPECT_TRUE(std::isnan(B(r,c))) << message << "\nNaN check failed at (" << r << "," << c << ")\n"
<< "\nMatrix A:\n" << A << "\nand matrix B\n" << B;
} else {
EXPECT_NEAR(A(r,c),B(r,c),tolerance) << message << "\nTolerance comparison failed at (" << r << "," << c << ")\n"
<< "\nMatrix A:\n" << A << "\nand matrix B\n" << B;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ class LineIterator
Index end_;

//! Current cell number.
unsigned int iCell_;
unsigned int iCell_ = 0;

//! Number of cells in the line.
unsigned int nCells_;
unsigned int nCells_ = 0;

//! Helper variables for Bresenham Line Drawing algorithm.
Size increment1_, increment2_;
Expand Down
15 changes: 8 additions & 7 deletions grid_map_cv/include/grid_map_cv/GridMapCvConverter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,18 +100,19 @@ class GridMapCvConverter
grid_map::Matrix& data = gridMap[layer];

for (GridMapIterator iterator(gridMap); !iterator.isPastEnd(); ++iterator) {
const Index index(*iterator);
const grid_map::Index gridMapIndex = *iterator;
const grid_map::Index imageIndex = iterator.getUnwrappedIndex();

// Check for alpha layer.
if (hasAlpha) {
const Type_ alpha = image.at<cv::Vec<Type_, NChannels_>>(index(0), index(1))[NChannels_ - 1];
const Type_ alpha = image.at<cv::Vec<Type_, NChannels_>>(imageIndex(0), imageIndex(1))[NChannels_ - 1];
if (alpha < alphaTreshold) continue;
}

// Compute value.
const Type_ imageValue = imageMono.at<Type_>(index(0), index(1));
const Type_ imageValue = imageMono.at<Type_>(imageIndex(0), imageIndex(1));
const float mapValue = lowerValue + mapValueDifference * ((float) imageValue / maxImageValue);
data(index(0), index(1)) = mapValue;
data(gridMapIndex(0), gridMapIndex(1)) = mapValue;
}

return true;
Expand Down Expand Up @@ -225,9 +226,9 @@ class GridMapCvConverter

for (GridMapIterator iterator(map); !iterator.isPastEnd(); ++iterator) {
const Index index(*iterator);
if (std::isfinite(data(index(0), index(1)))) {
const float& value = data(index(0), index(1));
const Type_ imageValue = (Type_) (((value - lowerValue) / (upperValue - lowerValue)) * (float) imageMax);
const float& value = data(index(0), index(1));
if (std::isfinite(value)) {
const Type_ imageValue = (Type_)(((value - lowerValue) / (upperValue - lowerValue)) * (float)imageMax);
const Index imageIndex(iterator.getUnwrappedIndex());
unsigned int channel = 0;
image.at<cv::Vec<Type_, NChannels_>>(imageIndex(0), imageIndex(1))[channel] = imageValue;
Expand Down
37 changes: 29 additions & 8 deletions grid_map_cv/test/GridMapCvTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,30 @@
using namespace std;
using namespace grid_map;

void replaceNan(Matrix& m, const double newValue)
{
for(int r = 0; r < m.rows(); r++)
{
for(int c = 0; c < m.cols(); c++)
{
if (std::isnan(m(r,c)))
{
m(r,c) = newValue;
}
}
}
}

TEST(ImageConversion, roundTrip8UC3)
{
// Create grid map.
GridMap mapIn({"layer"});
mapIn.setGeometry(grid_map::Length(2.0, 1.0), 0.01);
mapIn["layer"].setRandom();
mapIn.setGeometry(grid_map::Length(2.0, 1.0), 0.1);
mapIn["layer"].setRandom(); // Sets the layer to random values in [-1.0, 1.0].
mapIn.move(Position(0.5, -0.2));
const float minValue = -1.0;
const float maxValue = 1.0;
replaceNan(mapIn.get("layer"), minValue); // When we move `mapIn`, new areas are filled with NaN. As `toImage` does not support NaN, we replace NaN with `minValue` instead.

// Convert to image.
cv::Mat image;
Expand All @@ -50,10 +66,11 @@ TEST(ImageConversion, roundTrip8UC4)
// Create grid map.
GridMap mapIn({"layer"});
mapIn.setGeometry(grid_map::Length(2.0, 1.0), 0.1);
mapIn["layer"].setRandom();
mapIn["layer"](1, 2) = NAN; // To check for transparnecy/nan handling.
mapIn["layer"].setRandom(); // Sets the layer to random values in [-1.0, 1.0].
mapIn.move(Position(0.5, -0.2));
const float minValue = -1.0;
const float maxValue = 1.0;
replaceNan(mapIn.get("layer"), minValue); // When we move `mapIn`, new areas are filled with NaN. As `toImage` does not support NaN, we replace NaN with `minValue` instead.

// Convert to image.
cv::Mat image;
Expand All @@ -75,10 +92,12 @@ TEST(ImageConversion, roundTrip16UC1)
{
// Create grid map.
GridMap mapIn({"layer"});
mapIn.setGeometry(grid_map::Length(2.0, 1.0), 0.01);
mapIn["layer"].setRandom();
mapIn.setGeometry(grid_map::Length(2.0, 1.0), 0.1);
mapIn["layer"].setRandom(); // Sets the layer to random values in [-1.0, 1.0].
mapIn.move(Position(0.5, -0.2));
const float minValue = -1.0;
const float maxValue = 1.0;
replaceNan(mapIn.get("layer"), minValue); // When we move `mapIn`, new areas are filled with NaN. As `toImage` does not support NaN, we replace NaN with `minValue` instead.

// Convert to image.
cv::Mat image;
Expand All @@ -100,10 +119,12 @@ TEST(ImageConversion, roundTrip32FC1)
{
// Create grid map.
GridMap mapIn({"layer"});
mapIn.setGeometry(grid_map::Length(2.0, 1.0), 0.01);
mapIn["layer"].setRandom();
mapIn.setGeometry(grid_map::Length(2.0, 1.0), 0.1);
mapIn["layer"].setRandom(); // Sets the layer to random values in [-1.0, 1.0].
mapIn.move(Position(0.5, -0.2));
const float minValue = -1.0;
const float maxValue = 1.0;
replaceNan(mapIn.get("layer"), minValue); // When we move `mapIn`, new areas are filled with NaN. As `toImage` does not support NaN, we replace NaN with `minValue` instead.

// Convert to image.
cv::Mat image;
Expand Down