-
Notifications
You must be signed in to change notification settings - Fork 755
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed remaining global lie functions on lie objects and configs, sw…
…itched the Lie base class to a simple concept check function, fixed build script for examples. ISAM2 and MastSLAM verified as compiling.
- Loading branch information
Showing
70 changed files
with
1,096 additions
and
1,061 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** | ||
* @file LieVector.cpp | ||
* @brief Implementations for LieVector functions | ||
* @author Alex Cunningham | ||
*/ | ||
|
||
#include <stdarg.h> | ||
#include <gtsam/base/LieVector.h> | ||
|
||
using namespace std; | ||
|
||
namespace gtsam { | ||
|
||
/* ************************************************************************* */ | ||
LieVector::LieVector(size_t m, const double* const data) | ||
: Vector(Vector_(m,data)) | ||
{ | ||
} | ||
|
||
/* ************************************************************************* */ | ||
LieVector::LieVector(size_t m, ...) | ||
: Vector(m) | ||
{ | ||
va_list ap; | ||
va_start(ap, m); | ||
for( size_t i = 0 ; i < m ; i++) { | ||
double value = va_arg(ap, double); | ||
(*this)(i) = value; | ||
} | ||
va_end(ap); | ||
} | ||
|
||
} // \namespace gtsam |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/** | ||
* @file lieProxies.h | ||
* @brief Provides convenient mappings of common member functions for testing | ||
* @author Alex Cunningham | ||
*/ | ||
|
||
#pragma once | ||
|
||
/** | ||
* Global functions in a separate testing namespace | ||
* | ||
* These should not be used outside of tests, as they are just remappings | ||
* of the original functions. We use these to avoid needing to do | ||
* too much boost::bind magic or writing a bunch of separate proxy functions. | ||
* | ||
* Don't expect all classes to work for all of these functions. | ||
*/ | ||
namespace gtsam { | ||
namespace testing { | ||
|
||
/** binary functions */ | ||
template<class T> | ||
T between(const T& t1, const T& t2) { return t1.between(t2); } | ||
|
||
template<class T> | ||
T compose(const T& t1, const T& t2) { return t1.compose(t2); } | ||
|
||
/** expmap and logmap */ | ||
template<class T> | ||
Vector logmap(const T& t1, const T& t2) { return t1.logmap(t2); } | ||
|
||
template<class T> | ||
T expmap(const T& t1, const Vector& t2) { return t1.expmap(t2); } | ||
|
||
/** unary functions */ | ||
template<class T> | ||
T inverse(const T& t) { return t.inverse(); } | ||
|
||
/** rotation functions */ | ||
template<class T, class P> | ||
P rotate(const T& r, const P& pt) { return r.rotate(pt); } | ||
|
||
template<class T, class P> | ||
P unrotate(const T& r, const P& pt) { return r.unrotate(pt); } | ||
|
||
} | ||
} | ||
|
Oops, something went wrong.