Skip to content

Commit

Permalink
ElevationMap from XML: Ensure trimmed input string in kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Dec 10, 2024
1 parent 8d3a6ec commit 385ebf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/simulator/src/WorldElements/ElevationMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ void ElevationMap::loadConfigFrom(const rapidxml::xml_node<char>* root)
if (!convolution_kernel_str.empty())
{
mrpt::math::CMatrixDouble kernel;
std::stringstream ss(convolution_kernel_str);
std::stringstream ss(mvsim::trim(convolution_kernel_str));
try
{
kernel.loadFromTextFile(ss);
Expand Down

0 comments on commit 385ebf9

Please sign in to comment.