Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #1245

Merged
merged 2 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ repos:
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 24.4.0
rev: 24.4.2
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
Expand Down
4 changes: 2 additions & 2 deletions include/crocoddyl/core/activation-base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ class ActivationModelAbstractTpl {
typedef typename MathBase::VectorXs VectorXs;
typedef typename MathBase::MatrixXs MatrixXs;

explicit ActivationModelAbstractTpl(const std::size_t nr) : nr_(nr){};
virtual ~ActivationModelAbstractTpl(){};
explicit ActivationModelAbstractTpl(const std::size_t nr) : nr_(nr) {};
virtual ~ActivationModelAbstractTpl() {};

virtual void calc(const boost::shared_ptr<ActivationDataAbstract>& data,
const Eigen::Ref<const VectorXs>& r) = 0;
Expand Down
2 changes: 1 addition & 1 deletion include/crocoddyl/core/activations/2norm-barrier.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ActivationModel2NormBarrierTpl
throw_pretty("Invalid argument: " << "alpha should be a positive value");
}
};
virtual ~ActivationModel2NormBarrierTpl(){};
virtual ~ActivationModel2NormBarrierTpl() {};

/**
* @brief Compute the 2-norm barrier function
Expand Down
4 changes: 2 additions & 2 deletions include/crocoddyl/core/activations/quadratic-barrier.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ class ActivationModelQuadraticBarrierTpl
typedef typename MathBase::MatrixXs MatrixXs;

explicit ActivationModelQuadraticBarrierTpl(const ActivationBounds& bounds)
: Base(bounds.lb.size()), bounds_(bounds){};
virtual ~ActivationModelQuadraticBarrierTpl(){};
: Base(bounds.lb.size()), bounds_(bounds) {};
virtual ~ActivationModelQuadraticBarrierTpl() {};

virtual void calc(const boost::shared_ptr<ActivationDataAbstract>& data,
const Eigen::Ref<const VectorXs>& r) {
Expand Down
2 changes: 1 addition & 1 deletion include/crocoddyl/core/activations/quadratic-flat-exp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class ActivationModelQuadFlatExpTpl
throw_pretty("Invalid argument: " << "alpha should be a positive value");
}
};
virtual ~ActivationModelQuadFlatExpTpl(){};
virtual ~ActivationModelQuadFlatExpTpl() {};

/*
* @brief Compute the quadratic-flat-exp function
Expand Down
2 changes: 1 addition & 1 deletion include/crocoddyl/core/activations/quadratic-flat-log.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class ActivationModelQuadFlatLogTpl
throw_pretty("Invalid argument: " << "alpha should be a positive value");
}
};
virtual ~ActivationModelQuadFlatLogTpl(){};
virtual ~ActivationModelQuadFlatLogTpl() {};

/*
* @brief Compute the quadratic-flat-log function
Expand Down
4 changes: 2 additions & 2 deletions include/crocoddyl/core/activations/quadratic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class ActivationModelQuadTpl : public ActivationModelAbstractTpl<_Scalar> {
typedef typename MathBase::VectorXs VectorXs;
typedef typename MathBase::MatrixXs MatrixXs;

explicit ActivationModelQuadTpl(const std::size_t nr) : Base(nr){};
virtual ~ActivationModelQuadTpl(){};
explicit ActivationModelQuadTpl(const std::size_t nr) : Base(nr) {};
virtual ~ActivationModelQuadTpl() {};

virtual void calc(const boost::shared_ptr<ActivationDataAbstract>& data,
const Eigen::Ref<const VectorXs>& r) {
Expand Down
2 changes: 1 addition & 1 deletion include/crocoddyl/core/activations/smooth-1norm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class ActivationModelSmooth1NormTpl
<< std::endl;
}
};
virtual ~ActivationModelSmooth1NormTpl(){};
virtual ~ActivationModelSmooth1NormTpl() {};

/**
* @brief Compute the smooth-abs function
Expand Down
2 changes: 1 addition & 1 deletion include/crocoddyl/core/activations/smooth-2norm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class ActivationModelSmooth2NormTpl
throw_pretty("Invalid argument: " << "eps should be a positive value");
}
};
virtual ~ActivationModelSmooth2NormTpl(){};
virtual ~ActivationModelSmooth2NormTpl() {};

/**
* @brief Compute the smooth-2Norm function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ class ActivationModelWeightedQuadraticBarrierTpl

explicit ActivationModelWeightedQuadraticBarrierTpl(
const ActivationBounds& bounds, const VectorXs& weights)
: Base(bounds.lb.size()), bounds_(bounds), weights_(weights){};
virtual ~ActivationModelWeightedQuadraticBarrierTpl(){};
: Base(bounds.lb.size()), bounds_(bounds), weights_(weights) {};
virtual ~ActivationModelWeightedQuadraticBarrierTpl() {};

virtual void calc(const boost::shared_ptr<ActivationDataAbstract>& data,
const Eigen::Ref<const VectorXs>& r) {
Expand Down
4 changes: 2 additions & 2 deletions include/crocoddyl/core/activations/weighted-quadratic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class ActivationModelWeightedQuadTpl
typedef typename MathBase::MatrixXs MatrixXs;

explicit ActivationModelWeightedQuadTpl(const VectorXs& weights)
: Base(weights.size()), weights_(weights), new_weights_(false){};
virtual ~ActivationModelWeightedQuadTpl(){};
: Base(weights.size()), weights_(weights), new_weights_(false) {};
virtual ~ActivationModelWeightedQuadTpl() {};

virtual void calc(const boost::shared_ptr<ActivationDataAbstract>& data,
const Eigen::Ref<const VectorXs>& r) {
Expand Down
4 changes: 2 additions & 2 deletions include/crocoddyl/core/actuation/actuation-squashing.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ class ActuationSquashingModelTpl : public ActuationModelAbstractTpl<_Scalar> {
boost::shared_ptr<SquashingModelAbstract> squashing, const std::size_t nu)
: Base(actuation->get_state(), nu),
squashing_(squashing),
actuation_(actuation){};
actuation_(actuation) {};

virtual ~ActuationSquashingModelTpl(){};
virtual ~ActuationSquashingModelTpl() {};

virtual void calc(const boost::shared_ptr<ActuationDataAbstract>& data,
const Eigen::Ref<const VectorXs>& x,
Expand Down
2 changes: 1 addition & 1 deletion include/crocoddyl/core/actuation/squashing-base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class SquashingModelAbstractTpl {
throw_pretty("Invalid argument: " << "ns cannot be zero");
}
};
virtual ~SquashingModelAbstractTpl(){};
virtual ~SquashingModelAbstractTpl() {};

virtual void calc(const boost::shared_ptr<SquashingDataAbstract>& data,
const Eigen::Ref<const VectorXs>& s) = 0;
Expand Down
2 changes: 1 addition & 1 deletion include/crocoddyl/core/actuation/squashing/smooth-sat.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class SquashingModelSmoothSatTpl : public SquashingModelAbstractTpl<_Scalar> {
a_ = d_.array() * d_.array();
}

virtual ~SquashingModelSmoothSatTpl(){};
virtual ~SquashingModelSmoothSatTpl() {};

virtual void calc(const boost::shared_ptr<SquashingDataAbstract>& data,
const Eigen::Ref<const VectorXs>& s) {
Expand Down
4 changes: 2 additions & 2 deletions include/crocoddyl/multibody/actuations/floating-base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ class ActuationModelFloatingBaseTpl
state->get_pinocchio()->existJointName("root_joint")
? state->get_pinocchio()->getJointId("root_joint")
: 0)]
.nv()){};
virtual ~ActuationModelFloatingBaseTpl(){};
.nv()) {};
virtual ~ActuationModelFloatingBaseTpl() {};

/**
* @brief Compute the floating-base actuation signal from the joint-torque
Expand Down
4 changes: 2 additions & 2 deletions include/crocoddyl/multibody/actuations/full.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ class ActuationModelFullTpl : public ActuationModelAbstractTpl<_Scalar> {
* @param[in] state State of the dynamical system
*/
explicit ActuationModelFullTpl(boost::shared_ptr<StateAbstract> state)
: Base(state, state->get_nv()){};
virtual ~ActuationModelFullTpl(){};
: Base(state, state->get_nv()) {};
virtual ~ActuationModelFullTpl() {};

/**
* @brief Compute the full actuation
Expand Down
Loading