From d3b4bdb15d15e507fe6287b7504ce3f29a369df8 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel <guilhem.saurel@laas.fr> Date: Fri, 22 Feb 2019 15:32:29 +0100 Subject: [PATCH] remove GPL headers and debian directory --- CMakeLists.txt | 13 -- COPYING.LESSER | 165 ------------------ debian/changelog | 5 - debian/compat | 1 - debian/control | 57 ------ debian/copyright | 23 --- debian/docs | 3 - debian/libsot-dynamic-dev.install | 3 - debian/libsot-dynamic-doc.doc-base | 9 - debian/libsot-dynamic-doc.install | 1 - debian/libsot-dynamic1.0.0.99.install | 1 - debian/rules | 33 ---- debian/source/format | 1 - debian/watch | 8 - doc/additionalDoc/package.hh | 11 -- include/CMakeLists.txt | 13 -- .../sot-dynamic-pinocchio/angle-estimator.h | 12 -- .../sot-dynamic-pinocchio/dynamic-pinocchio.h | 11 -- .../force-compensation.h | 11 -- .../integrator-force-exact.h | 12 -- .../integrator-force-rk4.h | 12 -- .../sot-dynamic-pinocchio/integrator-force.h | 12 -- include/sot-dynamic-pinocchio/mass-apparent.h | 30 +--- .../sot-dynamic-pinocchio/matrix-inertia.h | 19 +- .../waist-attitude-from-sensor.h | 12 -- include/sot-dynamic-pinocchio/zmpreffromcom.h | 12 -- python/kine_romeo.py | 15 +- python/kine_romeo_small.py | 15 +- src/CMakeLists.txt | 13 -- src/angle-estimator-command.h | 13 +- src/angle-estimator.cpp | 11 -- src/dynamic-command.h | 11 -- src/dynamic.cpp | 27 +-- .../sot/dynamics_pinocchio/humanoid_robot.py | 19 +- .../sot/dynamics_pinocchio/parser.py | 3 - .../sot/dynamics_pinocchio/tools.py | 13 -- src/force-compensation.cpp | 11 -- src/integrator-force-exact.cpp | 11 -- src/integrator-force-rk4.cpp | 11 -- src/integrator-force.cpp | 11 -- src/mass-apparent.cpp | 17 +- src/matrix-inertia.cpp | 65 +++---- src/python-module-py.cpp | 31 +--- src/sot-dynamic-pinocchio.cpp | 11 -- src/waist-attitude-from-sensor.cpp | 11 -- src/zmp-from-forces.cpp | 11 -- src/zmpreffromcom.cpp | 11 -- unitTesting/CMakeLists.txt | 13 -- unitTesting/dummy.cpp | 11 -- unitTesting/python/feet_follower.py | 13 -- unitTesting/python/humanoid_robot.py | 13 -- unitTesting/python/reach_both_hands.py | 13 -- unitTesting/python/reach_left_hand.py | 13 -- unitTesting/python/reach_right_hand.py | 13 -- unitTesting/test_djj.cpp | 11 -- unitTesting/test_dyn.cpp | 11 -- unitTesting/test_results.cpp | 35 ++-- 57 files changed, 78 insertions(+), 899 deletions(-) delete mode 100644 COPYING.LESSER delete mode 100644 debian/changelog delete mode 100644 debian/compat delete mode 100644 debian/control delete mode 100644 debian/copyright delete mode 100644 debian/docs delete mode 100644 debian/libsot-dynamic-dev.install delete mode 100644 debian/libsot-dynamic-doc.doc-base delete mode 100644 debian/libsot-dynamic-doc.install delete mode 100644 debian/libsot-dynamic1.0.0.99.install delete mode 100755 debian/rules delete mode 100644 debian/source/format delete mode 100644 debian/watch diff --git a/CMakeLists.txt b/CMakeLists.txt index 4befdcc..f298f34 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,17 +1,4 @@ # Copyright 2010, François Bleibel, Olivier Stasse, JRL, CNRS/AIST -# -# This file is part of sot-dynamic-pinocchio. -# sot-dynamic-pinocchio is free software: you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public License -# as published by the Free Software Foundation, either version 3 of -# the License, or (at your option) any later version. -# -# sot-dynamic-pinocchio is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Lesser Public License for more details. You should have -# received a copy of the GNU Lesser General Public License along with -# sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. CMAKE_MINIMUM_REQUIRED(VERSION 2.6) diff --git a/COPYING.LESSER b/COPYING.LESSER deleted file mode 100644 index 65c5ca8..0000000 --- a/COPYING.LESSER +++ /dev/null @@ -1,165 +0,0 @@ - GNU LESSER GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - - This version of the GNU Lesser General Public License incorporates -the terms and conditions of version 3 of the GNU General Public -License, supplemented by the additional permissions listed below. - - 0. Additional Definitions. - - As used herein, "this License" refers to version 3 of the GNU Lesser -General Public License, and the "GNU GPL" refers to version 3 of the GNU -General Public License. - - "The Library" refers to a covered work governed by this License, -other than an Application or a Combined Work as defined below. - - An "Application" is any work that makes use of an interface provided -by the Library, but which is not otherwise based on the Library. -Defining a subclass of a class defined by the Library is deemed a mode -of using an interface provided by the Library. - - A "Combined Work" is a work produced by combining or linking an -Application with the Library. The particular version of the Library -with which the Combined Work was made is also called the "Linked -Version". - - The "Minimal Corresponding Source" for a Combined Work means the -Corresponding Source for the Combined Work, excluding any source code -for portions of the Combined Work that, considered in isolation, are -based on the Application, and not on the Linked Version. - - The "Corresponding Application Code" for a Combined Work means the -object code and/or source code for the Application, including any data -and utility programs needed for reproducing the Combined Work from the -Application, but excluding the System Libraries of the Combined Work. - - 1. Exception to Section 3 of the GNU GPL. - - You may convey a covered work under sections 3 and 4 of this License -without being bound by section 3 of the GNU GPL. - - 2. Conveying Modified Versions. - - If you modify a copy of the Library, and, in your modifications, a -facility refers to a function or data to be supplied by an Application -that uses the facility (other than as an argument passed when the -facility is invoked), then you may convey a copy of the modified -version: - - a) under this License, provided that you make a good faith effort to - ensure that, in the event an Application does not supply the - function or data, the facility still operates, and performs - whatever part of its purpose remains meaningful, or - - b) under the GNU GPL, with none of the additional permissions of - this License applicable to that copy. - - 3. Object Code Incorporating Material from Library Header Files. - - The object code form of an Application may incorporate material from -a header file that is part of the Library. You may convey such object -code under terms of your choice, provided that, if the incorporated -material is not limited to numerical parameters, data structure -layouts and accessors, or small macros, inline functions and templates -(ten or fewer lines in length), you do both of the following: - - a) Give prominent notice with each copy of the object code that the - Library is used in it and that the Library and its use are - covered by this License. - - b) Accompany the object code with a copy of the GNU GPL and this license - document. - - 4. Combined Works. - - You may convey a Combined Work under terms of your choice that, -taken together, effectively do not restrict modification of the -portions of the Library contained in the Combined Work and reverse -engineering for debugging such modifications, if you also do each of -the following: - - a) Give prominent notice with each copy of the Combined Work that - the Library is used in it and that the Library and its use are - covered by this License. - - b) Accompany the Combined Work with a copy of the GNU GPL and this license - document. - - c) For a Combined Work that displays copyright notices during - execution, include the copyright notice for the Library among - these notices, as well as a reference directing the user to the - copies of the GNU GPL and this license document. - - d) Do one of the following: - - 0) Convey the Minimal Corresponding Source under the terms of this - License, and the Corresponding Application Code in a form - suitable for, and under terms that permit, the user to - recombine or relink the Application with a modified version of - the Linked Version to produce a modified Combined Work, in the - manner specified by section 6 of the GNU GPL for conveying - Corresponding Source. - - 1) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (a) uses at run time - a copy of the Library already present on the user's computer - system, and (b) will operate properly with a modified version - of the Library that is interface-compatible with the Linked - Version. - - e) Provide Installation Information, but only if you would otherwise - be required to provide such information under section 6 of the - GNU GPL, and only to the extent that such information is - necessary to install and execute a modified version of the - Combined Work produced by recombining or relinking the - Application with a modified version of the Linked Version. (If - you use option 4d0, the Installation Information must accompany - the Minimal Corresponding Source and Corresponding Application - Code. If you use option 4d1, you must provide the Installation - Information in the manner specified by section 6 of the GNU GPL - for conveying Corresponding Source.) - - 5. Combined Libraries. - - You may place library facilities that are a work based on the -Library side by side in a single library together with other library -facilities that are not Applications and are not covered by this -License, and convey such a combined library under terms of your -choice, if you do both of the following: - - a) Accompany the combined library with a copy of the same work based - on the Library, uncombined with any other library facilities, - conveyed under the terms of this License. - - b) Give prominent notice with the combined library that part of it - is a work based on the Library, and explaining where to find the - accompanying uncombined form of the same work. - - 6. Revised Versions of the GNU Lesser General Public License. - - The Free Software Foundation may publish revised and/or new versions -of the GNU Lesser General Public License from time to time. Such new -versions will be similar in spirit to the present version, but may -differ in detail to address new problems or concerns. - - Each version is given a distinguishing version number. If the -Library as you received it specifies that a certain numbered version -of the GNU Lesser General Public License "or any later version" -applies to it, you have the option of following the terms and -conditions either of that published version or of any later version -published by the Free Software Foundation. If the Library as you -received it does not specify a version number of the GNU Lesser -General Public License, you may choose any version of the GNU Lesser -General Public License ever published by the Free Software Foundation. - - If the Library as you received it specifies that a proxy can decide -whether future versions of the GNU Lesser General Public License shall -apply, that proxy's public statement of acceptance of any version is -permanent authorization for you to choose that version for the -Library. diff --git a/debian/changelog b/debian/changelog deleted file mode 100644 index b55239a..0000000 --- a/debian/changelog +++ /dev/null @@ -1,5 +0,0 @@ -sot-dynamic (1.0.0.99-1) lucid; urgency=low - - * Initial work. - - -- Thomas Moulard <thomas.moulard@gmail.com> Thu, 30 Sep 2010 10:11:00 +0200 diff --git a/debian/compat b/debian/compat deleted file mode 100644 index 7f8f011..0000000 --- a/debian/compat +++ /dev/null @@ -1 +0,0 @@ -7 diff --git a/debian/control b/debian/control deleted file mode 100644 index bd7197b..0000000 --- a/debian/control +++ /dev/null @@ -1,57 +0,0 @@ -Source: sot-dynamic -Priority: extra -Maintainer: Thomas Moulard <thomas.moulard@gmail.com> -Build-Depends: debhelper (>= 7.0.50~), cmake (>= 2.6), - doxygen (>= 1.6.3), - pkg-config (>= 0.22), - libjrl-dynamics-dev (>= 1.19.1), - libdynamic-graph-dev (>= 1.0.0.99), - libsot-core-dev (>= 1.0.0.99), - libjrl-dynamics-dev (>= 1.19.1.99), - libhrp2-dynamics-dev (>= 1.5.1.99), - libhrp2-10-optimized1.0.0.99 (>= 1.0.0.99), - hrp2-10-data (>= 1.0.0.99), - hrp2-14-data (>= 1.7.5), - hrp2-14-small-data (>= 1.0.0.99), -#FIXME: missing hrp2-10-optimized -Standards-Version: 3.8.4 -#Vcs-Git: -#Vcs-browser: -Section: libs -#Homepage: - -Package: libsot-dynamic-dev -Section: libdevel -Architecture: any -Depends: libjrl-mal-dev (>= 1.9.0.99), libdynamic-graph-dev (>= 1.0.0.99), libsot-core-dev (>= 1.0.0.99), libjrl-dynamics-dev (>= 1.19.1.99), libhrp2-dynamics-dev (>= 1.5.1.99), hrp2-10-data (>= 1.0.0.99), hrp2-14-data (>= 1.7.5), hrp2-14-small-data (>= 1.0.0.99),libhrp2-10-optimized1.0.0.99 (>= 1.0.0.99), libsot-dynamic1.0.0.99 (= ${binary:Version}), ${misc:Depends} -Suggests: libsot-dynamic-doc -Description: dynamic computation plug-in for dynamic graph - This package provides dynamic computation plug-in for dynamic-graph. - It provides support for jrl-dynamics and abstract-robot-dynamics algorithms - into the dynamic-graph data-flow. - . - This package contains development files (headers and pkg-config file). - -Package: libsot-dynamic1.0.0.99 -Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends} -Description: dynamic computation plug-in for dynamic graph - This package provides dynamic computation plug-in for dynamic-graph. - It provides support for jrl-dynamics and abstract-robot-dynamics algorithms - into the dynamic-graph data-flow. - . - This package contains the dynamic graph plug-ins and versioned shared - libraries. - - -Package: libsot-dynamic-doc -Section: doc -Architecture: all -Depends: ${misc:Depends} -Suggests: libdynamic-graph-doc -Description: documentation for the dynamic computation plug-in for dynamic graph - This package provides dynamic computation plug-in for dynamic-graph. - It provides support for jrl-dynamics and abstract-robot-dynamics algorithms - into the dynamic-graph data-flow. - . - This package contains the Doxygen documentation. diff --git a/debian/copyright b/debian/copyright deleted file mode 100644 index 2d5c8e2..0000000 --- a/debian/copyright +++ /dev/null @@ -1,23 +0,0 @@ -This work was packaged for Debian by: - - Thomas Moulard <thomas.moulard@gmail.com> on Thu, 30 Sep 2010 10:16:00 +0200 - -It was downloaded from <not yet available> - -Upstream Author(s): - - Thomas Moulard <thomas.moulard@gmail.com> - -Copyright: - - Copyright (C) 2010 François Bleibel, Olivier Stasse, JRL, CNRS/AIST. - -License: - - See `/usr/share/common-licenses/LGPL-3'. - -The Debian packaging is: - - Copyright (C) 2010 Thomas Moulard <thomas.moulard@gmail.com> - and is licensed under the GPL version 3, - see `/usr/share/common-licenses/GPL-3'. diff --git a/debian/docs b/debian/docs deleted file mode 100644 index 46a4ca7..0000000 --- a/debian/docs +++ /dev/null @@ -1,3 +0,0 @@ -AUTHORS -NEWS -README.md diff --git a/debian/libsot-dynamic-dev.install b/debian/libsot-dynamic-dev.install deleted file mode 100644 index b0a5f2d..0000000 --- a/debian/libsot-dynamic-dev.install +++ /dev/null @@ -1,3 +0,0 @@ -usr/include/* -usr/lib/plugin/*.so -usr/lib/pkgconfig/* diff --git a/debian/libsot-dynamic-doc.doc-base b/debian/libsot-dynamic-doc.doc-base deleted file mode 100644 index 3752deb..0000000 --- a/debian/libsot-dynamic-doc.doc-base +++ /dev/null @@ -1,9 +0,0 @@ -Document: sot-dynamic -Title: Debian sot-dynamic Manual -Author: Thomas Moulard <thomas.moulard@gmail.com> -Abstract: Doxygen documentation of sot-dynamic. -Section: Programming - -Format: HTML -Index: /usr/share/doc/sot-dynamic/html/index.html -Files: /usr/share/doc/sot-dynamic/html/*.html diff --git a/debian/libsot-dynamic-doc.install b/debian/libsot-dynamic-doc.install deleted file mode 100644 index bd4f269..0000000 --- a/debian/libsot-dynamic-doc.install +++ /dev/null @@ -1 +0,0 @@ -usr/share/doc/sot-dynamic/* diff --git a/debian/libsot-dynamic1.0.0.99.install b/debian/libsot-dynamic1.0.0.99.install deleted file mode 100644 index 083da28..0000000 --- a/debian/libsot-dynamic1.0.0.99.install +++ /dev/null @@ -1 +0,0 @@ -usr/lib/plugin/*.so.* diff --git a/debian/rules b/debian/rules deleted file mode 100755 index cc750be..0000000 --- a/debian/rules +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/make -f -# -*- makefile -*- -# Sample debian/rules that uses debhelper. -# This file was originally written by Joey Hess and Craig Small. -# As a special exception, when this file is copied by dh-make into a -# dh-make output file, you may use that output file without restriction. -# This special exception was added by Craig Small in version 0.37 of dh-make. - -# Uncomment this to turn on verbose mode. -export DH_VERBOSE=1 - -# FIXME: test suite fails for now. -export DEB_BUILD_OPTIONS=nocheck - -override_dh_auto_configure: - dh_auto_configure -- -DGENERATE_DOC=ON - -# Remove useless ldconfig call. -override_dh_makeshlibs: - dh_makeshlibs -- - rm debian/libsot-dynamic1.0.0.99.postinst.debhelper - rm debian/libsot-dynamic1.0.0.99.postrm.debhelper - -# FIXME: this is only necessary because some binaries are linked against -# plug-ins. -# Teach dh_shlibdeps where the plug-in are located. -override_dh_shlibdeps: - export LD_LIBRARY_PATH=\ -debian/libsot-dynamic1.0.0.99/usr/lib/plugin:$(LD_LIBRARY_PATH) \ -&& dh_shlibdeps -- - -%: - dh $@ diff --git a/debian/source/format b/debian/source/format deleted file mode 100644 index 163aaf8..0000000 --- a/debian/source/format +++ /dev/null @@ -1 +0,0 @@ -3.0 (quilt) diff --git a/debian/watch b/debian/watch deleted file mode 100644 index 7801903..0000000 --- a/debian/watch +++ /dev/null @@ -1,8 +0,0 @@ -# Watch control file for uscan -# Rename this file to "watch" and then you can run the "uscan" command -# to check for upstream updates and more. -# See uscan(1) for format - -version=3 - -#http://github.com/laas/hpp-util/downloads /laas/hpp-util/tarball/v(.*) diff --git a/doc/additionalDoc/package.hh b/doc/additionalDoc/package.hh index a3a5229..17805f4 100644 --- a/doc/additionalDoc/package.hh +++ b/doc/additionalDoc/package.hh @@ -5,17 +5,6 @@ * * CNRS/AIST * - * This file is part of sot-dynamic. - * sot-dynamic is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic. If not, see <http://www.gnu.org/licenses/>. */ /** \mainpage diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt index 06d457c..02d9461 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt @@ -1,17 +1,4 @@ # Copyright 2010, François Bleibel, Olivier Stasse, JRL, CNRS/AIST -# -# This file is part of sot-dynamic-pinocchio. -# sot-dynamic-pinocchio is free software: you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public License -# as published by the Free Software Foundation, either version 3 of -# the License, or (at your option) any later version. -# -# sot-dynamic-pinocchio is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Lesser Public License for more details. You should have -# received a copy of the GNU Lesser General Public License along with -# sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. SET(${PROJECT_NAME}_HEADERS dynamic-pinocchio.h diff --git a/include/sot-dynamic-pinocchio/angle-estimator.h b/include/sot-dynamic-pinocchio/angle-estimator.h index 33185c8..4349c69 100644 --- a/include/sot-dynamic-pinocchio/angle-estimator.h +++ b/include/sot-dynamic-pinocchio/angle-estimator.h @@ -5,17 +5,6 @@ * * CNRS/AIST * - * This file is part of sot-dynamic-pinocchio. - * sot-dynamic-pinocchio is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic-pinocchio is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. */ #ifndef __SOT_ANGLE_ESTIMATOR_H__ @@ -125,4 +114,3 @@ class SOTANGLEESTIMATOR_EXPORT AngleEstimator #endif // #ifndef __SOT_ANGLE_ESTIMATOR_H__ - diff --git a/include/sot-dynamic-pinocchio/dynamic-pinocchio.h b/include/sot-dynamic-pinocchio/dynamic-pinocchio.h index c2a0c36..b217934 100644 --- a/include/sot-dynamic-pinocchio/dynamic-pinocchio.h +++ b/include/sot-dynamic-pinocchio/dynamic-pinocchio.h @@ -5,17 +5,6 @@ * * CNRS/AIST * - * This file is part of sot-dynamic-pinocchio. - * sot-dynamic-pinocchio is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic-pinocchio is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. */ #ifndef __SOT_DYNAMIC_PINOCCHIO_H__ diff --git a/include/sot-dynamic-pinocchio/force-compensation.h b/include/sot-dynamic-pinocchio/force-compensation.h index 6cb9739..11df058 100644 --- a/include/sot-dynamic-pinocchio/force-compensation.h +++ b/include/sot-dynamic-pinocchio/force-compensation.h @@ -5,17 +5,6 @@ * * CNRS/AIST * - * This file is part of sot-dynamic-pinocchio. - * sot-dynamic-pinocchio is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic-pinocchio is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. */ #ifndef __SOT_SOTFORCECOMPENSATION_H__ diff --git a/include/sot-dynamic-pinocchio/integrator-force-exact.h b/include/sot-dynamic-pinocchio/integrator-force-exact.h index 2a8f8cc..5d82735 100644 --- a/include/sot-dynamic-pinocchio/integrator-force-exact.h +++ b/include/sot-dynamic-pinocchio/integrator-force-exact.h @@ -5,17 +5,6 @@ * * CNRS/AIST * - * This file is part of sot-dynamic-pinocchio. - * sot-dynamic-pinocchio is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic-pinocchio is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. */ #ifndef __SOT_SOTINTEGRATORFORCEEXACT_H__ @@ -90,4 +79,3 @@ class SOTINTEGRATORFORCEEXACT_EXPORT IntegratorForceExact #endif // #ifndef __SOT_SOTINTEGRATORFORCEEXACT_H__ - diff --git a/include/sot-dynamic-pinocchio/integrator-force-rk4.h b/include/sot-dynamic-pinocchio/integrator-force-rk4.h index 1621976..acba193 100644 --- a/include/sot-dynamic-pinocchio/integrator-force-rk4.h +++ b/include/sot-dynamic-pinocchio/integrator-force-rk4.h @@ -5,17 +5,6 @@ * * CNRS/AIST * - * This file is part of sot-dynamic-pinocchio. - * sot-dynamic-pinocchio is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic-pinocchio is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. */ #ifndef __SOT_SOTINTEGRATORFORCERK4_H__ @@ -91,4 +80,3 @@ class SOTINTEGRATORFORCERK4_EXPORT IntegratorForceRK4 #endif // #ifndef __SOT_SOTINTEGRATORFORCERK4_H__ - diff --git a/include/sot-dynamic-pinocchio/integrator-force.h b/include/sot-dynamic-pinocchio/integrator-force.h index 4b7834a..4b2c5bb 100644 --- a/include/sot-dynamic-pinocchio/integrator-force.h +++ b/include/sot-dynamic-pinocchio/integrator-force.h @@ -5,17 +5,6 @@ * * CNRS/AIST * - * This file is part of sot-dynamic-pinocchio. - * sot-dynamic-pinocchio is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic-pinocchio is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. */ #ifndef __SOT_SOTINTEGRATORFORCE_H__ @@ -110,4 +99,3 @@ class SOTINTEGRATORFORCE_EXPORT IntegratorForce #endif // #ifndef __SOT_WAISTATTITUDEFROMSENSOR_H__ - diff --git a/include/sot-dynamic-pinocchio/mass-apparent.h b/include/sot-dynamic-pinocchio/mass-apparent.h index 43743cb..50a22ce 100644 --- a/include/sot-dynamic-pinocchio/mass-apparent.h +++ b/include/sot-dynamic-pinocchio/mass-apparent.h @@ -5,17 +5,6 @@ * * CNRS/AIST * - * This file is part of sot-dynamic-pinocchio. - * sot-dynamic-pinocchio is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic-pinocchio is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. */ #ifndef __SOT_SOTMASSAPPARENT_H__ @@ -43,12 +32,12 @@ /* --- API ------------------------------------------------------------- */ /* --------------------------------------------------------------------- */ -#if defined (WIN32) +#if defined (WIN32) # if defined (mass_apparent_EXPORTS) # define SOTMASSAPPARENT_EXPORT __declspec(dllexport) -# else +# else # define SOTMASSAPPARENT_EXPORT __declspec(dllimport) -# endif +# endif #else # define SOTMASSAPPARENT_EXPORT #endif @@ -74,13 +63,13 @@ namespace dynamicgraph { namespace sot { public: /* --- SIGNAL --- */ - dg::SignalPtr<dynamicgraph::Matrix,int> jacobianSIN; - dg::SignalPtr<dynamicgraph::Matrix,int> inertiaInverseSIN; - dg::SignalTimeDependent<dynamicgraph::Matrix,int> massInverseSOUT; - dg::SignalTimeDependent<dynamicgraph::Matrix,int> massSOUT; + dg::SignalPtr<dynamicgraph::Matrix,int> jacobianSIN; + dg::SignalPtr<dynamicgraph::Matrix,int> inertiaInverseSIN; + dg::SignalTimeDependent<dynamicgraph::Matrix,int> massInverseSOUT; + dg::SignalTimeDependent<dynamicgraph::Matrix,int> massSOUT; - dg::SignalPtr<dynamicgraph::Matrix,int> inertiaSIN; - dg::SignalTimeDependent<dynamicgraph::Matrix,int> inertiaInverseSOUT; + dg::SignalPtr<dynamicgraph::Matrix,int> inertiaSIN; + dg::SignalTimeDependent<dynamicgraph::Matrix,int> inertiaInverseSOUT; public: /* --- FUNCTIONS --- */ dynamicgraph::Matrix& computeMassInverse( dynamicgraph::Matrix& res,const int& time ); @@ -93,4 +82,3 @@ namespace dynamicgraph { namespace sot { } // namespace dynamicgraph #endif // #ifndef __SOT_SOTMASSAPPARENT_H__ - diff --git a/include/sot-dynamic-pinocchio/matrix-inertia.h b/include/sot-dynamic-pinocchio/matrix-inertia.h index f385cd7..bb4d45b 100644 --- a/include/sot-dynamic-pinocchio/matrix-inertia.h +++ b/include/sot-dynamic-pinocchio/matrix-inertia.h @@ -5,17 +5,6 @@ * * CNRS/AIST * - * This file is part of sot-dynamic-pinocchio. - * sot-dynamic-pinocchio is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic-pinocchio is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. */ #ifndef __SOT_SOTMATRIXINERTIA_H__ @@ -34,12 +23,12 @@ /* --- API ------------------------------------------------------------- */ /* --------------------------------------------------------------------- */ -#if defined (WIN32) +#if defined (WIN32) # if defined (matrix_inertia_EXPORTS) # define SOTMATRIXINERTIA_EXPORT __declspec(dllexport) -# else +# else # define SOTMATRIXINERTIA_EXPORT __declspec(dllimport) -# endif +# endif #else # define SOTMATRIXINERTIA_EXPORT #endif @@ -80,7 +69,7 @@ private: dynamicsJRLJapan::HumanoidDynamicMultiBody* aHDMB_; std::vector<CjrlJoint*> joints_; std::vector<int> parentIndex_; - + std::vector< dynamicgraph::Matrix > Ic; std::vector< dynamicgraph::Vector > phi; std::vector< MatrixTwist > iVpi; diff --git a/include/sot-dynamic-pinocchio/waist-attitude-from-sensor.h b/include/sot-dynamic-pinocchio/waist-attitude-from-sensor.h index 57cb9cf..58f7aaa 100644 --- a/include/sot-dynamic-pinocchio/waist-attitude-from-sensor.h +++ b/include/sot-dynamic-pinocchio/waist-attitude-from-sensor.h @@ -5,17 +5,6 @@ * * CNRS/AIST * - * This file is part of sot-dynamic-pinocchio. - * sot-dynamic-pinocchio is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic-pinocchio is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. */ #ifndef __SOT_WAISTATTITUDEFROMSENSOR_H__ @@ -120,4 +109,3 @@ class SOTWAISTATTITUDEFROMSENSOR_EXPORT WaistPoseFromSensorAndContact #endif // #ifndef __SOT_WAISTATTITUDEFROMSENSOR_H__ - diff --git a/include/sot-dynamic-pinocchio/zmpreffromcom.h b/include/sot-dynamic-pinocchio/zmpreffromcom.h index d70a2e3..d256603 100644 --- a/include/sot-dynamic-pinocchio/zmpreffromcom.h +++ b/include/sot-dynamic-pinocchio/zmpreffromcom.h @@ -5,17 +5,6 @@ * * CNRS/AIST * - * This file is part of sot-dynamic-pinocchio. - * sot-dynamic-pinocchio is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic-pinocchio is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. */ #ifndef __SOT_ZMPREFFROMCOM_H__ @@ -93,4 +82,3 @@ class SOTZMPREFFROMCOM_EXPORT ZmprefFromCom #endif // #ifndef __SOT_ZMPREFFROMCOM_H__ - diff --git a/python/kine_romeo.py b/python/kine_romeo.py index de0a614..8e00913 100644 --- a/python/kine_romeo.py +++ b/python/kine_romeo.py @@ -1,18 +1,5 @@ # -*- coding: utf-8 -*- # Copyright 2011, Florent Lamiraux, Thomas Moulard, JRL, CNRS/AIST -# -# This file is part of dynamic-graph. -# dynamic-graph is free software: you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public License -# as published by the Free Software Foundation, either version 3 of -# the License, or (at your option) any later version. -# -# dynamic-graph is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Lesser Public License for more details. You should have -# received a copy of the GNU Lesser General Public License along with -# dynamic-graph. If not, see <http://www.gnu.org/licenses/>. from dynamic_graph.sot.core.matrix_util import matrixToTuple, vectorToTuple,rotate, matrixToRPY from dynamic_graph.sot.core.meta_tasks_kine import * @@ -74,7 +61,7 @@ for name,joint in [ ['LF','left-ankle'], ['RF','right-ankle' ] ]: # --- RUN ---------------------------------------------------------------------- # Move the desired position of the right hand -# 1st param: task concerned +# 1st param: task concerned # 2st param: objective # 3rd param: selected parameters # 4th param: gain diff --git a/python/kine_romeo_small.py b/python/kine_romeo_small.py index f0d6228..778b2c6 100644 --- a/python/kine_romeo_small.py +++ b/python/kine_romeo_small.py @@ -1,18 +1,5 @@ # -*- coding: utf-8 -*- # Copyright 2011, Florent Lamiraux, Thomas Moulard, JRL, CNRS/AIST -# -# This file is part of dynamic-graph. -# dynamic-graph is free software: you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public License -# as published by the Free Software Foundation, either version 3 of -# the License, or (at your option) any later version. -# -# dynamic-graph is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Lesser Public License for more details. You should have -# received a copy of the GNU Lesser General Public License along with -# dynamic-graph. If not, see <http://www.gnu.org/licenses/>. from dynamic_graph.sot.core.matrix_util import matrixToTuple, vectorToTuple,rotate, matrixToRPY from dynamic_graph.sot.core.meta_tasks_kine import * @@ -74,7 +61,7 @@ for name,joint in [ ['LF','left-ankle'], ['RF','right-ankle' ] ]: # --- RUN ---------------------------------------------------------------------- # Move the desired position of the right hand -# 1st param: task concerned +# 1st param: task concerned # 2st param: objective # 3rd param: selected parameters # 4th param: gain diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f52588a..4e074d5 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,18 +1,5 @@ # Copyright 2010, François Bleibel, Olivier Stasse, JRL, CNRS/AIST, # Florent Lamiraux (CNRS/LAAS) -# -# This file is part of sot-dynamic-pinocchio. -# sot-dynamic-pinocchio is free software: you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public License -# as published by the Free Software Foundation, either version 3 of -# the License, or (at your option) any later version. -# -# sot-dynamic-pinocchio is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Lesser Public License for more details. You should have -# received a copy of the GNU Lesser General Public License along with -# sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. LINK_DIRECTORIES(${Boost_LIBRARY_DIRS}) diff --git a/src/angle-estimator-command.h b/src/angle-estimator-command.h index c763106..97f775b 100644 --- a/src/angle-estimator-command.h +++ b/src/angle-estimator-command.h @@ -4,17 +4,6 @@ * * CNRS/LAAS * - * This file is part of sot-core. - * sot-core is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-core is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-core. If not, see <http://www.gnu.org/licenses/>. */ #ifndef ANGLE_ESTIMATOR_COMMAND_H @@ -30,7 +19,7 @@ namespace dynamicgraph { namespace sot { namespace command { using ::dynamicgraph::command::Command; using ::dynamicgraph::command::Value; - + // Command FromSensor class FromSensor : public Command { diff --git a/src/angle-estimator.cpp b/src/angle-estimator.cpp index e0a0e91..7c9d78d 100644 --- a/src/angle-estimator.cpp +++ b/src/angle-estimator.cpp @@ -5,17 +5,6 @@ * * CNRS/AIST * - * This file is part of sot-dynamic-pinocchio. - * sot-dynamic-pinocchio is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic-pinocchio is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. */ #include <sot-dynamic-pinocchio/angle-estimator.h> diff --git a/src/dynamic-command.h b/src/dynamic-command.h index 864dfb8..ea521b3 100644 --- a/src/dynamic-command.h +++ b/src/dynamic-command.h @@ -4,17 +4,6 @@ * * CNRS/AIST * - * This file is part of sot-core. - * sot-core is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-core is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-core. If not, see <http://www.gnu.org/licenses/>. */ #ifndef DYNAMIC_COMMAND_H diff --git a/src/dynamic.cpp b/src/dynamic.cpp index f828854..a175272 100644 --- a/src/dynamic.cpp +++ b/src/dynamic.cpp @@ -5,17 +5,6 @@ * * CNRS/AIST * - * This file is part of sot-dynamic-pinocchio. - * sot-dynamic-pinocchio is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic-pinocchio is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. */ #include <sot-dynamic-pinocchio/dynamic-pinocchio.h> @@ -25,13 +14,13 @@ using namespace dynamicgraph; using namespace dynamicgraph::sot; extern "C" { - ::dynamicgraph::Entity* - EntityMaker_DynamicPinocchio(const std::string& objname) - { - return new DynamicPinocchio (objname); - } - ::dynamicgraph::EntityRegisterer - reg_Dynamic ("DynamicPinocchio", - &EntityMaker_DynamicPinocchio); + ::dynamicgraph::Entity* + EntityMaker_DynamicPinocchio(const std::string& objname) + { + return new DynamicPinocchio (objname); + } + ::dynamicgraph::EntityRegisterer + reg_Dynamic ("DynamicPinocchio", + &EntityMaker_DynamicPinocchio); } //DYNAMICGRAPH_FACTORY_DYNAMIC_PLUGIN(Dynamic,"Dynamic"); diff --git a/src/dynamic_graph/sot/dynamics_pinocchio/humanoid_robot.py b/src/dynamic_graph/sot/dynamics_pinocchio/humanoid_robot.py index 4896b0f..afee3a4 100755 --- a/src/dynamic_graph/sot/dynamics_pinocchio/humanoid_robot.py +++ b/src/dynamic_graph/sot/dynamics_pinocchio/humanoid_robot.py @@ -1,18 +1,5 @@ # -*- coding: utf-8 -*- # Copyright 2011, Florent Lamiraux, Thomas Moulard, JRL, CNRS/AIST -# -# This file is part of dynamic-graph. -# dynamic-graph is free software: you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public License -# as published by the Free Software Foundation, either version 3 of -# the License, or (at your option) any later version. -# -# dynamic-graph is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Lesser Public License for more details. You should have -# received a copy of the GNU Lesser General Public License along with -# dynamic-graph. If not, see <http://www.gnu.org/licenses/>. from __future__ import print_function @@ -54,13 +41,13 @@ class AbstractHumanoidRobot (object): Other attributes require to be defined: - halfSitting: half-sitting position is the robot initial pose. This attribute *must* be defined in subclasses. - + - dynamic: The robot dynamic model. - + - device: The device that integrates the dynamic equation, namely the real robot or a simulator - + - dimension: The configuration size. """ diff --git a/src/dynamic_graph/sot/dynamics_pinocchio/parser.py b/src/dynamic_graph/sot/dynamics_pinocchio/parser.py index 93762ea..4b5f3a6 100755 --- a/src/dynamic_graph/sot/dynamics_pinocchio/parser.py +++ b/src/dynamic_graph/sot/dynamics_pinocchio/parser.py @@ -2,9 +2,6 @@ # Copyright 2010 CNRS # Author: Florent Lamiraux -# -# Release under LGPL license: see COPYING.LESSER at root of the project. -# import xml.dom.minidom as dom from dynamic_graph.sot.dynamics_pinocchio.dynamic import DynamicPinocchio diff --git a/src/dynamic_graph/sot/dynamics_pinocchio/tools.py b/src/dynamic_graph/sot/dynamics_pinocchio/tools.py index 277461f..f5cea86 100755 --- a/src/dynamic_graph/sot/dynamics_pinocchio/tools.py +++ b/src/dynamic_graph/sot/dynamics_pinocchio/tools.py @@ -1,19 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2011, Florent Lamiraux, Thomas Moulard, JRL, CNRS/AIST -# -# This file is part of dynamic-graph. -# dynamic-graph is free software: you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public License -# as published by the Free Software Foundation, either version 3 of -# the License, or (at your option) any later version. -# -# dynamic-graph is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Lesser Public License for more details. You should have -# received a copy of the GNU Lesser General Public License along with -# dynamic-graph. If not, see <http://www.gnu.org/licenses/>. from dynamic_graph import plug from dynamic_graph.sot.core import SOT diff --git a/src/force-compensation.cpp b/src/force-compensation.cpp index e952e3e..909fb73 100644 --- a/src/force-compensation.cpp +++ b/src/force-compensation.cpp @@ -5,17 +5,6 @@ * * CNRS/AIST * - * This file is part of sot-dynamic-pinocchio. - * sot-dynamic-pinocchio is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic-pinocchio is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. */ #include <sot-dynamic-pinocchio/force-compensation.h> diff --git a/src/integrator-force-exact.cpp b/src/integrator-force-exact.cpp index 3c0ce3f..4a60c8e 100644 --- a/src/integrator-force-exact.cpp +++ b/src/integrator-force-exact.cpp @@ -5,17 +5,6 @@ * * CNRS/AIST * - * This file is part of sot-dynamic-pinocchio. - * sot-dynamic-pinocchio is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic-pinocchio is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. */ #include <sot-dynamic-pinocchio/integrator-force-exact.h> diff --git a/src/integrator-force-rk4.cpp b/src/integrator-force-rk4.cpp index 6104215..9989c37 100644 --- a/src/integrator-force-rk4.cpp +++ b/src/integrator-force-rk4.cpp @@ -5,17 +5,6 @@ * * CNRS/AIST * - * This file is part of sot-dynamic-pinocchio. - * sot-dynamic-pinocchio is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic-pinocchio is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. */ #include <sot-dynamic-pinocchio/integrator-force-rk4.h> diff --git a/src/integrator-force.cpp b/src/integrator-force.cpp index ea4d9d7..135a9a4 100644 --- a/src/integrator-force.cpp +++ b/src/integrator-force.cpp @@ -5,17 +5,6 @@ * * CNRS/AIST * - * This file is part of sot-dynamic-pinocchio. - * sot-dynamic-pinocchio is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic-pinocchio is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. */ #include <sot-dynamic-pinocchio/integrator-force.h> diff --git a/src/mass-apparent.cpp b/src/mass-apparent.cpp index 5644508..482faa4 100644 --- a/src/mass-apparent.cpp +++ b/src/mass-apparent.cpp @@ -5,17 +5,6 @@ * * CNRS/AIST * - * This file is part of sot-dynamic-pinocchio. - * sot-dynamic-pinocchio is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic-pinocchio is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. */ #include <sot-dynamic-pinocchio/mass-apparent.h> @@ -28,7 +17,7 @@ DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(MassApparent,"MassApparent"); MassApparent:: -MassApparent( const std::string & name ) +MassApparent( const std::string & name ) :Entity(name) ,jacobianSIN(NULL,"sotMassApparent("+name+")::input(vector)::jacobian") ,inertiaInverseSIN(NULL,"sotMassApparent("+name+")::input(vector)::inertiaInverse") @@ -45,7 +34,7 @@ MassApparent( const std::string & name ) "sotMassApparent("+name+")::input(vector)::inertiaInverseOUT") { sotDEBUGIN(5); - + signalRegistration(jacobianSIN); signalRegistration(inertiaInverseSIN); signalRegistration(massInverseSOUT); @@ -72,7 +61,7 @@ computeMassInverse( dynamicgraph::Matrix& res, const int& time ) { sotDEBUGIN(15); - + const dynamicgraph::Matrix & J = jacobianSIN( time ); const dynamicgraph::Matrix & A = inertiaInverseSIN( time ); diff --git a/src/matrix-inertia.cpp b/src/matrix-inertia.cpp index f180873..0259b57 100644 --- a/src/matrix-inertia.cpp +++ b/src/matrix-inertia.cpp @@ -5,17 +5,6 @@ * * CNRS/AIST * - * This file is part of sot-dynamic-pinocchio. - * sot-dynamic-pinocchio is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic-pinocchio is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. */ #include <fstream> @@ -109,18 +98,18 @@ initParents( void ) if(joints_[i]->parentJoint() == 0x0) { parentIndex_[i] = -1; - sotDEBUG(15) << "parent of\t" << i << "\t(" - << static_cast<Joint*>(joints_[i])->getName() + sotDEBUG(15) << "parent of\t" << i << "\t(" + << static_cast<Joint*>(joints_[i])->getName() << "):\t" << -1 << std::endl; } else { parentIndex_[i] = m[joints_[i]->parentJoint()]; - sotDEBUG(15) << "parent of\t" << i << ":\t(" - << static_cast<Joint*>(joints_[i])->getName() + sotDEBUG(15) << "parent of\t" << i << ":\t(" + << static_cast<Joint*>(joints_[i])->getName() << "):\t" << m[joints_[i]->parentJoint()] << "\t(" << static_cast<Joint*> - (joints_[m[joints_[i]->parentJoint()]])->getName() + (joints_[m[joints_[i]->parentJoint()]])->getName() << ")" << std::endl; } } @@ -159,12 +148,12 @@ void MatrixInertia::update( void ) const size_t SIZE = joints_.size(); for(size_t i = 0; i < SIZE; ++i) { - sotDEBUG(25) << "Joint " << i << ": rank = " + sotDEBUG(25) << "Joint " << i << ": rank = " << joints_[i]->rankInConfiguration() <<endl; Joint* j = static_cast<Joint*>(joints_[i]); /* iRpi: Rotation from joint i to parent of i. */ - MatrixRotation piRi; + MatrixRotation piRi; { /* phi_[1] = phi_(1:3) is the rotation axis of the joint. */ matrix3d Ri; j->getStaticRotation(Ri); @@ -174,16 +163,16 @@ void MatrixInertia::update( void ) matrix3d piRi_tmp; j->RodriguesRotation(axeJ,q,piRi_tmp); for( unsigned int loopi=0;loopi<3;++loopi ) - for( unsigned int loopj=0;loopj<3;++loopj ) + for( unsigned int loopj=0;loopj<3;++loopj ) piRi( loopi,loopj ) = piRi_tmp(loopi,loopj); } - dynamicgraph::Vector piTi(3); + dynamicgraph::Vector piTi(3); { - vector3d piTi_tmp; + vector3d piTi_tmp; j->getStaticTranslation( piTi_tmp ); for( unsigned int loopi=0;loopi<3;++loopi ) piTi(loopi) = piTi_tmp(loopi); } - /* Twist matrix iXpi: transfo of the velocities between i en pi (parent i). + /* Twist matrix iXpi: transfo of the velocities between i en pi (parent i). * iXpi = [ iRpi Skew( iRpi.t )*iRpi ] * [ 0 iRpi ] */ MatrixHomogeneous piMi; piMi.buildFrom( piRi,piTi ); @@ -213,13 +202,13 @@ void MatrixInertia::computeInertiaMatrix() matrix3d Sc = skewSymmetric(com); /* Inertia of the link. */ matrix3d Icm = joints_[i]->linkedBody()->inertiaMatrix(); - + double m = joints_[i]->linkedBody()->mass(); - - /* Ic_ is the inertia 6D matrix of the joint in the joint frame. + + /* Ic_ is the inertia 6D matrix of the joint in the joint frame. * Ic = [ Ai+mSc.Sc' mSc ] - * [ mSc' mId ] + * [ mSc' mId ] */ sotDEBUG(45) << "com"<<i<<" = [ " << com <<"]"<<endl; sotDEBUG(45) << "Sc"<<i<<" = [ " << Sc<<"]"<<endl; @@ -230,34 +219,34 @@ void MatrixInertia::computeInertiaMatrix() for( unsigned int loopi=0;loopi<3;++loopi ) for( unsigned int loopj=0;loopj<3;++loopj ) { - /*TT*/if( loopi==loopj ) Ici( loopi,loopj ) = m; + /*TT*/if( loopi==loopj ) Ici( loopi,loopj ) = m; else Ici( loopi,loopj ) = 0.; /*TR*/Ici( loopi,loopj+3 ) = m*Sct( loopi,loopj ); /*RT*/Ici( loopi+3,loopj ) = m*Sc( loopi,loopj ); /*RR*/Ici( loopi+3,loopj+3 ) = m*Irr( loopi,loopj )+ Icm( loopi,loopj ); } - + sotDEBUG(25) << "Ic" << i << " = " << Ici; } - + dynamicgraph::Vector Fi(6); dynamicgraph::Matrix iVpiT_Ici(6,6); dynamicgraph::Matrix iVpiT_Ici_iVpi(6,6); - for( int i=SIZE-1;i>=1;--i ) + for( int i=SIZE-1;i>=1;--i ) { const unsigned int iRank = joints_[i]->rankInConfiguration(); - dynamicgraph::Matrix & Ici = Ic[i]; - sotMatrixTwist & iVpii = iVpi[i]; - MatrixForce & iVpiiT = iVpiT[i]; + dynamicgraph::Matrix & Ici = Ic[i]; + sotMatrixTwist & iVpii = iVpi[i]; + MatrixForce & iVpiiT = iVpiT[i]; dynamicgraph::Vector & phii = phi[i]; /* F = Ic_i . phi_i */ - Fi = Ici*phii; + Fi = Ici*phii; /* H_ii = phi_i' . F */ /*DEBUGinertia_(i + 5, i + 5) = phii.scalarProduct(Fi);*/ - - + + inertia_(iRank,iRank) = phii.scalarProduct(Fi); sotDEBUG(30) << "phi"<<i<<" = " << phii; sotDEBUG(35) << "Fi"<<i<<" = " << Fi << endl; @@ -282,8 +271,8 @@ void MatrixInertia::computeInertiaMatrix() /* j = pj */ j = parentIndex_[j]; /* Hij = Hji = F' phi_j */ - inertia_(iRank,joints_[j]->rankInConfiguration()) - = inertia_(joints_[j]->rankInConfiguration(),iRank) + inertia_(iRank,joints_[j]->rankInConfiguration()) + = inertia_(joints_[j]->rankInConfiguration(),iRank) = Fi.scalarProduct( phi[j]); sotDEBUG(35) << "Fi = " << Fi << endl; sotDEBUG(35) << "FiXphi = " << inertia_(j + 5, i + 5) << endl; diff --git a/src/python-module-py.cpp b/src/python-module-py.cpp index d0cfedc..f004b83 100644 --- a/src/python-module-py.cpp +++ b/src/python-module-py.cpp @@ -1,17 +1,4 @@ // Copyright (C) 2008-2016 LAAS-CNRS, JRL AIST-CNRS. -// -// This file is part of sot-dynamic-pinocchio. -// sot-dynamic-pinocchio is free software: you can redistribute it and/or modify -// it under the terms of the GNU Lesser General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. -// -// sot-dynamic-pinocchio is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Lesser General Public License for more details. -// You should have received a copy of the GNU Lesser General Public License -// along with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. #include <sot/core/debug.hh> @@ -50,16 +37,16 @@ namespace dynamicgraph{ catch (const std::exception& exc) { //PyErr_SetString(dgpyError, exc.what()); return NULL; - } - catch (const char* s) { + } + catch (const char* s) { //PyErr_SetString(dgpyError, s); return NULL; } catch (...) { //PyErr_SetString(dgpyError, "Unknown exception"); - return NULL; + return NULL; } - + return Py_BuildValue(""); } @@ -86,16 +73,16 @@ namespace dynamicgraph{ dyn_entity->setData(pointer2); } catch (const std::exception& exc) { - // PyErr_SetString(dgpyError, exc.what()); + // PyErr_SetString(dgpyError, exc.what()); return NULL; - } - catch (const char* s) { + } + catch (const char* s) { // PyErr_SetString(dgpyError, s); return NULL; } catch (...) { - // PyErr_SetString(dgpyError, "Unknown exception"); - return NULL; + // PyErr_SetString(dgpyError, "Unknown exception"); + return NULL; } return Py_BuildValue(""); diff --git a/src/sot-dynamic-pinocchio.cpp b/src/sot-dynamic-pinocchio.cpp index 0aa3440..15c609e 100644 --- a/src/sot-dynamic-pinocchio.cpp +++ b/src/sot-dynamic-pinocchio.cpp @@ -5,17 +5,6 @@ * * CNRS/AIST * - * This file is part of sot-dynamic-pinocchio. - * sot-dynamic-pinocchio is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic-pinocchio is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. */ #include <sot/core/debug.hh> diff --git a/src/waist-attitude-from-sensor.cpp b/src/waist-attitude-from-sensor.cpp index b2cb0e6..30af256 100644 --- a/src/waist-attitude-from-sensor.cpp +++ b/src/waist-attitude-from-sensor.cpp @@ -5,17 +5,6 @@ * * CNRS/AIST * - * This file is part of sot-dynamic-pinocchio. - * sot-dynamic-pinocchio is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic-pinocchio is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. */ #include <sot-dynamic-pinocchio/waist-attitude-from-sensor.h> diff --git a/src/zmp-from-forces.cpp b/src/zmp-from-forces.cpp index 8391faf..91037a9 100644 --- a/src/zmp-from-forces.cpp +++ b/src/zmp-from-forces.cpp @@ -4,17 +4,6 @@ * * CNRS * - * This file is part of sot-dynamic-pinocchio. - * sot-dynamic-pinocchio is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic-pinocchio is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. */ #include <vector> diff --git a/src/zmpreffromcom.cpp b/src/zmpreffromcom.cpp index bb81292..2ea2701 100644 --- a/src/zmpreffromcom.cpp +++ b/src/zmpreffromcom.cpp @@ -5,17 +5,6 @@ * * CNRS/AIST * - * This file is part of sot-dynamic-pinocchio. - * sot-dynamic-pinocchio is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic-pinocchio is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. */ #include <sot-dynamic-pinocchio/zmpreffromcom.h> diff --git a/unitTesting/CMakeLists.txt b/unitTesting/CMakeLists.txt index e456016..0ca9d4f 100644 --- a/unitTesting/CMakeLists.txt +++ b/unitTesting/CMakeLists.txt @@ -1,17 +1,4 @@ # Copyright 2010, François Bleibel, Olivier Stasse, JRL, CNRS/AIST -# -# This file is part of sot-dynamic-pinocchio. -# sot-dynamic-pinocchio is free software: you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public License -# as published by the Free Software Foundation, either version 3 of -# the License, or (at your option) any later version. -# -# sot-dynamic-pinocchio is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Lesser Public License for more details. You should have -# received a copy of the GNU Lesser General Public License along with -# sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. ADD_DEFINITIONS(-DDEBUG=2) diff --git a/unitTesting/dummy.cpp b/unitTesting/dummy.cpp index 3848f27..1aeba6c 100644 --- a/unitTesting/dummy.cpp +++ b/unitTesting/dummy.cpp @@ -5,17 +5,6 @@ * * CNRS/AIST * - * This file is part of sot-dynamic-pinocchio. - * sot-dynamic-pinocchio is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic-pinocchio is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. */ int main (int , char** ) diff --git a/unitTesting/python/feet_follower.py b/unitTesting/python/feet_follower.py index 1576e43..07fe503 100755 --- a/unitTesting/python/feet_follower.py +++ b/unitTesting/python/feet_follower.py @@ -1,19 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2011, Florent Lamiraux, Thomas Moulard, JRL, CNRS/AIST -# -# This file is part of dynamic-graph. -# dynamic-graph is free software: you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public License -# as published by the Free Software Foundation, either version 3 of -# the License, or (at your option) any later version. -# -# dynamic-graph is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Lesser Public License for more details. You should have -# received a copy of the GNU Lesser General Public License along with -# dynamic-graph. If not, see <http://www.gnu.org/licenses/>. from dynamic_graph.sot.dynamics.tools import * diff --git a/unitTesting/python/humanoid_robot.py b/unitTesting/python/humanoid_robot.py index d58e0e4..de042dc 100755 --- a/unitTesting/python/humanoid_robot.py +++ b/unitTesting/python/humanoid_robot.py @@ -1,19 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2011, Florent Lamiraux, Thomas Moulard, JRL, CNRS/AIST -# -# This file is part of dynamic-graph. -# dynamic-graph is free software: you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public License -# as published by the Free Software Foundation, either version 3 of -# the License, or (at your option) any later version. -# -# dynamic-graph is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Lesser Public License for more details. You should have -# received a copy of the GNU Lesser General Public License along with -# dynamic-graph. If not, see <http://www.gnu.org/licenses/>. import unittest diff --git a/unitTesting/python/reach_both_hands.py b/unitTesting/python/reach_both_hands.py index ab853dc..3c2b939 100755 --- a/unitTesting/python/reach_both_hands.py +++ b/unitTesting/python/reach_both_hands.py @@ -1,19 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2011, Florent Lamiraux, Thomas Moulard, JRL, CNRS/AIST -# -# This file is part of dynamic-graph. -# dynamic-graph is free software: you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public License -# as published by the Free Software Foundation, either version 3 of -# the License, or (at your option) any later version. -# -# dynamic-graph is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Lesser Public License for more details. You should have -# received a copy of the GNU Lesser General Public License along with -# dynamic-graph. If not, see <http://www.gnu.org/licenses/>. import sys from dynamic_graph.sot.dynamics.tools import * diff --git a/unitTesting/python/reach_left_hand.py b/unitTesting/python/reach_left_hand.py index bbb8e0e..7ed5fba 100755 --- a/unitTesting/python/reach_left_hand.py +++ b/unitTesting/python/reach_left_hand.py @@ -1,19 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2011, Florent Lamiraux, Thomas Moulard, JRL, CNRS/AIST -# -# This file is part of dynamic-graph. -# dynamic-graph is free software: you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public License -# as published by the Free Software Foundation, either version 3 of -# the License, or (at your option) any later version. -# -# dynamic-graph is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Lesser Public License for more details. You should have -# received a copy of the GNU Lesser General Public License along with -# dynamic-graph. If not, see <http://www.gnu.org/licenses/>. import sys from dynamic_graph.sot.dynamics.tools import * diff --git a/unitTesting/python/reach_right_hand.py b/unitTesting/python/reach_right_hand.py index e6fb07f..41f2cb2 100755 --- a/unitTesting/python/reach_right_hand.py +++ b/unitTesting/python/reach_right_hand.py @@ -1,19 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2011, Florent Lamiraux, Thomas Moulard, JRL, CNRS/AIST -# -# This file is part of dynamic-graph. -# dynamic-graph is free software: you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public License -# as published by the Free Software Foundation, either version 3 of -# the License, or (at your option) any later version. -# -# dynamic-graph is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Lesser Public License for more details. You should have -# received a copy of the GNU Lesser General Public License along with -# dynamic-graph. If not, see <http://www.gnu.org/licenses/>. from dynamic_graph.sot.dynamics.tools import * diff --git a/unitTesting/test_djj.cpp b/unitTesting/test_djj.cpp index 22e013e..f2b2d11 100644 --- a/unitTesting/test_djj.cpp +++ b/unitTesting/test_djj.cpp @@ -5,17 +5,6 @@ * * CNRS/AIST * - * This file is part of sot-dynamic-pinocchio. - * sot-dynamic-pinocchio is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic-pinocchio is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. */ #include <string> diff --git a/unitTesting/test_dyn.cpp b/unitTesting/test_dyn.cpp index bc63792..246371d 100644 --- a/unitTesting/test_dyn.cpp +++ b/unitTesting/test_dyn.cpp @@ -5,17 +5,6 @@ * * CNRS/AIST * - * This file is part of sot-dynamic-pinocchio. - * sot-dynamic-pinocchio is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic-pinocchio is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. */ /* -------------------------------------------------------------------------- */ diff --git a/unitTesting/test_results.cpp b/unitTesting/test_results.cpp index d8cf750..ebe49f2 100644 --- a/unitTesting/test_results.cpp +++ b/unitTesting/test_results.cpp @@ -5,17 +5,6 @@ * * CNRS/AIST * - * This file is part of sot-dynamic-pinocchio. - * sot-dynamic-pinocchio is free software: you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * sot-dynamic-pinocchio is distributed in the hope that it will be - * useful, but WITHOUT ANY WARRANTY; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. You should - * have received a copy of the GNU Lesser General Public License along - * with sot-dynamic-pinocchio. If not, see <http://www.gnu.org/licenses/>. */ /* --------------------------------------------------------------------- */ @@ -47,7 +36,7 @@ int main(int argc, char * argv[]) cerr << "./TestHumanoidDynamicRobot PATH_TO_VRML_FILE VRML_FILE_NAME "<< endl; cerr << " PATH_TO_SPECIFICITIES_XML PATH PATH_TO_MAP_JOINT_2_RANK INITIAL_CONFIGURATION_FILE" << endl; exit(0); - } + } string aSpecificitiesFileName = argv[3]; string aPath=argv[1]; @@ -96,7 +85,7 @@ int main(int argc, char * argv[]) MAL_VECTOR_DIM(m_ReferenceStateData,double,100); MAL_VECTOR_DIM(m_ActualStateData,double,131); - + unsigned int NbIterations=0; const CjrlJoint *ActualLeftFoot, *ActualRightFoot, *ActualRightHand; @@ -110,7 +99,7 @@ int main(int argc, char * argv[]) ActualRightFoot = aHDR2->rightFoot()->associatedAnkle(); ActualLeftFoot = aHDR2->leftFoot()->associatedAnkle(); ActualRightHand = aHDR2->rightWrist(); - + matrix4d ReferenceSupportFootPosition; matrix4d ReferenceRightHandPosition; matrix4d ReferenceLeftHandPosition; @@ -130,11 +119,11 @@ int main(int argc, char * argv[]) { for(unsigned int i=0;i<100;i++) ReferenceStateFile >> m_ReferenceStateData[i]; - + for(unsigned int i=0;i<40;i++) m_ReferenceStateConf[i+6] = m_ReferenceStateData[i]; - - + + if (NbIterations>0) { for(unsigned int i=0;i<46;i++) @@ -145,7 +134,7 @@ int main(int argc, char * argv[]) for(unsigned int i=0;i<46;i++) m_ReferenceStateSpeed[i] = 0.0; } - + // cout << "ReferenceStateConf: " << m_ReferenceStateConf << endl; /* Update the current configuration vector */ aHDR->currentConfiguration(m_ReferenceStateConf); @@ -167,7 +156,7 @@ int main(int argc, char * argv[]) FileRefRHPos << MAL_S4x4_MATRIX_ACCESS_I_J(ReferenceRightHandPosition,0,3) << " "; FileRefRHPos << MAL_S4x4_MATRIX_ACCESS_I_J(ReferenceRightHandPosition,1,3) << " " ; FileRefRHPos << MAL_S4x4_MATRIX_ACCESS_I_J(ReferenceRightHandPosition,2,3) << endl; - + FileRefLHPos << MAL_S4x4_MATRIX_ACCESS_I_J(ReferenceLeftHandPosition,0,3) << " "; FileRefLHPos << MAL_S4x4_MATRIX_ACCESS_I_J(ReferenceLeftHandPosition,1,3) << " " ; @@ -189,8 +178,8 @@ int main(int argc, char * argv[]) } for(unsigned int i=0;i<40;i++) m_ActualStateConf[i+6] = m_ActualStateData[i]; - - + + if (NbIterations>0) { for(unsigned int i=6;i<46;i++) @@ -211,7 +200,7 @@ int main(int argc, char * argv[]) { m_ActualStateConfPrev[i] = m_ActualStateConf[i]; } - + aHDR2->computeForwardKinematics(); ActualRightHandPosition = ActualRightHand->currentTransformation(); @@ -227,5 +216,5 @@ int main(int argc, char * argv[]) FileActualRHPos.close(); FileRefRHPos.close(); FileRefLHPos.close(); - + } -- GitLab