Some tiny improvements
parent
776b15a5a9
commit
8563fc30b4
|
@ -169,7 +169,8 @@ struct FixedDimension {
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Helper class to construct the product manifold of two other manifolds, M1 and M2
|
/// Helper class to construct the product manifold of two other manifolds, M1 and M2
|
||||||
/// Assumes nothing except manifold structure from M1 and M2
|
/// Assumes nothing except manifold structure for M1 and M2, and the existence
|
||||||
|
/// of default constructor for those types
|
||||||
template<typename M1, typename M2>
|
template<typename M1, typename M2>
|
||||||
class ProductManifold: public std::pair<M1, M2> {
|
class ProductManifold: public std::pair<M1, M2> {
|
||||||
BOOST_CONCEPT_ASSERT((IsManifold<M1>));
|
BOOST_CONCEPT_ASSERT((IsManifold<M1>));
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wunused-variable"
|
#pragma GCC diagnostic ignored "-Wunused-variable"
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-local-typedef"
|
||||||
#endif
|
#endif
|
||||||
#include <boost/bind.hpp>
|
#include <boost/bind.hpp>
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
|
|
|
@ -47,12 +47,12 @@ typedef Expression<Cal3Bundler> Cal3Bundler_;
|
||||||
|
|
||||||
/// Expression version of PinholeBase::Project
|
/// Expression version of PinholeBase::Project
|
||||||
inline Point2_ project(const Point3_& p_cam) {
|
inline Point2_ project(const Point3_& p_cam) {
|
||||||
Point2 (*f)(const Point3&, OptionalJacobian<2, 3>) = &PinholeBase::Project;
|
Point2_::UnaryFunction<Point3>::type f = &PinholeBase::Project;
|
||||||
return Point2_(f, p_cam);
|
return Point2_(f, p_cam);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline Point2_ project(const Unit3_& p_cam) {
|
inline Point2_ project(const Unit3_& p_cam) {
|
||||||
Point2 (*f)(const Unit3&, OptionalJacobian<2, 2>) = &PinholeBase::Project;
|
Point2_::UnaryFunction<Unit3>::type f = &PinholeBase::Project;
|
||||||
return Point2_(f, p_cam);
|
return Point2_(f, p_cam);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue