Files
rtabmap/corelib/test/test_parameters.cpp
T
matlabbe dca24fc11f Imu motion predictor (#1791)
* Imu motion predictor

* simplified parameters

* refactored odom's imu init orientation

* fixing sign issue with x86-64-v3

* fixing M_PI not defined in tests

* Added auto gravity estimation mode

* Fixing crash on windows when uFormat() is to long
2026-10-11 13:59:27 -07:00

21 lines
858 B
C++

#include <gtest/gtest.h>
#include <rtabmap/core/Parameters.h>
using rtabmap::Parameters;
using rtabmap::ParametersMap;
TEST(Parameters, descriptions_are_shorter_than_1024_characters)
{
// Long descriptions don't fit in the GUI's tooltips nor in a ROS parameter listing:
// keep them short, the details belong in the documentation. 1024 was also the size
// beyond which uFormat(), which formats most of them, aborted on Windows.
const ParametersMap & parameters = Parameters::getDefaultParameters();
ASSERT_FALSE(parameters.empty());
for(ParametersMap::const_iterator iter = parameters.begin(); iter != parameters.end(); ++iter)
{
const std::string description = Parameters::getDescription(iter->first);
EXPECT_LT(description.size(), 1024u) << iter->first << " has a description of "
<< description.size() << " characters: shorten it";
}
}