2010-07-12 15:16:31 +08:00
|
|
|
#----------------------------------------------------------------------------------------------------
|
|
|
|
|
# SLAM and SFM sources
|
|
|
|
|
#----------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
headers =
|
|
|
|
|
sources =
|
|
|
|
|
check_PROGRAMS =
|
|
|
|
|
|
|
|
|
|
# simulated2D example
|
|
|
|
|
headers += Simulated2DConfig.h
|
|
|
|
|
headers += Simulated2DPosePrior.h Simulated2DPointPrior.h
|
|
|
|
|
headers += Simulated2DOdometry.h Simulated2DMeasurement.h
|
2010-07-13 13:26:19 +08:00
|
|
|
sources += simulated2D.cpp smallExample.cpp
|
2010-07-17 01:10:16 +08:00
|
|
|
check_PROGRAMS += tests/testSimulated2D
|
2010-07-12 15:16:31 +08:00
|
|
|
|
|
|
|
|
# simulated2DOriented example
|
|
|
|
|
headers += Simulated2DOrientedConfig.h
|
|
|
|
|
headers += Simulated2DOrientedPosePrior.h
|
|
|
|
|
headers += Simulated2DOrientedOdometry.h
|
|
|
|
|
sources += simulated2DOriented.cpp
|
2010-07-17 01:10:16 +08:00
|
|
|
check_PROGRAMS += tests/testSimulated2DOriented
|
2010-07-12 15:16:31 +08:00
|
|
|
|
|
|
|
|
# simulated3D example
|
|
|
|
|
sources += Simulated3D.cpp
|
2010-07-17 01:10:16 +08:00
|
|
|
check_PROGRAMS += tests/testSimulated3D
|
2010-07-12 15:16:31 +08:00
|
|
|
|
|
|
|
|
# Pose SLAM headers
|
|
|
|
|
headers += BetweenFactor.h PriorFactor.h
|
|
|
|
|
|
2010-08-10 05:59:29 +08:00
|
|
|
# General constraints
|
2010-08-10 22:30:41 +08:00
|
|
|
headers += BetweenConstraint.h BoundingConstraint.h TransformConstraint.h
|
2010-08-10 05:59:29 +08:00
|
|
|
|
2010-08-11 00:59:22 +08:00
|
|
|
# Utility factors
|
|
|
|
|
headers += LinearApproxFactor.h
|
|
|
|
|
|
2010-07-12 15:16:31 +08:00
|
|
|
# 2D Pose SLAM
|
|
|
|
|
sources += pose2SLAM.cpp Pose2SLAMOptimizer.cpp dataset.cpp
|
2010-07-17 01:10:16 +08:00
|
|
|
check_PROGRAMS += tests/testPose2Factor tests/testPose2Config tests/testPose2SLAM tests/testPose2Prior
|
2010-07-12 15:16:31 +08:00
|
|
|
|
|
|
|
|
# 2D SLAM using Bearing and Range
|
|
|
|
|
headers += BearingFactor.h RangeFactor.h BearingRangeFactor.h
|
|
|
|
|
sources += planarSLAM.cpp
|
2010-07-17 01:10:16 +08:00
|
|
|
check_PROGRAMS += tests/testPlanarSLAM
|
2010-07-12 15:16:31 +08:00
|
|
|
|
|
|
|
|
# 3D Pose constraints
|
|
|
|
|
sources += pose3SLAM.cpp
|
2010-07-17 01:10:16 +08:00
|
|
|
check_PROGRAMS += tests/testPose3Factor tests/testPose3Config tests/testPose3SLAM
|
2010-07-12 15:16:31 +08:00
|
|
|
|
|
|
|
|
# Visual SLAM
|
|
|
|
|
sources += visualSLAM.cpp
|
2010-07-17 01:10:16 +08:00
|
|
|
check_PROGRAMS += tests/testVSLAMFactor tests/testVSLAMGraph tests/testVSLAMConfig
|
2010-07-12 15:16:31 +08:00
|
|
|
|
|
|
|
|
# GaussianISAM2 is fairly SLAM-specific
|
|
|
|
|
sources += GaussianISAM2.cpp
|
2010-07-17 01:10:16 +08:00
|
|
|
check_PROGRAMS += tests/testGaussianISAM2
|
2010-07-12 15:16:31 +08:00
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------------------------------
|
|
|
|
|
# Create a libtool library that is not installed
|
|
|
|
|
# It will be packaged in the toplevel libgtsam.la as specfied in ../Makefile.am
|
|
|
|
|
# The headers are installed in $(includedir)/gtsam:
|
|
|
|
|
#----------------------------------------------------------------------------------------------------
|
|
|
|
|
headers += $(sources:.cpp=.h)
|
|
|
|
|
pkginclude_HEADERS = $(headers)
|
|
|
|
|
noinst_LTLIBRARIES = libslam.la
|
|
|
|
|
libslam_la_SOURCES = $(sources)
|
2010-07-14 03:13:07 +08:00
|
|
|
AM_CPPFLAGS = -I$(boost) -I$(top_srcdir) -I$(top_srcdir)/colamd -I$(top_srcdir)/base -I$(top_srcdir)/inference
|
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/linear -I$(top_srcdir)/nonlinear -I$(top_srcdir)/geometry
|
2010-07-12 15:16:31 +08:00
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------------------------------
|
|
|
|
|
# rules to build local programs
|
|
|
|
|
#----------------------------------------------------------------------------------------------------
|
|
|
|
|
TESTS = $(check_PROGRAMS)
|
|
|
|
|
AM_DEFAULT_SOURCE_EXT = .cpp
|
|
|
|
|
AM_LDFLAGS = $(BOOST_LDFLAGS) $(boost_serialization)
|
2010-07-13 06:18:38 +08:00
|
|
|
LDADD = libslam.la ../geometry/libgeometry.la ../nonlinear/libnonlinear.la ../linear/liblinear.la ../inference/libinference.la ../base/libbase.la
|
2010-07-17 02:16:18 +08:00
|
|
|
LDADD += ../CppUnitLite/libCppUnitLite.a ../colamd/libcolamd.la
|
|
|
|
|
if USE_LDL
|
|
|
|
|
LDADD += libldl.la
|
|
|
|
|
endif
|
2010-07-12 15:16:31 +08:00
|
|
|
|
|
|
|
|
if USE_LAPACK
|
|
|
|
|
LDADD += ../spqr_mini/libspqr_mini.la
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# rule to run an executable
|
|
|
|
|
%.run: % $(LDADD)
|
|
|
|
|
./$^
|
|
|
|
|
|