Commit 7e523928 authored by Gabriele Buondonno's avatar Gabriele Buondonno
Browse files

[examples] Remove prefixes

parent 946876e9
# Loading the model # Loading the model
## Python ## Python
\include a-model.py \include model.py
## C++ ## C++
\include a-model.cpp \include model.cpp
# Computing the dynamics RNEA, bias forces b(q,v), gravity g(q), CRBA M(q) # Computing the dynamics RNEA, bias forces b(q,v), gravity g(q), CRBA M(q)
## Python ## Python
\include b-dynamics.py \include dynamics.py
## C++ ## C++
\include b-dynamics.cpp \include dynamics.cpp
# Contact dynamics # Contact dynamics
## Python ## Python
\include c-contact.py \include contact.py
## C++ ## C++
\include c-contact.cpp \include contact.cpp
# Loading and displaying the model # Loading and displaying the model
## Python ## Python
\include d-display.py \include display.py
## C++ ## C++
\include d-display.cpp \include display.cpp
# Collision detection and distances # Collision detection and distances
## Python ## Python
\include e-collisions.py \include collisions.py
## C++ ## C++
\include e-collisions.cpp \include collisions.cpp
# Derivatives of the dynamics (with finite diff checking) # Derivatives of the dynamics (with finite diff checking)
## Python ## Python
\include f-derivatives.py \include derivatives.py
## C++ ## C++
\include f-derivatives.cpp \include derivatives.cpp
# Code generation # Code generation
## Python ## Python
\include g-code-generation.py \include code-generation.py
## C++ ## C++
\include g-code-generation.cpp \include code-generation.cpp
# Inverse geometry # Inverse geometry
## Python ## Python
\include h-inverse-geometry.py \include inverse-geometry.py
## C++ ## C++
\include h-inverse-geometry.cpp \include inverse-geometry.cpp
...@@ -4,7 +4,7 @@ This example shows how to position the end effector of a manipulator robot to a ...@@ -4,7 +4,7 @@ This example shows how to position the end effector of a manipulator robot to a
The example employs a simple Jacobian-based iterative algorithm, which is called closed-loop inverse kinematics (CLIK). The example employs a simple Jacobian-based iterative algorithm, which is called closed-loop inverse kinematics (CLIK).
## Python ## Python
\includelineno i-inverse-kinematics.py \includelineno inverse-kinematics.py
### Explanation of the code ### Explanation of the code
First of all, we import the necessary libraries and we create the `Model` and `Data` objects: First of all, we import the necessary libraries and we create the `Model` and `Data` objects:
...@@ -62,7 +62,7 @@ At the end of the loop, we display the result: ...@@ -62,7 +62,7 @@ At the end of the loop, we display the result:
## C++ ## C++
The equivalent C++ implemetation is given below The equivalent C++ implemetation is given below
\includelineno i-inverse-kinematics.cpp \includelineno inverse-kinematics.cpp
### Explanation of the code ### Explanation of the code
The code follows exactly the same steps as Python. The code follows exactly the same steps as Python.
...@@ -75,7 +75,7 @@ This allows to always use the same memory space, avoiding re-allocation and achi ...@@ -75,7 +75,7 @@ This allows to always use the same memory space, avoiding re-allocation and achi
The second difference consists in the way the velocity is computed The second difference consists in the way the velocity is computed
\dontinclude i-inverse-kinematics.cpp \dontinclude inverse-kinematics.cpp
\skip svdOptions \skip svdOptions
\until SVD \until SVD
\skipline svd.compute \skipline svd.compute
......
# Task space inverse dynamics # Task space inverse dynamics
## Python ## Python
\include j-tsid.py \include tsid.py
## C++ ## C++
\include j-tsid.cpp \include tsid.cpp
# QP (normal forces) unilateral contact dynamics (if we can write it concise enough) # QP (normal forces) unilateral contact dynamics (if we can write it concise enough)
## Python ## Python
\include k-qp.py \include qp.py
## C++ ## C++
\include k-qp.cpp \include qp.cpp
# Posture generation using derivatives (if we can write it concise enough) # Posture generation using derivatives (if we can write it concise enough)
## Python ## Python
\include l-postures.py \include postures.py
## C++ ## C++
\include l-postures.cpp \include postures.cpp
# A RRT planner for a robot arm (if we can write it concise enough) # A RRT planner for a robot arm (if we can write it concise enough)
## Python ## Python
\include m-rrt.py \include rrt.py
## C++ ## C++
\include m-rrt.cpp \include rrt.cpp
# A RL tensorflow example (if we can write it concise enough) # A RL tensorflow example (if we can write it concise enough)
## Python ## Python
\include n-rl.py \include rl.py
## C++ ## C++
\include n-rl.cpp \include rl.cpp
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# #
SET(${PROJECT_NAME}_EXAMPLES SET(${PROJECT_NAME}_EXAMPLES
i-inverse-kinematics inverse-kinematics
overview-simple overview-simple
overview-lie overview-lie
overview-SE3 overview-SE3
...@@ -32,7 +32,7 @@ ENDFOREACH(EXAMPLE ${${PROJECT_NAME}_EXAMPLES}) ...@@ -32,7 +32,7 @@ ENDFOREACH(EXAMPLE ${${PROJECT_NAME}_EXAMPLES})
IF(BUILD_PYTHON_INTERFACE) IF(BUILD_PYTHON_INTERFACE)
SET(${PROJECT_NAME}_PYTHON_EXAMPLES SET(${PROJECT_NAME}_PYTHON_EXAMPLES
i-inverse-kinematics inverse-kinematics
overview-simple overview-simple
overview-urdf overview-urdf
kinematics-derivatives kinematics-derivatives
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment