diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-ros/hector_pose_estimation_core/files/gcc6.patch | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-ros/hector_pose_estimation_core/files/gcc6.patch')
-rw-r--r-- | dev-ros/hector_pose_estimation_core/files/gcc6.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-ros/hector_pose_estimation_core/files/gcc6.patch b/dev-ros/hector_pose_estimation_core/files/gcc6.patch new file mode 100644 index 000000000000..42862915244b --- /dev/null +++ b/dev-ros/hector_pose_estimation_core/files/gcc6.patch @@ -0,0 +1,35 @@ +Index: hector_pose_estimation_core/include/hector_pose_estimation/input.h +=================================================================== +--- hector_pose_estimation_core.orig/include/hector_pose_estimation/input.h ++++ hector_pose_estimation_core/include/hector_pose_estimation/input.h +@@ -79,7 +79,7 @@ public: + return *variance_; + } + +- virtual bool hasVariance() const { return variance_; } ++ virtual bool hasVariance() const { return variance_ != NULL; } + virtual Variance const &getVariance() { if (!variance_) variance_.reset(new Variance); return *variance_; } + virtual Variance const &getVariance() const { return *variance_; } + virtual Variance& variance() { if (!variance_) variance_.reset(new Variance); return *variance_; } +Index: hector_pose_estimation_core/src/system/imu_model.cpp +=================================================================== +--- hector_pose_estimation_core.orig/src/system/imu_model.cpp ++++ hector_pose_estimation_core/src/system/imu_model.cpp +@@ -51,7 +51,7 @@ GyroModel::~GyroModel() + bool GyroModel::init(PoseEstimation& estimator, System &system, State& state) + { + bias_ = state.addSubState<3,3>(this, system.getName() + "_bias"); +- return bias_; ++ return bias_ != NULL; + } + + void GyroModel::getPrior(State &state) +@@ -113,7 +113,7 @@ AccelerometerModel::~AccelerometerModel( + bool AccelerometerModel::init(PoseEstimation& estimator, System &system, State& state) + { + bias_ = state.addSubState<3,3>(this, system.getName() + "_bias"); +- return bias_; ++ return bias_ != NULL; + } + + void AccelerometerModel::getPrior(State &state) |