Merge pull request #761 from borglab/fix/warnings
commit
d8f279b49c
|
|
@ -119,22 +119,20 @@ public:
|
||||||
/// @name Standard Constructors
|
/// @name Standard Constructors
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
/** default constructor */
|
/// Default constructor
|
||||||
PinholeBase() {
|
PinholeBase() {}
|
||||||
}
|
|
||||||
|
|
||||||
/** constructor with pose */
|
/// Constructor with pose
|
||||||
explicit PinholeBase(const Pose3& pose) :
|
explicit PinholeBase(const Pose3& pose) : pose_(pose) {}
|
||||||
pose_(pose) {
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
/// @name Advanced Constructors
|
/// @name Advanced Constructors
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
explicit PinholeBase(const Vector &v) :
|
explicit PinholeBase(const Vector& v) : pose_(Pose3::Expmap(v)) {}
|
||||||
pose_(Pose3::Expmap(v)) {
|
|
||||||
}
|
/// Default destructor
|
||||||
|
virtual ~PinholeBase() = default;
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
/// @name Testable
|
/// @name Testable
|
||||||
|
|
|
||||||
|
|
@ -825,7 +825,7 @@ TEST(Rot3, RQ_derivative) {
|
||||||
const auto R = Rot3::RzRyRx(xyz).matrix();
|
const auto R = Rot3::RzRyRx(xyz).matrix();
|
||||||
const auto num = numericalDerivative11(RQ_proxy, R);
|
const auto num = numericalDerivative11(RQ_proxy, R);
|
||||||
Matrix39 calc;
|
Matrix39 calc;
|
||||||
RQ(R, calc).second;
|
RQ(R, calc);
|
||||||
|
|
||||||
const auto err = vec_err.second;
|
const auto err = vec_err.second;
|
||||||
CHECK(assert_equal(num, calc, err));
|
CHECK(assert_equal(num, calc, err));
|
||||||
|
|
|
||||||
|
|
@ -102,47 +102,52 @@ typedef FastSet<FactorIndex> FactorIndexSet;
|
||||||
/// @}
|
/// @}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/// @name Standard Interface
|
/// Default destructor
|
||||||
/// @{
|
// public since it is required for boost serialization and static methods.
|
||||||
|
// virtual since it is public.
|
||||||
|
// http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rc-dtor-virtual
|
||||||
|
virtual ~Factor() = default;
|
||||||
|
|
||||||
/// First key
|
/// @name Standard Interface
|
||||||
Key front() const { return keys_.front(); }
|
/// @{
|
||||||
|
|
||||||
/// Last key
|
/// First key
|
||||||
Key back() const { return keys_.back(); }
|
Key front() const { return keys_.front(); }
|
||||||
|
|
||||||
/// find
|
/// Last key
|
||||||
const_iterator find(Key key) const { return std::find(begin(), end(), key); }
|
Key back() const { return keys_.back(); }
|
||||||
|
|
||||||
/// Access the factor's involved variable keys
|
/// find
|
||||||
const KeyVector& keys() const { return keys_; }
|
const_iterator find(Key key) const { return std::find(begin(), end(), key); }
|
||||||
|
|
||||||
/** Iterator at beginning of involved variable keys */
|
/// Access the factor's involved variable keys
|
||||||
const_iterator begin() const { return keys_.begin(); }
|
const KeyVector& keys() const { return keys_; }
|
||||||
|
|
||||||
/** Iterator at end of involved variable keys */
|
/** Iterator at beginning of involved variable keys */
|
||||||
const_iterator end() const { return keys_.end(); }
|
const_iterator begin() const { return keys_.begin(); }
|
||||||
|
|
||||||
/**
|
/** Iterator at end of involved variable keys */
|
||||||
|
const_iterator end() const { return keys_.end(); }
|
||||||
|
|
||||||
|
/**
|
||||||
* @return the number of variables involved in this factor
|
* @return the number of variables involved in this factor
|
||||||
*/
|
*/
|
||||||
size_t size() const { return keys_.size(); }
|
size_t size() const { return keys_.size(); }
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
|
|
||||||
|
/// @name Testable
|
||||||
|
/// @{
|
||||||
|
|
||||||
/// @name Testable
|
/// print
|
||||||
/// @{
|
virtual void print(
|
||||||
|
const std::string& s = "Factor",
|
||||||
|
const KeyFormatter& formatter = DefaultKeyFormatter) const;
|
||||||
|
|
||||||
/// print
|
/// print only keys
|
||||||
virtual void print(
|
virtual void printKeys(
|
||||||
const std::string& s = "Factor",
|
const std::string& s = "Factor",
|
||||||
const KeyFormatter& formatter = DefaultKeyFormatter) const;
|
const KeyFormatter& formatter = DefaultKeyFormatter) const;
|
||||||
|
|
||||||
/// print only keys
|
|
||||||
virtual void printKeys(
|
|
||||||
const std::string& s = "Factor",
|
|
||||||
const KeyFormatter& formatter = DefaultKeyFormatter) const;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/// check equality
|
/// check equality
|
||||||
|
|
|
||||||
|
|
@ -148,6 +148,10 @@ class FactorGraph {
|
||||||
/// @}
|
/// @}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
/// Default destructor
|
||||||
|
// Public and virtual so boost serialization can call it.
|
||||||
|
virtual ~FactorGraph() = default;
|
||||||
|
|
||||||
/// @name Adding Single Factors
|
/// @name Adding Single Factors
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue