Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sot-dynamic-pinocchio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stack Of Tasks
sot-dynamic-pinocchio
Commits
89f2018a
Commit
89f2018a
authored
12 years ago
by
Francois Keith
Committed by
Florent Lamiraux florent@laas.fr
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
The dependency in hrp2 is now optional.
The code can now compile without.
parent
f4c08686
No related branches found
No related tags found
1 merge request
!1
[major][cpp] starting point to integrate pinocchio
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+5
-5
5 additions, 5 deletions
CMakeLists.txt
src/CMakeLists.txt
+17
-8
17 additions, 8 deletions
src/CMakeLists.txt
unitTesting/CMakeLists.txt
+3
-1
3 additions, 1 deletion
unitTesting/CMakeLists.txt
with
25 additions
and
14 deletions
CMakeLists.txt
+
5
−
5
View file @
89f2018a
...
...
@@ -41,11 +41,11 @@ SETUP_PROJECT()
ADD_REQUIRED_DEPENDENCY
(
"jrl-mal >= 1.9.0"
)
ADD_REQUIRED_DEPENDENCY
(
"jrl-dynamics >= 1.19.0"
)
ADD_
REQUIRED
_DEPENDENCY
(
"hrp2-dynamics >= 1.5.0"
)
ADD_
REQUIRED
_DEPENDENCY
(
"hrp2-10-optimized >= 1.0.1"
)
ADD_
OPTIONAL
_DEPENDENCY
(
"hrp2-dynamics >= 1.5.0"
)
ADD_
OPTIONAL
_DEPENDENCY
(
"hrp2-10-optimized >= 1.0.1"
)
ADD_
REQUIRED
_DEPENDENCY
(
"hrp2-10 >= 1.0.1"
)
ADD_
REQUIRED
_DEPENDENCY
(
"hrp2-14 >= 1.8"
)
ADD_
OPTIONAL
_DEPENDENCY
(
"hrp2-10 >= 1.0.1"
)
ADD_
OPTIONAL
_DEPENDENCY
(
"hrp2-14 >= 1.8"
)
ADD_REQUIRED_DEPENDENCY
(
"dynamic-graph >= 2.5.0"
)
ADD_REQUIRED_DEPENDENCY
(
"sot-core >= 2.5"
)
...
...
@@ -90,4 +90,4 @@ ADD_SUBDIRECTORY(doc)
ADD_SUBDIRECTORY
(
unitTesting
)
SETUP_PROJECT_FINALIZE
()
SETUP_PROJECT_CPACK
()
\ No newline at end of file
SETUP_PROJECT_CPACK
()
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
17
−
8
View file @
89f2018a
...
...
@@ -29,9 +29,11 @@ ENDIF(CMAKE_BUILD_TYPE STREQUAL "DEBUG")
SET
(
integrator-force-rk4_plugins_dependencies integrator-force
)
SET
(
integrator-force-exact_plugins_dependencies integrator-force
)
SET
(
dynamic-hrp2_plugins_dependencies dynamic
)
SET
(
dynamic-hrp2_10_plugins_dependencies dynamic
)
SET
(
dynamic-hrp2_10_old_plugins_dependencies dynamic
)
IF
(
HRP2_DYNAMICS_FOUND
)
SET
(
dynamic-hrp2_plugins_dependencies dynamic
)
SET
(
dynamic-hrp2_10_plugins_dependencies dynamic
)
SET
(
dynamic-hrp2_10_old_plugins_dependencies dynamic
)
ENDIF
(
HRP2_DYNAMICS_FOUND
)
FOREACH
(
lib
${
libs
}
)
ADD_LIBRARY
(
${
lib
}
SHARED
${
lib
}
.cpp
)
...
...
@@ -48,10 +50,12 @@ FOREACH(lib ${libs})
TARGET_LINK_LIBRARIES
(
${
lib
}
${
Boost_LIBRARIES
}
)
PKG_CONFIG_USE_DEPENDENCY
(
${
lib
}
jrl-dynamics
)
PKG_CONFIG_USE_DEPENDENCY
(
${
lib
}
hrp2-dynamics
)
PKG_CONFIG_USE_DEPENDENCY
(
${
lib
}
sot-core
)
PKG_CONFIG_USE_DEPENDENCY
(
${
lib
}
dynamic-graph
)
PKG_CONFIG_USE_DEPENDENCY
(
${
lib
}
jrl-mal
)
IF
(
HRP2_DYNAMICS_FOUND
)
PKG_CONFIG_USE_DEPENDENCY
(
${
lib
}
hrp2-dynamics
)
ENDIF
(
HRP2_DYNAMICS_FOUND
)
INSTALL
(
TARGETS
${
lib
}
DESTINATION lib/plugin
)
# build python submodule
...
...
@@ -64,10 +68,7 @@ FOREACH(lib ${libs})
ENDFOREACH
(
lib
)
# Install empty __init__.py files in intermediate directories.
CONFIG_FILES
(
dynamic_graph/sot/dynamics/hrp2.py
)
INSTALL
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/dynamic_graph/sot/dynamics/hrp2.py
${
CMAKE_CURRENT_SOURCE_DIR
}
/dynamic_graph/sot/dynamics/__init__.py
${
CMAKE_CURRENT_SOURCE_DIR
}
/dynamic_graph/sot/dynamics/humanoid_robot.py
${
CMAKE_CURRENT_SOURCE_DIR
}
/dynamic_graph/sot/dynamics/parser.py
...
...
@@ -76,7 +77,15 @@ INSTALL(FILES
DESTINATION
${
PYTHON_SITELIB
}
/dynamic_graph/sot/dynamics
)
PKG_CONFIG_USE_DEPENDENCY
(
dynamic-hrp2 hrp2-dynamics
)
IF
(
HRP2_DYNAMICS_FOUND
)
CONFIG_FILES
(
dynamic_graph/sot/dynamics/hrp2.py
)
INSTALL
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/dynamic_graph/sot/dynamics/hrp2.py
DESTINATION
${
PYTHON_SITELIB
}
/dynamic_graph/sot/dynamics
)
PKG_CONFIG_USE_DEPENDENCY
(
dynamic-hrp2 hrp2-dynamics
)
ENDIF
(
HRP2_DYNAMICS_FOUND
)
IF
(
${
HRP2_10_OPTIMIZED_FOUND
}
)
PKG_CONFIG_USE_DEPENDENCY
(
dynamic-hrp2_10 hrp2-10-optimized
)
...
...
This diff is collapsed.
Click to expand it.
unitTesting/CMakeLists.txt
+
3
−
1
View file @
89f2018a
...
...
@@ -53,10 +53,12 @@ FOREACH(test ${tests})
)
PKG_CONFIG_USE_DEPENDENCY
(
${
EXECUTABLE_NAME
}
jrl-dynamics
)
PKG_CONFIG_USE_DEPENDENCY
(
${
EXECUTABLE_NAME
}
hrp2-dynamics
)
PKG_CONFIG_USE_DEPENDENCY
(
${
EXECUTABLE_NAME
}
sot-core
)
PKG_CONFIG_USE_DEPENDENCY
(
${
EXECUTABLE_NAME
}
dynamic-graph
)
PKG_CONFIG_USE_DEPENDENCY
(
${
EXECUTABLE_NAME
}
jrl-mal
)
IF
(
HRP2_DYNAMICS_FOUND
)
PKG_CONFIG_USE_DEPENDENCY
(
${
EXECUTABLE_NAME
}
hrp2-dynamics
)
ENDIF
(
HRP2_DYNAMICS_FOUND
)
IF
(
${
test
}
_plugins_dependencies
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment