Skip to content

Commit 2fca777

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 18d43c2 commit 2fca777

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

include/sot/dynamic-pinocchio/dynamic-pinocchio.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ namespace command {
6666
class SetFile;
6767
class CreateOpPoint;
6868
} // namespace command
69-
/* --------------------------------------------------------------------- */
70-
/* --- CLASS ----------------------------------------------------------- */
71-
/* --------------------------------------------------------------------- */
69+
/* --------------------------------------------------------------------- */
70+
/* --- CLASS ----------------------------------------------------------- */
71+
/* --------------------------------------------------------------------- */
7272

7373
/*! @ingroup signals
7474
\brief This class provides an inverse dynamic model of the robot.

tests/test_djj.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ using namespace std;
1616
using namespace dynamicsJRLJapan;
1717

1818
/* --- DISPLAY TREE --------------------------------------------------------- */
19-
void RecursiveDisplayOfJoints(const CjrlJoint *aJoint) {
19+
void RecursiveDisplayOfJoints(const CjrlJoint* aJoint) {
2020
if (aJoint == 0) return;
2121
int NbChildren = aJoint->countChildJoints();
2222
cout << " rank : " << aJoint->rankInConfiguration() << endl;
@@ -26,8 +26,8 @@ void RecursiveDisplayOfJoints(const CjrlJoint *aJoint) {
2626
}
2727
}
2828

29-
void DisplayDynamicRobotInformation(CjrlDynamicRobot *aDynamicRobot) {
30-
std::vector<CjrlJoint *> aVec = aDynamicRobot->jointVector();
29+
void DisplayDynamicRobotInformation(CjrlDynamicRobot* aDynamicRobot) {
30+
std::vector<CjrlJoint*> aVec = aDynamicRobot->jointVector();
3131
int r = aVec.size();
3232
cout << "Number of joints :" << r << endl;
3333
for (int i = 0; i < r; i++) {
@@ -48,7 +48,7 @@ void DisplayMatrix(MAL_MATRIX(&aJ, double)) {
4848
}
4949

5050
/* --- DISPLAY MASS PROPERTIES OF A CHAIN --- */
51-
void GoDownTree(const CjrlJoint *startJoint) {
51+
void GoDownTree(const CjrlJoint* startJoint) {
5252
cout << "Mass-inertie property of joint ranked :"
5353
<< startJoint->rankInConfiguration() << endl;
5454
cout << "Mass of the body: " << startJoint->linkedBody()->mass() << endl;
@@ -57,15 +57,15 @@ void GoDownTree(const CjrlJoint *startJoint) {
5757
cout << startJoint->currentTransformation() << endl;
5858

5959
if (startJoint->countChildJoints() != 0) {
60-
const CjrlJoint *childJoint = startJoint->childJoint(0);
60+
const CjrlJoint* childJoint = startJoint->childJoint(0);
6161
GoDownTree(childJoint);
6262
}
6363
}
6464

6565
/* --- MAIN ----------------------------------------------------------------- */
6666
/* --- MAIN ----------------------------------------------------------------- */
6767
/* --- MAIN ----------------------------------------------------------------- */
68-
int main(int argc, char *argv[]) {
68+
int main(int argc, char* argv[]) {
6969
if (argc != 4) {
7070
cerr << " This program takes 3 arguments: " << endl;
7171
cerr << "./TestHumanoidDynamicRobot PATH_TO_VRML_FILE "
@@ -84,7 +84,7 @@ int main(int argc, char *argv[]) {
8484

8585
/* ------------------------------------------------------------------------ */
8686
dynamicsJRLJapan::ObjectFactory aRobotDynamicsObjectConstructor;
87-
CjrlHumanoidDynamicRobot *aHDR =
87+
CjrlHumanoidDynamicRobot* aHDR =
8888
aRobotDynamicsObjectConstructor.createHumanoidDynamicRobot();
8989

9090
// DynamicMultiBody * aDMB
@@ -100,7 +100,7 @@ int main(int argc, char *argv[]) {
100100
/* ------------------------------------------------------------------------ */
101101

102102
// Display tree of the joints.
103-
CjrlJoint *rootJoint = aHDR->rootJoint();
103+
CjrlJoint* rootJoint = aHDR->rootJoint();
104104
RecursiveDisplayOfJoints(rootJoint);
105105

106106
// Test the computation of the jacobian.
@@ -151,8 +151,8 @@ int main(int argc, char *argv[]) {
151151
cout << "Rank of the left hand " << endl;
152152
cout << aHDR->leftWrist()->rankInConfiguration() << endl;
153153

154-
vector<CjrlJoint *> aVec = aHDR->jointVector();
155-
CjrlJoint *aJoint = aVec[22];
154+
vector<CjrlJoint*> aVec = aHDR->jointVector();
155+
CjrlJoint* aJoint = aVec[22];
156156
aJoint->computeJacobianJointWrtConfig();
157157
MAL_MATRIX(aJ, double);
158158
aJ = aJoint->jacobianJointWrtConfig();

tests/test_results.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace djj = dynamicsJRLJapan;
2828

2929
using namespace std;
3030

31-
int main(int argc, char *argv[]) {
31+
int main(int argc, char* argv[]) {
3232
if (argc != 6) {
3333
cerr << " This program takes 4 arguments: " << endl;
3434
cerr << "./TestHumanoidDynamicRobot PATH_TO_VRML_FILE VRML_FILE_NAME "
@@ -45,14 +45,14 @@ int main(int argc, char *argv[]) {
4545
string aMapFromJointToRank = argv[4];
4646

4747
dynamicsJRLJapan::ObjectFactory aRobotDynamicsObjectConstructor;
48-
CjrlHumanoidDynamicRobot *aHDR =
48+
CjrlHumanoidDynamicRobot* aHDR =
4949
aRobotDynamicsObjectConstructor.createHumanoidDynamicRobot();
5050

5151
string RobotFileName = aPath + aName;
5252
dynamicsJRLJapan::parseOpenHRPVRMLFile(
5353
*aHDR, RobotFileName, aMapFromJointToRank, aSpecificitiesFileName);
5454

55-
CjrlHumanoidDynamicRobot *aHDR2 =
55+
CjrlHumanoidDynamicRobot* aHDR2 =
5656
aRobotDynamicsObjectConstructor.createHumanoidDynamicRobot();
5757
// cout << "aHDMB2 Finished the initialization"<< endl;
5858
dynamicsJRLJapan::parseOpenHRPVRMLFile(

0 commit comments

Comments
 (0)