remove "virtual" keyword for functions with "override"
parent
ab73e03ad4
commit
45d5328457
|
@ -45,9 +45,8 @@ class PoseToPointFactor : public NoiseModelFactor2<POSE, POINT> {
|
||||||
/** implement functions needed for Testable */
|
/** implement functions needed for Testable */
|
||||||
|
|
||||||
/** print */
|
/** print */
|
||||||
virtual void print(
|
void print(const std::string& s, const KeyFormatter& keyFormatter =
|
||||||
const std::string& s,
|
DefaultKeyFormatter) const override {
|
||||||
const KeyFormatter& keyFormatter = DefaultKeyFormatter) const override {
|
|
||||||
std::cout << s << "PoseToPointFactor(" << keyFormatter(this->key1()) << ","
|
std::cout << s << "PoseToPointFactor(" << keyFormatter(this->key1()) << ","
|
||||||
<< keyFormatter(this->key2()) << ")\n"
|
<< keyFormatter(this->key2()) << ")\n"
|
||||||
<< " measured: " << measured_.transpose() << std::endl;
|
<< " measured: " << measured_.transpose() << std::endl;
|
||||||
|
@ -55,7 +54,7 @@ class PoseToPointFactor : public NoiseModelFactor2<POSE, POINT> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** equals */
|
/** equals */
|
||||||
virtual bool equals(const NonlinearFactor& expected,
|
bool equals(const NonlinearFactor& expected,
|
||||||
double tol = 1e-9) const override {
|
double tol = 1e-9) const override {
|
||||||
const This* e = dynamic_cast<const This*>(&expected);
|
const This* e = dynamic_cast<const This*>(&expected);
|
||||||
return e != nullptr && Base::equals(*e, tol) &&
|
return e != nullptr && Base::equals(*e, tol) &&
|
||||||
|
|
Loading…
Reference in New Issue