Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit ceff84d

Browse files
authored
Merge pull request #95 from stack-of-tasks/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 84145b1 + 97fa5f3 commit ceff84d

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repos:
66
hooks:
77
- id: cmake-format
88
- repo: https://github.com/pre-commit/mirrors-clang-format
9-
rev: v20.1.8
9+
rev: v21.1.2
1010
hooks:
1111
- id: clang-format
1212
args:
@@ -29,7 +29,7 @@ repos:
2929
- id: fix-byte-order-marker
3030
- id: mixed-line-ending
3131
- id: trailing-whitespace
32-
- repo: https://github.com/psf/black
33-
rev: 25.1.0
32+
- repo: https://github.com/psf/black-pre-commit-mirror
33+
rev: 25.9.0
3434
hooks:
3535
- id: black

include/sot/torque_control/ddp-actuator-solver.hh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ class SOTDDPACTUATORSOLVER_EXPORT DdpActuatorSolver
6666
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
6767

6868
/** Constructor */
69-
DdpActuatorSolver(const std::string &name);
70-
virtual void display(std::ostream &os) const;
69+
DdpActuatorSolver(const std::string& name);
70+
virtual void display(std::ostream& os) const;
7171

7272
protected:
7373
/** Initialize the DDP.
@@ -76,8 +76,8 @@ class SOTDDPACTUATORSOLVER_EXPORT DdpActuatorSolver
7676
* @param nbItMax Maximum number of iterations.
7777
* @param stopCriteria The value of the stopping criteria.
7878
*/
79-
void param_init(const double &timestep, const int &T, const int &nbItMax,
80-
const double &stopCriteria);
79+
void param_init(const double& timestep, const int& T, const int& nbItMax,
80+
const double& stopCriteria);
8181
};
8282
} // namespace torque_control
8383
} // namespace sot

src/ddp-actuator-solver.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ typedef DdpActuatorSolver EntityClassName;
6262
/* --- DG FACTORY ------------------------------------------------------- */
6363
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(DdpActuatorSolver, "DdpActuatorSolver");
6464

65-
DdpActuatorSolver::DdpActuatorSolver(const std::string &name)
65+
DdpActuatorSolver::DdpActuatorSolver(const std::string& name)
6666
: Entity(name),
6767
CONSTRUCT_SIGNAL_IN(pos_des, dynamicgraph::Vector),
6868
CONSTRUCT_SIGNAL_IN(pos_motor_measure, dynamicgraph::Vector),
@@ -96,17 +96,17 @@ DdpActuatorSolver::DdpActuatorSolver(const std::string &name)
9696
DEFINE_SIGNAL_OUT_FUNCTION(tau, dynamicgraph::Vector) {
9797
/// ---- Get the information -----
9898
/// Desired position
99-
const dynamicgraph::Vector &pos_des = m_pos_desSIN(iter);
99+
const dynamicgraph::Vector& pos_des = m_pos_desSIN(iter);
100100
/// Measured position
101-
const dynamicgraph::Vector &pos_joint_measure = m_pos_joint_measureSIN(iter);
101+
const dynamicgraph::Vector& pos_joint_measure = m_pos_joint_measureSIN(iter);
102102
/// Measured speed
103-
const dynamicgraph::Vector &dx_measure = m_dx_measureSIN(iter);
103+
const dynamicgraph::Vector& dx_measure = m_dx_measureSIN(iter);
104104
/// Measured temperature
105-
const dynamicgraph::Vector &temp_measure = m_temp_measureSIN(iter);
105+
const dynamicgraph::Vector& temp_measure = m_temp_measureSIN(iter);
106106
/// Measured torque
107-
const dynamicgraph::Vector &tau_measure = m_tau_measureSIN(iter);
107+
const dynamicgraph::Vector& tau_measure = m_tau_measureSIN(iter);
108108
/// Desired torque
109-
const dynamicgraph::Vector &tau_des = m_tau_desSIN(iter);
109+
const dynamicgraph::Vector& tau_des = m_tau_desSIN(iter);
110110

111111
DDPSolver<double, 5, 1>::stateVec_t xinit, xDes;
112112

@@ -150,9 +150,9 @@ DEFINE_SIGNAL_OUT_FUNCTION(tau, dynamicgraph::Vector) {
150150
return s;
151151
}
152152

153-
void DdpActuatorSolver::param_init(const double &timestep, const int &T,
154-
const int &nbItMax,
155-
const double &stopCriteria) {
153+
void DdpActuatorSolver::param_init(const double& timestep, const int& T,
154+
const int& nbItMax,
155+
const double& stopCriteria) {
156156
m_T = T;
157157
m_dt = timestep;
158158
m_iterMax = nbItMax;
@@ -161,7 +161,7 @@ void DdpActuatorSolver::param_init(const double &timestep, const int &T,
161161
m_stopCrit);
162162
}
163163

164-
void DdpActuatorSolver::display(std::ostream &os) const {
164+
void DdpActuatorSolver::display(std::ostream& os) const {
165165
os << " T: " << m_T << " timestep: " << m_dt << " nbItMax: " << m_iterMax
166166
<< " stopCriteria: " << m_stopCrit << std::endl;
167167
}

tests/test-control-manager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ namespace dyn_sot_tc = dynamicgraph::sot::torque_control;
2929
BOOST_AUTO_TEST_CASE(testControlManager) {
3030
dgADD_OSTREAM_TO_RTLOG(std::cout);
3131

32-
dyn_sot_tc::ControlManager &a_control_manager =
33-
*(dynamic_cast<dyn_sot_tc::ControlManager *>(
32+
dyn_sot_tc::ControlManager& a_control_manager =
33+
*(dynamic_cast<dyn_sot_tc::ControlManager*>(
3434
dynamicgraph::FactoryStorage::getInstance()->newEntity(
3535
"ControlManager", "a_control_manager")));
3636

tests/test_controller_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ using boost::test_tools::output_test_stream;
1414
namespace dyn_sot_tc = dynamicgraph::sot::torque_control;
1515

1616
BOOST_AUTO_TEST_CASE(testControlManager) {
17-
dyn_sot_tc::ControlManager &a_control_manager = *(dynamic_cast<dyn_sot_tc *>(
17+
dyn_sot_tc::ControlManager& a_control_manager = *(dynamic_cast<dyn_sot_tc*>(
1818
dynamicgraph::FactoryStorage::getInstance()->newEntity(
1919
"ControlManager", "a_control_manager")));
2020
}

0 commit comments

Comments
 (0)