Skip to content

Commit 7aeb386

Browse files
authored
formatting
remove extraneous `using`
1 parent 6dea866 commit 7aeb386

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

gtsam/nonlinear/NonlinearEquality.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class NonlinearEquality: public NoiseModelFactor1<VALUE> {
8888
*/
8989
NonlinearEquality(Key j, const T& feasible,
9090
const CompareFunction &_compare = boost::bind(traits<T>::Equals,
91-
boost::placeholders::_1,boost::placeholders::_2,1e-9)) :
91+
boost::placeholders::_1, boost::placeholders::_2, 1e-9)) :
9292
Base(noiseModel::Constrained::All(traits<T>::GetDimension(feasible)),
9393
j), feasible_(feasible), allow_error_(false), error_gain_(0.0), //
9494
compare_(_compare) {
@@ -99,7 +99,7 @@ class NonlinearEquality: public NoiseModelFactor1<VALUE> {
9999
*/
100100
NonlinearEquality(Key j, const T& feasible, double error_gain,
101101
const CompareFunction &_compare = boost::bind(traits<T>::Equals,
102-
boost::placeholders::_1,boost::placeholders::_2,1e-9)) :
102+
boost::placeholders::_1, boost::placeholders::_2, 1e-9)) :
103103
Base(noiseModel::Constrained::All(traits<T>::GetDimension(feasible)),
104104
j), feasible_(feasible), allow_error_(true), error_gain_(error_gain), //
105105
compare_(_compare) {
@@ -361,4 +361,3 @@ struct traits<NonlinearEquality2<VALUE> > : Testable<NonlinearEquality2<VALUE> >
361361

362362

363363
}// namespace gtsam
364-

gtsam_unstable/slam/EquivInertialNavFactor_GlobalVel.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,6 @@ class EquivInertialNavFactor_GlobalVel : public NoiseModelFactor5<POSE, VELOCITY
305305
boost::optional<Matrix&> H4 = boost::none,
306306
boost::optional<Matrix&> H5 = boost::none) const override {
307307

308-
using namespace boost::placeholders;
309-
310308
// TODO: Write analytical derivative calculations
311309
// Jacobian w.r.t. Pose1
312310
if (H1){
@@ -423,8 +421,6 @@ class EquivInertialNavFactor_GlobalVel : public NoiseModelFactor5<POSE, VELOCITY
423421
// Note: all delta terms refer to an IMU\sensor system at t0
424422
// Note: Earth-related terms are not accounted here but are incorporated in predict functions.
425423

426-
using namespace boost::placeholders;
427-
428424
POSE body_P_sensor = POSE();
429425
bool flag_use_body_P_sensor = false;
430426
if (p_body_P_sensor){

0 commit comments

Comments
 (0)