Kimera-Distributed icon indicating copy to clipboard operation
Kimera-Distributed copied to clipboard

`CHECK_NOTNULL` brings unexpected errors

Open LimHyungTae opened this issue 6 months ago • 0 comments

While building Kimera-Multi, I confront the following error message when building Kimera-Distributed:

Errors     << kimera_distributed:make /home/shapelim/kimera_multi_ws/logs/kimera_distributed/build.make.005.log                                               
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/SubmapAtlas.cpp:6:
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/SubmapAtlas.cpp: In member function ‘std::shared_ptr<kimera_distributed::Keyframe> kimera_distributed::SubmapAtlas::getLatestKeyframe()’:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: error: no matching function for call to ‘CheckNotNull(const char [74], int, const char [44], std::shared_ptr<kimera_distributed::Keyframe>)’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/SubmapAtlas.cpp:88:12: note: in expansion of macro ‘CHECK_NOTNULL’
   88 |     return CHECK_NOTNULL(getKeyframe(keyframe_id));
      |            ^~~~~~~~~~~~~
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/SubmapAtlas.cpp:6:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note: candidate: ‘template<class T> T* google::CheckNotNull(const char*, int, const char*, T*)’
 1286 | T* CheckNotNull(const char *file, int line, const char *names, T* t) {
      |    ^~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note:   template argument deduction/substitution failed:
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/SubmapAtlas.cpp:6:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: note:   mismatched types ‘T*’ and ‘std::shared_ptr<kimera_distributed::Keyframe>’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/SubmapAtlas.cpp:88:12: note: in expansion of macro ‘CHECK_NOTNULL’
   88 |     return CHECK_NOTNULL(getKeyframe(keyframe_id));
      |            ^~~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/SubmapAtlas.cpp: In member function ‘std::shared_ptr<kimera_distributed::Submap> kimera_distributed::SubmapAtlas::createSubmap(int, const gtsam::Pose3&, const uint64_t&)’:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: error: no matching function for call to ‘CheckNotNull(const char [74], int, const char [44], std::shared_ptr<kimera_distributed::Submap>)’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/SubmapAtlas.cpp:104:24: note: in expansion of macro ‘CHECK_NOTNULL’
  104 |     auto prev_submap = CHECK_NOTNULL(getSubmap(submap_id - 1));
      |                        ^~~~~~~~~~~~~
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/SubmapAtlas.cpp:6:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note: candidate: ‘template<class T> T* google::CheckNotNull(const char*, int, const char*, T*)’
 1286 | T* CheckNotNull(const char *file, int line, const char *names, T* t) {
      |    ^~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note:   template argument deduction/substitution failed:
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/SubmapAtlas.cpp:6:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: note:   mismatched types ‘T*’ and ‘std::shared_ptr<kimera_distributed::Submap>’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/SubmapAtlas.cpp:104:24: note: in expansion of macro ‘CHECK_NOTNULL’
  104 |     auto prev_submap = CHECK_NOTNULL(getSubmap(submap_id - 1));
      |                        ^~~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/SubmapAtlas.cpp: In member function ‘std::shared_ptr<kimera_distributed::Submap> kimera_distributed::SubmapAtlas::getLatestSubmap()’:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: error: no matching function for call to ‘CheckNotNull(const char [74], int, const char [40], std::shared_ptr<kimera_distributed::Submap>)’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/SubmapAtlas.cpp:134:12: note: in expansion of macro ‘CHECK_NOTNULL’
  134 |     return CHECK_NOTNULL(getSubmap(submap_id));
      |            ^~~~~~~~~~~~~
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/SubmapAtlas.cpp:6:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note: candidate: ‘template<class T> T* google::CheckNotNull(const char*, int, const char*, T*)’
 1286 | T* CheckNotNull(const char *file, int line, const char *names, T* t) {
      |    ^~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note:   template argument deduction/substitution failed:
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/SubmapAtlas.cpp:6:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: note:   mismatched types ‘T*’ and ‘std::shared_ptr<kimera_distributed::Submap>’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/SubmapAtlas.cpp:134:12: note: in expansion of macro ‘CHECK_NOTNULL’
  134 |     return CHECK_NOTNULL(getSubmap(submap_id));
      |            ^~~~~~~~~~~~~
make[2]: *** [CMakeFiles/kimera_distributed.dir/build.make:90: CMakeFiles/kimera_distributed.dir/src/SubmapAtlas.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /opt/ros/noetic/include/gtsam/nonlinear/Values.h:571,
                 from /opt/ros/noetic/include/gtsam/nonlinear/NonlinearFactor.h:24,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/include/kimera_distributed/utils.h:12,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/include/kimera_distributed/DistributedLoopClosure.h:29,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/include/kimera_distributed/DistributedLoopClosureRos.h:20,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosureRos.cpp:7:
/opt/ros/noetic/include/gtsam/nonlinear/Values-inl.h: In member function ‘gtsam::Values::Filtered<gtsam::Value> gtsam::Values::filter(const std::function<bool(long unsigned int)>&)’:
/opt/ros/noetic/include/gtsam/nonlinear/Values-inl.h:253:35: warning: ‘gtsam::Values::Filtered<ValueType> gtsam::Values::filter(const std::function<bool(long unsigned int)>&) [with ValueType = gtsam::Value]’ is deprecated [-Wdeprecated-declarations]
  253 |     return filter<Value>(filterFcn);
      |                                   ^
In file included from /opt/ros/noetic/include/gtsam/nonlinear/NonlinearFactor.h:24,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/include/kimera_distributed/utils.h:12,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/include/kimera_distributed/DistributedLoopClosure.h:29,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/include/kimera_distributed/DistributedLoopClosureRos.h:20,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosureRos.cpp:7:
/opt/ros/noetic/include/gtsam/nonlinear/Values.h:421:5: note: declared here
  421 |     filter(const std::function<bool(Key)>& filterFcn = &_truePredicate<Key>);
      |     ^~~~~~
In file included from /opt/ros/noetic/include/gtsam/nonlinear/Values.h:571,
                 from /opt/ros/noetic/include/gtsam/nonlinear/NonlinearFactor.h:24,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/include/kimera_distributed/utils.h:12,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/include/kimera_distributed/DistributedLoopClosure.h:29,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/include/kimera_distributed/DistributedLoopClosureRos.h:20,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosureRos.cpp:7:
/opt/ros/noetic/include/gtsam/nonlinear/Values-inl.h: In member function ‘gtsam::Values::ConstFiltered<gtsam::Value> gtsam::Values::filter(const std::function<bool(long unsigned int)>&) const’:
/opt/ros/noetic/include/gtsam/nonlinear/Values-inl.h:265:35: warning: ‘gtsam::Values::ConstFiltered<ValueType> gtsam::Values::filter(const std::function<bool(long unsigned int)>&) const [with ValueType = gtsam::Value]’ is deprecated [-Wdeprecated-declarations]
  265 |     return filter<Value>(filterFcn);
      |                                   ^
In file included from /opt/ros/noetic/include/gtsam/nonlinear/NonlinearFactor.h:24,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/include/kimera_distributed/utils.h:12,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/include/kimera_distributed/DistributedLoopClosure.h:29,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/include/kimera_distributed/DistributedLoopClosureRos.h:20,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosureRos.cpp:7:
/opt/ros/noetic/include/gtsam/nonlinear/Values.h:429:47: note: declared here
  429 |     ConstFiltered<ValueType> GTSAM_DEPRECATED filter(
      |                                               ^~~~~~
In file included from /opt/ros/noetic/include/gtsam/nonlinear/Values.h:571,
                 from /opt/ros/noetic/include/gtsam/nonlinear/NonlinearFactor.h:24,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/include/kimera_distributed/utils.h:12,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/include/kimera_distributed/DistributedLoopClosure.h:29,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:7:
/opt/ros/noetic/include/gtsam/nonlinear/Values-inl.h: In member function ‘gtsam::Values::Filtered<gtsam::Value> gtsam::Values::filter(const std::function<bool(long unsigned int)>&)’:
/opt/ros/noetic/include/gtsam/nonlinear/Values-inl.h:253:35: warning: ‘gtsam::Values::Filtered<ValueType> gtsam::Values::filter(const std::function<bool(long unsigned int)>&) [with ValueType = gtsam::Value]’ is deprecated [-Wdeprecated-declarations]
  253 |     return filter<Value>(filterFcn);
      |                                   ^
In file included from /opt/ros/noetic/include/gtsam/nonlinear/NonlinearFactor.h:24,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/include/kimera_distributed/utils.h:12,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/include/kimera_distributed/DistributedLoopClosure.h:29,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:7:
/opt/ros/noetic/include/gtsam/nonlinear/Values.h:421:5: note: declared here
  421 |     filter(const std::function<bool(Key)>& filterFcn = &_truePredicate<Key>);
      |     ^~~~~~
In file included from /opt/ros/noetic/include/gtsam/nonlinear/Values.h:571,
                 from /opt/ros/noetic/include/gtsam/nonlinear/NonlinearFactor.h:24,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/include/kimera_distributed/utils.h:12,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/include/kimera_distributed/DistributedLoopClosure.h:29,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:7:
/opt/ros/noetic/include/gtsam/nonlinear/Values-inl.h: In member function ‘gtsam::Values::ConstFiltered<gtsam::Value> gtsam::Values::filter(const std::function<bool(long unsigned int)>&) const’:
/opt/ros/noetic/include/gtsam/nonlinear/Values-inl.h:265:35: warning: ‘gtsam::Values::ConstFiltered<ValueType> gtsam::Values::filter(const std::function<bool(long unsigned int)>&) const [with ValueType = gtsam::Value]’ is deprecated [-Wdeprecated-declarations]
  265 |     return filter<Value>(filterFcn);
      |                                   ^
In file included from /opt/ros/noetic/include/gtsam/nonlinear/NonlinearFactor.h:24,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/include/kimera_distributed/utils.h:12,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/include/kimera_distributed/DistributedLoopClosure.h:29,
                 from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:7:
/opt/ros/noetic/include/gtsam/nonlinear/Values.h:429:47: note: declared here
  429 |     ConstFiltered<ValueType> GTSAM_DEPRECATED filter(
      |                                               ^~~~~~
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp: In member function ‘bool kimera_distributed::DistributedLoopClosure::processLocalPoseGraph(const ConstPtr&)’:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: error: no matching function for call to ‘CheckNotNull(const char [85], int, const char [45], std::shared_ptr<kimera_distributed::Submap>)’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:221:31: note: in expansion of macro ‘CHECK_NOTNULL’
  221 |       const auto submap_src = CHECK_NOTNULL(keyframe_src->getSubmap());
      |                               ^~~~~~~~~~~~~
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note: candidate: ‘template<class T> T* google::CheckNotNull(const char*, int, const char*, T*)’
 1286 | T* CheckNotNull(const char *file, int line, const char *names, T* t) {
      |    ^~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note:   template argument deduction/substitution failed:
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: note:   mismatched types ‘T*’ and ‘std::shared_ptr<kimera_distributed::Submap>’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:221:31: note: in expansion of macro ‘CHECK_NOTNULL’
  221 |       const auto submap_src = CHECK_NOTNULL(keyframe_src->getSubmap());
      |                               ^~~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: error: no matching function for call to ‘CheckNotNull(const char [85], int, const char [45], std::shared_ptr<kimera_distributed::Submap>)’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:222:31: note: in expansion of macro ‘CHECK_NOTNULL’
  222 |       const auto submap_dst = CHECK_NOTNULL(keyframe_dst->getSubmap());
      |                               ^~~~~~~~~~~~~
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note: candidate: ‘template<class T> T* google::CheckNotNull(const char*, int, const char*, T*)’
 1286 | T* CheckNotNull(const char *file, int line, const char *names, T* t) {
      |    ^~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note:   template argument deduction/substitution failed:
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: note:   mismatched types ‘T*’ and ‘std::shared_ptr<kimera_distributed::Submap>’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:222:31: note: in expansion of macro ‘CHECK_NOTNULL’
  222 |       const auto submap_dst = CHECK_NOTNULL(keyframe_dst->getSubmap());
      |                               ^~~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp: In member function ‘void kimera_distributed::DistributedLoopClosure::processOptimizedPath(const PathConstPtr&)’:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: error: no matching function for call to ‘CheckNotNull(const char [85], int, const char [55], std::shared_ptr<kimera_distributed::Submap>)’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:248:25: note: in expansion of macro ‘CHECK_NOTNULL’
  248 |     const auto submap = CHECK_NOTNULL(submap_atlas_->getSubmap(submap_id));
      |                         ^~~~~~~~~~~~~
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note: candidate: ‘template<class T> T* google::CheckNotNull(const char*, int, const char*, T*)’
 1286 | T* CheckNotNull(const char *file, int line, const char *names, T* t) {
      |    ^~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note:   template argument deduction/substitution failed:
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: note:   mismatched types ‘T*’ and ‘std::shared_ptr<kimera_distributed::Submap>’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:248:25: note: in expansion of macro ‘CHECK_NOTNULL’
  248 |     const auto submap = CHECK_NOTNULL(submap_atlas_->getSubmap(submap_id));
      |                         ^~~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: error: no matching function for call to ‘CheckNotNull(const char [85], int, const char [55], std::shared_ptr<kimera_distributed::Submap>)’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:254:30: note: in expansion of macro ‘CHECK_NOTNULL’
  254 |     const auto submap_curr = CHECK_NOTNULL(submap_atlas_->getSubmap(submap_id));
      |                              ^~~~~~~~~~~~~
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note: candidate: ‘template<class T> T* google::CheckNotNull(const char*, int, const char*, T*)’
 1286 | T* CheckNotNull(const char *file, int line, const char *names, T* t) {
      |    ^~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note:   template argument deduction/substitution failed:
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: note:   mismatched types ‘T*’ and ‘std::shared_ptr<kimera_distributed::Submap>’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:254:30: note: in expansion of macro ‘CHECK_NOTNULL’
  254 |     const auto submap_curr = CHECK_NOTNULL(submap_atlas_->getSubmap(submap_id));
      |                              ^~~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: error: no matching function for call to ‘CheckNotNull(const char [85], int, const char [59], std::shared_ptr<kimera_distributed::Submap>)’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:255:30: note: in expansion of macro ‘CHECK_NOTNULL’
  255 |     const auto submap_prev = CHECK_NOTNULL(submap_atlas_->getSubmap(submap_id - 1));
      |                              ^~~~~~~~~~~~~
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note: candidate: ‘template<class T> T* google::CheckNotNull(const char*, int, const char*, T*)’
 1286 | T* CheckNotNull(const char *file, int line, const char *names, T* t) {
      |    ^~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note:   template argument deduction/substitution failed:
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: note:   mismatched types ‘T*’ and ‘std::shared_ptr<kimera_distributed::Submap>’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:255:30: note: in expansion of macro ‘CHECK_NOTNULL’
  255 |     const auto submap_prev = CHECK_NOTNULL(submap_atlas_->getSubmap(submap_id - 1));
      |                              ^~~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp: In member function ‘void kimera_distributed::DistributedLoopClosure::computePosesInWorldFrame(gtsam::Values::shared_ptr) const’:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: error: no matching function for call to ‘CheckNotNull(const char [85], int, const char [55], std::shared_ptr<kimera_distributed::Submap>)’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:273:25: note: in expansion of macro ‘CHECK_NOTNULL’
  273 |     const auto submap = CHECK_NOTNULL(submap_atlas_->getSubmap(submap_id));
      |                         ^~~~~~~~~~~~~
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note: candidate: ‘template<class T> T* google::CheckNotNull(const char*, int, const char*, T*)’
 1286 | T* CheckNotNull(const char *file, int line, const char *names, T* t) {
      |    ^~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note:   template argument deduction/substitution failed:
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: note:   mismatched types ‘T*’ and ‘std::shared_ptr<kimera_distributed::Submap>’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:273:25: note: in expansion of macro ‘CHECK_NOTNULL’
  273 |     const auto submap = CHECK_NOTNULL(submap_atlas_->getSubmap(submap_id));
      |                         ^~~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp: In member function ‘void kimera_distributed::DistributedLoopClosure::saveSubmapAtlas(const string&) const’:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: error: no matching function for call to ‘CheckNotNull(const char [85], int, const char [55], std::shared_ptr<kimera_distributed::Submap>)’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:326:25: note: in expansion of macro ‘CHECK_NOTNULL’
  326 |     const auto submap = CHECK_NOTNULL(submap_atlas_->getSubmap(submap_id));
      |                         ^~~~~~~~~~~~~
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note: candidate: ‘template<class T> T* google::CheckNotNull(const char*, int, const char*, T*)’
 1286 | T* CheckNotNull(const char *file, int line, const char *names, T* t) {
      |    ^~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note:   template argument deduction/substitution failed:
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: note:   mismatched types ‘T*’ and ‘std::shared_ptr<kimera_distributed::Submap>’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:326:25: note: in expansion of macro ‘CHECK_NOTNULL’
  326 |     const auto submap = CHECK_NOTNULL(submap_atlas_->getSubmap(submap_id));
      |                         ^~~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: error: no matching function for call to ‘CheckNotNull(const char [85], int, const char [55], std::shared_ptr<kimera_distributed::Submap>)’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:358:25: note: in expansion of macro ‘CHECK_NOTNULL’
  358 |     const auto submap = CHECK_NOTNULL(submap_atlas_->getSubmap(submap_id));
      |                         ^~~~~~~~~~~~~
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note: candidate: ‘template<class T> T* google::CheckNotNull(const char*, int, const char*, T*)’
 1286 | T* CheckNotNull(const char *file, int line, const char *names, T* t) {
      |    ^~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note:   template argument deduction/substitution failed:
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: note:   mismatched types ‘T*’ and ‘std::shared_ptr<kimera_distributed::Submap>’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:358:25: note: in expansion of macro ‘CHECK_NOTNULL’
  358 |     const auto submap = CHECK_NOTNULL(submap_atlas_->getSubmap(submap_id));
      |                         ^~~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp: In member function ‘pose_graph_tools_msgs::PoseGraph kimera_distributed::DistributedLoopClosure::getSubmapPoseGraph(bool)’:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: error: no matching function for call to ‘CheckNotNull(const char [85], int, const char [55], std::shared_ptr<kimera_distributed::Submap>)’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:795:29: note: in expansion of macro ‘CHECK_NOTNULL’
  795 |     const auto submap_src = CHECK_NOTNULL(submap_atlas_->getSubmap(submap_id));
      |                             ^~~~~~~~~~~~~
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note: candidate: ‘template<class T> T* google::CheckNotNull(const char*, int, const char*, T*)’
 1286 | T* CheckNotNull(const char *file, int line, const char *names, T* t) {
      |    ^~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note:   template argument deduction/substitution failed:
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: note:   mismatched types ‘T*’ and ‘std::shared_ptr<kimera_distributed::Submap>’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:795:29: note: in expansion of macro ‘CHECK_NOTNULL’
  795 |     const auto submap_src = CHECK_NOTNULL(submap_atlas_->getSubmap(submap_id));
      |                             ^~~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: error: no matching function for call to ‘CheckNotNull(const char [85], int, const char [59], std::shared_ptr<kimera_distributed::Submap>)’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:796:29: note: in expansion of macro ‘CHECK_NOTNULL’
  796 |     const auto submap_dst = CHECK_NOTNULL(submap_atlas_->getSubmap(submap_id + 1));
      |                             ^~~~~~~~~~~~~
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note: candidate: ‘template<class T> T* google::CheckNotNull(const char*, int, const char*, T*)’
 1286 | T* CheckNotNull(const char *file, int line, const char *names, T* t) {
      |    ^~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note:   template argument deduction/substitution failed:
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: note:   mismatched types ‘T*’ and ‘std::shared_ptr<kimera_distributed::Submap>’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:796:29: note: in expansion of macro ‘CHECK_NOTNULL’
  796 |     const auto submap_dst = CHECK_NOTNULL(submap_atlas_->getSubmap(submap_id + 1));
      |                             ^~~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: error: no matching function for call to ‘CheckNotNull(const char [85], int, const char [55], std::shared_ptr<kimera_distributed::Submap>)’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:816:25: note: in expansion of macro ‘CHECK_NOTNULL’
  816 |     const auto submap = CHECK_NOTNULL(submap_atlas_->getSubmap(submap_id));
      |                         ^~~~~~~~~~~~~
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note: candidate: ‘template<class T> T* google::CheckNotNull(const char*, int, const char*, T*)’
 1286 | T* CheckNotNull(const char *file, int line, const char *names, T* t) {
      |    ^~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note:   template argument deduction/substitution failed:
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: note:   mismatched types ‘T*’ and ‘std::shared_ptr<kimera_distributed::Submap>’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:816:25: note: in expansion of macro ‘CHECK_NOTNULL’
  816 |     const auto submap = CHECK_NOTNULL(submap_atlas_->getSubmap(submap_id));
      |                         ^~~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp: In member function ‘void kimera_distributed::DistributedLoopClosure::processInternalVLC(const VLCFramesConstPtr&)’:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: error: no matching function for call to ‘CheckNotNull(const char [85], int, const char [41], std::shared_ptr<kimera_distributed::Submap>)’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:850:24: note: in expansion of macro ‘CHECK_NOTNULL’
  850 |     frame.submap_id_ = CHECK_NOTNULL(keyframe->getSubmap())->id();
      |                        ^~~~~~~~~~~~~
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note: candidate: ‘template<class T> T* google::CheckNotNull(const char*, int, const char*, T*)’
 1286 | T* CheckNotNull(const char *file, int line, const char *names, T* t) {
      |    ^~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note:   template argument deduction/substitution failed:
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: note:   mismatched types ‘T*’ and ‘std::shared_ptr<kimera_distributed::Submap>’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:850:24: note: in expansion of macro ‘CHECK_NOTNULL’
  850 |     frame.submap_id_ = CHECK_NOTNULL(keyframe->getSubmap())->id();
      |                        ^~~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp: In member function ‘gtsam::Pose3 kimera_distributed::DistributedLoopClosure::getOdomInWorldFrame() const’:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: error: no matching function for call to ‘CheckNotNull(const char [85], int, const char [26], const std::shared_ptr<kimera_distributed::Submap>&)’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:902:5: note: in expansion of macro ‘CHECK_NOTNULL’
  902 |     CHECK_NOTNULL(submap);
      |     ^~~~~~~~~~~~~
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note: candidate: ‘template<class T> T* google::CheckNotNull(const char*, int, const char*, T*)’
 1286 | T* CheckNotNull(const char *file, int line, const char *names, T* t) {
      |    ^~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note:   template argument deduction/substitution failed:
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: note:   mismatched types ‘T*’ and ‘std::shared_ptr<kimera_distributed::Submap>’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:902:5: note: in expansion of macro ‘CHECK_NOTNULL’
  902 |     CHECK_NOTNULL(submap);
      |     ^~~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp: In member function ‘gtsam::Pose3 kimera_distributed::DistributedLoopClosure::getLatestKFInWorldFrame() const’:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: error: no matching function for call to ‘CheckNotNull(const char [85], int, const char [26], const std::shared_ptr<kimera_distributed::Submap>&)’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:917:5: note: in expansion of macro ‘CHECK_NOTNULL’
  917 |     CHECK_NOTNULL(submap);
      |     ^~~~~~~~~~~~~
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note: candidate: ‘template<class T> T* google::CheckNotNull(const char*, int, const char*, T*)’
 1286 | T* CheckNotNull(const char *file, int line, const char *names, T* t) {
      |    ^~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note:   template argument deduction/substitution failed:
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:10:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: note:   mismatched types ‘T*’ and ‘std::shared_ptr<kimera_distributed::Submap>’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosure.cpp:917:5: note: in expansion of macro ‘CHECK_NOTNULL’
  917 |     CHECK_NOTNULL(submap);
      |     ^~~~~~~~~~~~~
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosureRos.cpp:11:
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosureRos.cpp: In member function ‘bool kimera_distributed::DistributedLoopClosureRos::requestVLCFrameService(const RobotPoseIdSet&)’:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: error: no matching function for call to ‘CheckNotNull(const char [88], int, const char [41], std::shared_ptr<kimera_distributed::Submap>)’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosureRos.cpp:927:26: note: in expansion of macro ‘CHECK_NOTNULL’
  927 |       frame.submap_id_ = CHECK_NOTNULL(keyframe->getSubmap())->id();
      |                          ^~~~~~~~~~~~~
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosureRos.cpp:11:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note: candidate: ‘template<class T> T* google::CheckNotNull(const char*, int, const char*, T*)’
 1286 | T* CheckNotNull(const char *file, int line, const char *names, T* t) {
      |    ^~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note:   template argument deduction/substitution failed:
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosureRos.cpp:11:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: note:   mismatched types ‘T*’ and ‘std::shared_ptr<kimera_distributed::Submap>’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosureRos.cpp:927:26: note: in expansion of macro ‘CHECK_NOTNULL’
  927 |       frame.submap_id_ = CHECK_NOTNULL(keyframe->getSubmap())->id();
      |                          ^~~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosureRos.cpp: In member function ‘void kimera_distributed::DistributedLoopClosureRos::publishSubmapOfflineInfo()’:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: error: no matching function for call to ‘CheckNotNull(const char [88], int, const char [55], std::shared_ptr<kimera_distributed::Submap>)’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosureRos.cpp:1038:25: note: in expansion of macro ‘CHECK_NOTNULL’
 1038 |     const auto submap = CHECK_NOTNULL(submap_atlas_->getSubmap(submap_id));
      |                         ^~~~~~~~~~~~~
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosureRos.cpp:11:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note: candidate: ‘template<class T> T* google::CheckNotNull(const char*, int, const char*, T*)’
 1286 | T* CheckNotNull(const char *file, int line, const char *names, T* t) {
      |    ^~~~~~~~~~~~
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:1286:4: note:   template argument deduction/substitution failed:
In file included from /home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosureRos.cpp:11:
/home/shapelim/kimera_multi_ws/devel/.private/glog_catkin/include/glog/logging.h:776:80: note:   mismatched types ‘T*’ and ‘std::shared_ptr<kimera_distributed::Submap>’
  776 |   google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val))
      |                                                                                ^
/home/shapelim/kimera_multi_ws/src/kimera_distributed/src/DistributedLoopClosureRos.cpp:1038:25: note: in expansion of macro ‘CHECK_NOTNULL’
 1038 |     const auto submap = CHECK_NOTNULL(submap_atlas_->getSubmap(submap_id));
      |                         ^~~~~~~~~~~~~
make[2]: *** [CMakeFiles/kimera_distributed.dir/build.make:104: CMakeFiles/kimera_distributed.dir/src/DistributedLoopClosure.cpp.o] Error 1
make[2]: *** [CMakeFiles/kimera_distributed.dir/build.make:118: CMakeFiles/kimera_distributed.dir/src/DistributedLoopClosureRos.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3345: CMakeFiles/kimera_distributed.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

And I think this error is also relevant to the glog.

LimHyungTae avatar Aug 20 '24 00:08 LimHyungTae