Dep checking for cmake

release/4.3a0
Andrew Melim 2012-06-30 01:34:04 +00:00
parent 02df40bd73
commit f68ba93f3d
4 changed files with 9 additions and 3 deletions

View File

@ -63,6 +63,7 @@ option(GTSAM_INSTALL_MATLAB_TESTS "Enable/Disable installation of matlab
option(GTSAM_INSTALL_WRAP "Enable/Disable installation of wrap utility" ON)
set(GTSAM_TOOLBOX_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/borg/toolbox CACHE DOCSTRING "Path to install matlab toolbox")
set(GTSAM_WRAP_HEADER_PATH ${PROJECT_SOURCE_DIR}/wrap CACHE DOCSTRING "Path to directory of matlab.h")
# TODO: Check for matlab mex binary before handling building of binaries

View File

@ -33,6 +33,10 @@ namespace gtsam {
std::cout << s << "Dummy " << id << std::endl;
}
unsigned char dummyTwoVar(unsigned char a) const {
return a;
}
};
} // namespace gtsam

View File

@ -14,6 +14,7 @@ namespace gtsam {
class Dummy {
Dummy();
void print(string s) const;
unsigned char dummyTwoVar(unsigned char a) const;
};
#include <gtsam_unstable/dynamics/PoseRTV.h>

View File

@ -33,8 +33,8 @@ initialEstimate.insertPose(3, gtsamPose2(4.1, 0.1, 0.1));
%% Optimize using Levenberg-Marquardt optimization with an ordering from colamd
result = graph.optimize(initialEstimate,0);
marginals = graph.marginals(result);
marginals.marginalCovariance(i);
marginals.marginalCovariance(1);
%% Check first pose equality
pose_i = result.pose(1);
CHECK('pose_1.equals(gtsamPose2,1e-4)',pose_1.equals(gtsamPose2,1e-4));
pose_1 = result.pose(1);
CHECK('pose_1.equals(gtsamPose2,1e-4)',pose_1.equals(gtsamPose2,1e-4));