@@ -16,7 +16,7 @@ using namespace std;
1616using 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 ();
0 commit comments