Closed ptrmu closed 4 years ago
Strange, please kindly provide you environment (OS Version, GCC Version, boost Version, etc.) and your command line building GTSAM with all outputs.
Ubuntu 18.04 gcc 7.4.0 boost 1.65.1
using cmake-gui this is the configuration:
CMAKE_CXX_COMPILER_ID type : GNU
CMAKE_CXX_COMPILER_VERSION : 7.4.0
CMake version : 3.10.2
CMake generator : Unix Makefiles
CMake build tool : /usr/bin/make
Build flags
Build Tests : Enabled
Build examples with 'make all' : Enabled
Build timing scripts with 'make all': Enabled
Build shared GTSAM libraries : Enabled
Put build type in library name : Enabled
Build libgtsam_unstable : Enabled
Build for native architecture : Enabled
Build type : Debug
C compilation flags : -g
C++ compilation flags : -g
GTSAM_COMPILE_FEATURES_PUBLIC : cxx_std_11
GTSAM_COMPILE_OPTIONS_PRIVATE : -Wall;$<$
CPack Source Generator : TGZ
CPack Generator : TGZ
GTSAM flags
Quaternions as default Rot3 : Disabled
Runtime consistency checking : Disabled
Rot3 retract is full ExpMap : Enabled
Pose3 retract is full ExpMap : Disabled
Deprecated in GTSAM 4 allowed : Disabled
Point3 is typedef to Vector3 : Disabled
Metis-based Nested Dissection : Enabled
Use tangent-space preintegration: Enabled
Build Wrap : Enabled
MATLAB toolbox flags
Install matlab toolbox : Disabled
Cython toolbox flags
Install Cython toolbox : Disabled
In the file timeGaussianFactorGraph.cpp the function planarGraph(N) returns a std::pair<> class. This class does not define the get() member that is being referenced. Maybe at some point planarGraph(N) returned a tuple. But this file was not updated when planarGraph(N) was changed to return a std::pair().
Thanks!
@ptrmu I can see that, could you just create a quick PR?
Thanks for pr!!
Description
When building the target timeGaussianFactorGraph on branch develop commit 2f6edeeb416a812719e5f78520791a7368d588ce I received the following error:
.../gtsam-repo/timing/timeGaussianFactorGraph.cpp:43:43: error: ‘struct std::pair<gtsam::GaussianFactorGraph, gtsam::VectorValues>’ has no member named ‘get’ GaussianFactorGraph fg = planarGraph(N).get<0>();
changing "get<0>()" to "first" fixed the compile error.