Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
remove extraneous `using`
  • Loading branch information
acxz authored Jun 20, 2021
1 parent 6dea866 commit 7aeb386
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 2 additions & 3 deletions gtsam/nonlinear/NonlinearEquality.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class NonlinearEquality: public NoiseModelFactor1<VALUE> {
*/
NonlinearEquality(Key j, const T& feasible,
const CompareFunction &_compare = boost::bind(traits<T>::Equals,
boost::placeholders::_1,boost::placeholders::_2,1e-9)) :
boost::placeholders::_1, boost::placeholders::_2, 1e-9)) :
Base(noiseModel::Constrained::All(traits<T>::GetDimension(feasible)),
j), feasible_(feasible), allow_error_(false), error_gain_(0.0), //
compare_(_compare) {
Expand All @@ -99,7 +99,7 @@ class NonlinearEquality: public NoiseModelFactor1<VALUE> {
*/
NonlinearEquality(Key j, const T& feasible, double error_gain,
const CompareFunction &_compare = boost::bind(traits<T>::Equals,
boost::placeholders::_1,boost::placeholders::_2,1e-9)) :
boost::placeholders::_1, boost::placeholders::_2, 1e-9)) :
Base(noiseModel::Constrained::All(traits<T>::GetDimension(feasible)),
j), feasible_(feasible), allow_error_(true), error_gain_(error_gain), //
compare_(_compare) {
Expand Down Expand Up @@ -361,4 +361,3 @@ struct traits<NonlinearEquality2<VALUE> > : Testable<NonlinearEquality2<VALUE> >


}// namespace gtsam

4 changes: 0 additions & 4 deletions gtsam_unstable/slam/EquivInertialNavFactor_GlobalVel.h
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,6 @@ class EquivInertialNavFactor_GlobalVel : public NoiseModelFactor5<POSE, VELOCITY
boost::optional<Matrix&> H4 = boost::none,
boost::optional<Matrix&> H5 = boost::none) const override {

using namespace boost::placeholders;

// TODO: Write analytical derivative calculations
// Jacobian w.r.t. Pose1
if (H1){
Expand Down Expand Up @@ -423,8 +421,6 @@ class EquivInertialNavFactor_GlobalVel : public NoiseModelFactor5<POSE, VELOCITY
// 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){
Expand Down

0 comments on commit 7aeb386

Please sign in to comment.