Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sot-pattern-generator
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
Olivier Stasse
sot-pattern-generator
Commits
dc5d6ae0
Commit
dc5d6ae0
authored
8 years ago
by
mnaveau
Browse files
Options
Downloads
Patches
Plain Diff
work on pinnochio compatibility
parent
9e5bf7b8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
private_cmake/config_private.hh.cmake
+0
-5
0 additions, 5 deletions
private_cmake/config_private.hh.cmake
src/CMakeLists.txt
+4
-0
4 additions, 0 deletions
src/CMakeLists.txt
src/pg.cpp
+7
-7
7 additions, 7 deletions
src/pg.cpp
with
11 additions
and
12 deletions
private_cmake/config_private.hh.cmake
+
0
−
5
View file @
dc5d6ae0
...
...
@@ -19,9 +19,4 @@
// Package
version
(
header
)
.
# define SOT_PATTERN_GENERATOR_CONFIG_VERSION "@PROJECT_VERSION@"
//
#if @WITH_HRP2_DYNAMICS_BOOL@ //! WITH_HRP2_DYNAMICS?
# define WITH_HRP2DYNAMICS
#endif //! WITH_HRP2_DYNAMICS?
#endif //! SOT_PATTERN_GENERATOR_CONFIG_PRIVATE_HH
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
4
−
0
View file @
dc5d6ae0
...
...
@@ -15,6 +15,10 @@
INCLUDE_DIRECTORIES
(
${
CMAKE_SOURCE_DIR
}
/include
)
# Make the config_private.hh file available
#CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/private_cmake/config_private.hh.cmake
# ${CMAKE_BINARY_DIR}/include/${HEADER_DIR}/config_private.hh)
ADD_DEFINITIONS
(
-DDEBUG=2
)
SET
(
LIBRARY_NAME
${
PROJECT_NAME
}
)
...
...
This diff is collapsed.
Click to expand it.
src/pg.cpp
+
7
−
7
View file @
dc5d6ae0
...
...
@@ -30,10 +30,8 @@
#include
<jrl/mal/matrixabstractlayer.hh>
#include
"pinocchio/multibody/parser/urdf.hpp"
#include
"pinocchio/multibody/parser/srdf.hpp"
#include
<sot-pattern-generator/config_private.hh>
#include
"pinocchio/parsers/urdf.hpp"
#include
"pinocchio/parsers/srdf.hpp"
#include
<dynamic-graph/factory.h>
#include
<dynamic-graph/all-commands.h>
...
...
@@ -537,7 +535,7 @@ namespace dynamicgraph {
{
bool
ok
=
true
;
// Parsing the file.
m_robotModel
=
se3
::
urdf
::
buildModel
(
m_urdfFile
,
se3
::
JointModelFreeFlyer
());
se3
::
urdf
::
buildModel
(
m_urdfFile
,
se3
::
JointModelFreeFlyer
()
,
m_robotModel
);
m_robotData
=
new
se3
::
Data
(
m_robotModel
)
;
// Creating the humanoid robot.
m_PR
=
new
pg
::
PinocchioRobot
()
;
...
...
@@ -565,7 +563,8 @@ namespace dynamicgraph {
aFoot
.
anklePosition
(
1
)
=
v
.
second
.
get
<
double
>
(
"y"
);
aFoot
.
anklePosition
(
2
)
=
v
.
second
.
get
<
double
>
(
"z"
);
}
// BOOST_FOREACH
aFoot
.
associatedAnkle
=
m_robotModel
.
getBodyId
(
"r_ankle"
);
se3
::
FrameIndex
ra
=
m_robotModel
.
getFrameId
(
"r_ankle"
);
aFoot
.
associatedAnkle
=
m_robotModel
.
frames
[
ra
].
parent
;
m_PR
->
initializeRightFoot
(
aFoot
);
// Initialize the Left Foot
path
=
"robot.specificities.feet.left.size"
;
...
...
@@ -582,7 +581,8 @@ namespace dynamicgraph {
aFoot
.
anklePosition
(
1
)
=
v
.
second
.
get
<
double
>
(
"y"
);
aFoot
.
anklePosition
(
2
)
=
v
.
second
.
get
<
double
>
(
"z"
);
}
// BOOST_FOREACH
aFoot
.
associatedAnkle
=
m_robotModel
.
getBodyId
(
"l_ankle"
);
se3
::
FrameIndex
la
=
m_robotModel
.
getFrameId
(
"l_ankle"
);
aFoot
.
associatedAnkle
=
m_robotModel
.
frames
[
la
].
parent
;
m_PR
->
initializeLeftFoot
(
aFoot
);
}
catch
(...)
{
...
...
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