MCPcopy Create free account
hub / github.com/AutonomousFieldRoboticsLab/SVIn / get

Method get

pose_graph/ThirdParty/DUtils/Random.cpp:67–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65// ---------------------------------------------------------------------------
66
67int DUtils::Random::UnrepeatedRandomizer::get() {
68 if (empty()) createValues();
69
70 DUtils::Random::SeedRandOnce();
71
72 int k = DUtils::Random::RandomInt(0, m_values.size() - 1);
73 int ret = m_values[k];
74 m_values[k] = m_values.back();
75 m_values.pop_back();
76
77 return ret;
78}
79
80// ---------------------------------------------------------------------------
81

Callers 15

addResidualBlockMethod · 0.80
addResidualBlockMethod · 0.80
computeDeltaChiMethod · 0.80
addObservationMethod · 0.80
addRelocObservationMethod · 0.80
ParameterBlockInfoMethod · 0.80
solveMethod · 0.80
computeCovarianceMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected