use std::map<Key, uint32_t> for Key-Dim maps
parent
fbf155d91e
commit
57311281fb
|
@ -270,7 +270,7 @@ class CameraSet : public std::vector<CAMERA, Eigen::aligned_allocator<CAMERA>> {
|
||||||
|
|
||||||
// Get map from key to location in the new augmented Hessian matrix (the
|
// Get map from key to location in the new augmented Hessian matrix (the
|
||||||
// one including only unique keys).
|
// one including only unique keys).
|
||||||
std::map<Key, size_t> keyToSlotMap;
|
std::map<Key, uint32_t> keyToSlotMap;
|
||||||
for (size_t k = 0; k < nrUniqueKeys; k++) {
|
for (size_t k = 0; k < nrUniqueKeys; k++) {
|
||||||
keyToSlotMap[hessianKeys[k]] = k;
|
keyToSlotMap[hessianKeys[k]] = k;
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@ namespace gtsam {
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
/// Mapping between variable's key and its corresponding dimensionality
|
/// Mapping between variable's key and its corresponding dimensionality
|
||||||
using KeyDimMap = std::map<Key, size_t>;
|
using KeyDimMap = std::map<Key, uint32_t>;
|
||||||
/*
|
/*
|
||||||
* Iterates through every factor in a linear graph and generates a
|
* Iterates through every factor in a linear graph and generates a
|
||||||
* mapping between every factor key and it's corresponding dimensionality.
|
* mapping between every factor key and it's corresponding dimensionality.
|
||||||
|
|
Loading…
Reference in New Issue