Skip to content

Commit

Permalink
FIX: Consistent insertPointFast()
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Jun 20, 2024
1 parent 5f1578d commit ca3f28d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions doc/source/doxygen-docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- mrpt::ros1bridge::toROS() conversion from `PointCloud2` to mrpt::maps::CPointsMapXYZIRT: recognize timestamp field names `"t"` and `"timestamp"`, and support conversion from uint32_t timestamps as nanoseconds.
- BUG FIXES:
- mrpt::vision::CFeatureTracker_KL: Parameter ``LK_epsilon`` was rounded to integer.
- mrpt::maps::CPointsMapXYZI::insertPointFast() did also append to the intensity channel, which is inconsistent behavior with the other map classes.

# Version 2.13.1: Released June 5th, 2024
- BUG FIXES:
Expand Down
4 changes: 0 additions & 4 deletions libs/maps/src/maps/CColouredPointsMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,6 @@ void CColouredPointsMap::insertPointFast(float x, float y, float z)
m_x.push_back(x);
m_y.push_back(y);
m_z.push_back(z);
m_color_R.push_back(1);
m_color_G.push_back(1);
m_color_B.push_back(1);

// mark_as_modified(); -> Fast
}

Expand Down
1 change: 0 additions & 1 deletion libs/maps/src/maps/CPointsMapXYZI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ void CPointsMapXYZI::insertPointFast(float x, float y, float z)
m_x.push_back(x);
m_y.push_back(y);
m_z.push_back(z);
m_intensity.push_back(0);
// mark_as_modified(); Don't, this is the "XXXFast()" method
}

Expand Down

0 comments on commit ca3f28d

Please sign in to comment.