Moved all Simulated* example domains and smallExample to the tests folder so they are no longer installed

release/4.3a0
Alex Cunningham 2012-06-09 20:15:44 +00:00
parent 9e26b32daa
commit 3d2c3aff05
34 changed files with 47 additions and 61 deletions

View File

@ -834,7 +834,7 @@ class Odometry {
// Simulated2D
//*************************************************************************
#include <gtsam/slam/simulated2D.h>
#include <tests/simulated2D.h>
namespace simulated2D {
class Values {
@ -856,7 +856,7 @@ class Graph {
}///\namespace simulated2D
// Simulated2DOriented Example Domain
#include <gtsam/slam/simulated2DOriented.h>
#include <tests/simulated2DOriented.h>
namespace simulated2DOriented {
class Values {

View File

@ -6,7 +6,6 @@ set (gtsam_unstable_subdirs
dynamics
linear
nonlinear
slam
)
add_custom_target(check.unstable COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure)
@ -33,7 +32,6 @@ set(gtsam_unstable_srcs
${dynamics_srcs}
${linear_srcs}
${nonlinear_srcs}
${slam_srcs}
)
option (GTSAM_UNSTABLE_BUILD_SHARED_LIBRARY "Enable/Disable building of a shared version of gtsam_unstable" ON)

View File

@ -1,26 +0,0 @@
# Install headers
file(GLOB slam_headers "*.h")
install(FILES ${slam_headers} DESTINATION include/gtsam_unstable/slam)
# Components to link tests in this subfolder against
set(slam_local_libs
slam_unstable
slam
nonlinear
linear
inference
geometry
base
ccolamd
)
set (slam_full_libs
gtsam-static
gtsam_unstable-static)
# Exclude tests that don't work
set (slam_excluded_tests "")
# Add all tests
gtsam_add_subdir_tests(slam_unstable "${slam_local_libs}" "${slam_full_libs}" "${slam_excluded_tests}")
add_dependencies(check.unstable check.slam_unstable)

View File

@ -1,4 +1,14 @@
# Build a library of example domains, just for tests
file(GLOB test_lib_srcs "*.cpp")
file(GLOB test_srcs "test*.cpp")
file(GLOB time_srcs "time*.cpp")
list(REMOVE_ITEM test_lib_srcs ${test_srcs})
list(REMOVE_ITEM test_lib_srcs ${time_srcs})
add_library(test_lib STATIC ${test_lib_srcs})
# Assemble local libraries
set(tests_local_libs
test_lib
slam
nonlinear
linear
@ -24,7 +34,7 @@ if (GTSAM_BUILD_TESTS)
# Build grouped tests
gtsam_add_grouped_scripts("tests" # Use subdirectory as group label
"test*.cpp" check "Test" # Standard for all tests
"${tests_local_libs}" "gtsam-static;CppUnitLite" "${tests_exclude}" # Pass in linking and exclusion lists
"${tests_local_libs}" "gtsam-static;CppUnitLite;test_lib" "${tests_exclude}" # Pass in linking and exclusion lists
${is_test}) # Set all as tests
endif (GTSAM_BUILD_TESTS)
@ -37,6 +47,6 @@ if (GTSAM_BUILD_TIMING)
# Build grouped benchmarks
gtsam_add_grouped_scripts("tests" # Use subdirectory as group label
"time*.cpp" timing "Timing Benchmark" # Standard for all timing scripts
"${tests_local_libs}" "gtsam-static;CppUnitLite" "${tests_exclude}" # Pass in linking and exclusion lists
"${tests_local_libs}" "gtsam-static;CppUnitLite;test_lib" "${tests_exclude}" # Pass in linking and exclusion lists
${is_test})
endif (GTSAM_BUILD_TIMING)

View File

@ -15,7 +15,7 @@
* @author Frank Dellaert
*/
#include <gtsam/slam/simulated2D.h>
#include <tests/simulated2D.h>
namespace simulated2D {

View File

@ -24,7 +24,7 @@
#include <gtsam/nonlinear/NonlinearEquality.h>
#include <gtsam/slam/BetweenFactor.h>
#include <gtsam/slam/BoundingConstraint.h>
#include <gtsam/slam/simulated2D.h>
#include <tests/simulated2D.h>
// \namespace

View File

@ -15,7 +15,7 @@
* @author Frank Dellaert
*/
#include <gtsam/slam/simulated2DOriented.h>
#include <tests/simulated2DOriented.h>
namespace simulated2DOriented {

View File

@ -15,7 +15,7 @@
* @author Alex Cunningham
**/
#include <gtsam_unstable/slam/simulated3D.h>
#include <tests/simulated3D.h>
namespace gtsam {

View File

@ -17,7 +17,6 @@
* @author Frank dellaert
*/
#include <gtsam/slam/smallExample.h>
#include <gtsam/nonlinear/Symbol.h>
#include <gtsam/nonlinear/Ordering.h>
#include <gtsam/nonlinear/NonlinearFactorGraph.h>
@ -25,6 +24,8 @@
#include <gtsam/inference/FactorGraph.h>
#include <gtsam/base/Matrix.h>
#include <tests/smallExample.h>
#include <boost/optional.hpp>
#include <boost/shared_ptr.hpp>

View File

@ -21,7 +21,7 @@
#pragma once
#include <gtsam/slam/simulated2D.h>
#include <tests/simulated2D.h>
#include <gtsam/nonlinear/NonlinearFactorGraph.h>
#include <gtsam/linear/JacobianFactorGraph.h>
#include <boost/tuple/tuple.hpp>

View File

@ -15,7 +15,7 @@
* @author Alex Cunningham
*/
#include <gtsam/slam/simulated2DConstraints.h>
#include <tests/simulated2DConstraints.h>
#include <gtsam/nonlinear/Symbol.h>
#include <gtsam/nonlinear/NonlinearFactorGraph.h>
#include <gtsam/nonlinear/LevenbergMarquardtOptimizer.h>

View File

@ -16,7 +16,7 @@
*/
#include <gtsam/slam/pose2SLAM.h>
#include <gtsam/slam/smallExample.h>
#include <tests/smallExample.h>
#include <gtsam/nonlinear/DoglegOptimizerImpl.h>
#include <gtsam/nonlinear/Symbol.h>
#include <gtsam/linear/JacobianFactor.h>

View File

@ -29,7 +29,7 @@ using namespace boost::assign;
#include <gtsam/inference/BayesNet.h>
#include <gtsam/linear/GaussianBayesNet.h>
#include <gtsam/linear/GaussianSequentialSolver.h>
#include <gtsam/slam/smallExample.h>
#include <tests/smallExample.h>
using namespace std;
using namespace gtsam;

View File

@ -16,7 +16,7 @@
* @author Frank Dellaert
**/
#include <gtsam/slam/smallExample.h>
#include <tests/smallExample.h>
#include <gtsam/nonlinear/Symbol.h>
#include <gtsam/nonlinear/Ordering.h>
#include <gtsam/linear/GaussianConditional.h>

View File

@ -15,7 +15,7 @@
* @author Christian Potthast
**/
#include <gtsam/slam/smallExample.h>
#include <tests/smallExample.h>
#include <gtsam/nonlinear/Symbol.h>
#include <gtsam/linear/GaussianBayesNet.h>
#include <gtsam/linear/GaussianSequentialSolver.h>

View File

@ -15,7 +15,7 @@
* @author Michael Kaess
*/
#include <gtsam/slam/smallExample.h>
#include <tests/smallExample.h>
#include <gtsam/nonlinear/Ordering.h>
#include <gtsam/nonlinear/Symbol.h>
#include <gtsam/linear/GaussianBayesNet.h>

View File

@ -12,7 +12,7 @@
#include <gtsam/linear/GaussianBayesTree.h>
#include <gtsam/linear/JacobianFactorGraph.h>
#include <gtsam/nonlinear/ISAM2.h>
#include <gtsam/slam/smallExample.h>
#include <tests/smallExample.h>
#include <gtsam/slam/planarSLAM.h>
#include <CppUnitLite/TestHarness.h>

View File

@ -15,7 +15,7 @@
* @author nikai
*/
#include <gtsam/slam/smallExample.h>
#include <tests/smallExample.h>
#include <gtsam/slam/planarSLAM.h>
#include <gtsam/slam/pose2SLAM.h>
#include <gtsam/nonlinear/Ordering.h>

View File

@ -20,9 +20,10 @@
#include <gtsam/nonlinear/Symbol.h>
#include <gtsam/linear/GaussianSequentialSolver.h>
#include <gtsam/linear/GaussianMultifrontalSolver.h>
#include <gtsam/slam/smallExample.h>
#include <gtsam/slam/planarSLAM.h>
#include <tests/smallExample.h>
using namespace std;
using namespace gtsam;

View File

@ -14,8 +14,9 @@
* @author Alex Cunningham
*/
#include <tests/simulated2DConstraints.h>
#include <gtsam/slam/PriorFactor.h>
#include <gtsam/slam/simulated2DConstraints.h>
#include <gtsam/slam/visualSLAM.h>
#include <gtsam/nonlinear/Symbol.h>
#include <gtsam/nonlinear/NonlinearEquality.h>

View File

@ -28,8 +28,8 @@
#include <gtsam/base/Testable.h>
#include <gtsam/base/Matrix.h>
#include <gtsam/base/LieVector.h>
#include <gtsam/slam/smallExample.h>
#include <gtsam/slam/simulated2D.h>
#include <tests/smallExample.h>
#include <tests/simulated2D.h>
#include <gtsam/linear/GaussianFactor.h>
#include <gtsam/nonlinear/NonlinearFactorGraph.h>
#include <gtsam/nonlinear/Symbol.h>

View File

@ -29,7 +29,7 @@ using namespace boost::assign;
#include <gtsam/base/Testable.h>
#include <gtsam/base/Matrix.h>
#include <gtsam/slam/smallExample.h>
#include <tests/smallExample.h>
#include <gtsam/inference/FactorGraph.h>
#include <gtsam/nonlinear/NonlinearFactorGraph.h>
#include <gtsam/nonlinear/Symbol.h>

View File

@ -15,7 +15,7 @@
* @author Frank Dellaert
*/
#include <gtsam/slam/smallExample.h>
#include <tests/smallExample.h>
#include <gtsam/slam/pose2SLAM.h>
#include <gtsam/nonlinear/Symbol.h>
#include <gtsam/nonlinear/NonlinearFactorGraph.h>

View File

@ -16,7 +16,8 @@
* @date Feb 7, 2012
*/
#include <gtsam/slam/smallExample.h>
#include <tests/smallExample.h>
#include <gtsam/slam/planarSLAM.h>
#include <gtsam/slam/visualSLAM.h>
#include <gtsam/nonlinear/Symbol.h>

View File

@ -21,7 +21,7 @@
#include <gtsam/base/Testable.h>
#include <gtsam/base/numericalDerivative.h>
#include <gtsam/slam/simulated2D.h>
#include <tests/simulated2D.h>
using namespace std;
using namespace gtsam;

View File

@ -16,8 +16,8 @@
* @brief unit tests for simulated2DOriented
*/
#include <gtsam/slam/simulated2D.h>
#include <gtsam/slam/simulated2DOriented.h>
#include <tests/simulated2D.h>
#include <tests/simulated2DOriented.h>
#include <gtsam/nonlinear/Symbol.h>
#include <gtsam/base/Testable.h>
#include <gtsam/base/numericalDerivative.h>

View File

@ -15,7 +15,7 @@
* @author Alex Cunningham
**/
#include <gtsam_unstable/slam/simulated3D.h>
#include <tests/simulated3D.h>
#include <gtsam/nonlinear/Symbol.h>
#include <gtsam/geometry/Pose3.h>
#include <gtsam/base/Testable.h>

View File

@ -16,7 +16,7 @@
**/
#include <gtsam_unstable/linear/iterative.h>
#include <gtsam/slam/smallExample.h>
#include <tests/smallExample.h>
#include <gtsam/nonlinear/Ordering.h>
#include <gtsam/linear/JacobianFactorGraph.h>
#include <gtsam/linear/GaussianSequentialSolver.h>

View File

@ -22,7 +22,7 @@ using namespace boost::assign;
#include <CppUnitLite/TestHarness.h>
#include <gtsam/base/Testable.h>
#include <gtsam/slam/smallExample.h>
#include <tests/smallExample.h>
#include <gtsam/inference/SymbolicFactorGraph.h>
#include <gtsam/inference/SymbolicSequentialSolver.h>
#include <gtsam/nonlinear/Ordering.h>

View File

@ -15,7 +15,7 @@
* @author Frank Dellaert
*/
#include <gtsam/slam/smallExample.h>
#include <tests/smallExample.h>
#include <gtsam/nonlinear/Ordering.h>
#include <gtsam/nonlinear/Symbol.h>
#include <gtsam/inference/SymbolicFactorGraph.h>

View File

@ -19,7 +19,7 @@
#include <boost/foreach.hpp>
#include <boost/assign/std/list.hpp> // for operator += in Ordering
#include <CppUnitLite/TestHarness.h>
#include <gtsam/slam/smallExample.h>
#include <tests/smallExample.h>
#include <gtsam/linear/GaussianSequentialSolver.h>
using namespace std;