From 7aeb386dbd50f86f1bb7f7491baed334ecf4ec4b Mon Sep 17 00:00:00 2001 From: Akash Patel <17132214+acxz@users.noreply.github.com> Date: Sun, 20 Jun 2021 18:04:28 -0400 Subject: [PATCH] formatting remove extraneous `using` --- gtsam/nonlinear/NonlinearEquality.h | 5 ++--- gtsam_unstable/slam/EquivInertialNavFactor_GlobalVel.h | 4 ---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/gtsam/nonlinear/NonlinearEquality.h b/gtsam/nonlinear/NonlinearEquality.h index b70929179..f10ba93ae 100644 --- a/gtsam/nonlinear/NonlinearEquality.h +++ b/gtsam/nonlinear/NonlinearEquality.h @@ -88,7 +88,7 @@ public: */ NonlinearEquality(Key j, const T& feasible, const CompareFunction &_compare = boost::bind(traits::Equals, - boost::placeholders::_1,boost::placeholders::_2,1e-9)) : + boost::placeholders::_1, boost::placeholders::_2, 1e-9)) : Base(noiseModel::Constrained::All(traits::GetDimension(feasible)), j), feasible_(feasible), allow_error_(false), error_gain_(0.0), // compare_(_compare) { @@ -99,7 +99,7 @@ public: */ NonlinearEquality(Key j, const T& feasible, double error_gain, const CompareFunction &_compare = boost::bind(traits::Equals, - boost::placeholders::_1,boost::placeholders::_2,1e-9)) : + boost::placeholders::_1, boost::placeholders::_2, 1e-9)) : Base(noiseModel::Constrained::All(traits::GetDimension(feasible)), j), feasible_(feasible), allow_error_(true), error_gain_(error_gain), // compare_(_compare) { @@ -361,4 +361,3 @@ struct traits > : Testable > }// namespace gtsam - diff --git a/gtsam_unstable/slam/EquivInertialNavFactor_GlobalVel.h b/gtsam_unstable/slam/EquivInertialNavFactor_GlobalVel.h index 3e6dbf6db..6a345a6b5 100644 --- a/gtsam_unstable/slam/EquivInertialNavFactor_GlobalVel.h +++ b/gtsam_unstable/slam/EquivInertialNavFactor_GlobalVel.h @@ -305,8 +305,6 @@ public: boost::optional H4 = boost::none, boost::optional H5 = boost::none) const override { - using namespace boost::placeholders; - // TODO: Write analytical derivative calculations // Jacobian w.r.t. Pose1 if (H1){ @@ -423,8 +421,6 @@ public: // Note: all delta terms refer to an IMU\sensor system at t0 // Note: Earth-related terms are not accounted here but are incorporated in predict functions. - using namespace boost::placeholders; - POSE body_P_sensor = POSE(); bool flag_use_body_P_sensor = false; if (p_body_P_sensor){