Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
robotpkg-wip
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
Gepetto
robotpkg-wip
Commits
71007ab8
Commit
71007ab8
authored
8 years ago
by
Justin Carpentier
Browse files
Options
Downloads
Patches
Plain Diff
[wip/pinocchio] Correct support for urdfdom less than 0.3.0w
parent
e546b28d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pinocchio/distinfo
+2
-1
2 additions, 1 deletion
pinocchio/distinfo
pinocchio/patches/patch-ae
+1
-1
1 addition, 1 deletion
pinocchio/patches/patch-ae
pinocchio/patches/patch-ag
+49
-0
49 additions, 0 deletions
pinocchio/patches/patch-ag
with
52 additions
and
2 deletions
pinocchio/distinfo
+
2
−
1
View file @
71007ab8
...
...
@@ -5,5 +5,6 @@ SHA1 (patch-aa) = 48bd99335980d76f285645f33d10ab5cd0db0749
SHA1 (patch-ab) = 96f1ea798f0e3fcb2dbef755476a959727550eb0
SHA1 (patch-ac) = 75eb20d87148706b27c1d3601f9a379fbf666bc0
SHA1 (patch-ad) = 55fcdbcd58e5261af4fc94aab05056548f52ccc1
SHA1 (patch-ae) =
e28fca9974a5b5c4c06465fa46901dcd91e4324b
SHA1 (patch-ae) =
a43745a6a0275b24c36141fd30fbaf512cceb1ac
SHA1 (patch-af) = 55412f6a9e2d96a7980d6f2efa0d42499610d8df
SHA1 (patch-ag) = 13b6805a7c00a751f6ba58b9ece8c28c996cf771
This diff is collapsed.
Click to expand it.
pinocchio/patches/patch-ae
+
1
−
1
View file @
71007ab8
...
...
@@ -8,7 +8,7 @@ which is the version of Ubuntu 14.04
ADD_OPTIONAL_DEPENDENCY("eigenpy >= 1.3.0")
#ADD_OPTIONAL_DEPENDENCY("metapod >= 1.0.7")
-ADD_REQUIRED_DEPENDENCY("urdfdom >= 0.2.10")
+ADD_REQUIRED_DEPENDENCY("urdfdom >= 0.2.
3
")
+ADD_REQUIRED_DEPENDENCY("urdfdom >= 0.2.
0
")
#ADD_OPTIONAL_DEPENDENCY("lua5.1")
ADD_OPTIONAL_DEPENDENCY("hpp-fcl >= 0.4.1")
IF(HPP_FCL_FOUND AND URDFDOM_FOUND)
This diff is collapsed.
Click to expand it.
pinocchio/patches/patch-ag
0 → 100644
+
49
−
0
View file @
71007ab8
Handle the API of urdfdom with version less than 0.3.0
--- CMakeLists.txt~ 2016-06-23 14:06:07.084967753 +0200
+++ CMakeLists.txt 2016-06-23 14:05:45.768700958 +0200
@@ -67,6 +67,14 @@
ADD_REQUIRED_DEPENDENCY("urdfdom >= 0.2.0")
#ADD_OPTIONAL_DEPENDENCY("lua5.1")
ADD_OPTIONAL_DEPENDENCY("hpp-fcl >= 0.4.1")
+
+# Special care of urdfdom less than 0.3.0
+IF(URDFDOM_FOUND)
+ IF(${URDFDOM_VERSION} VERSION_LESS "0.3.0")
+ add_definitions(-DURDFDOM_COLLISION_WITH_GROUP_NAME)
+ ENDIF(${URDFDOM_VERSION} VERSION_LESS "0.3.0")
+ENDIF(URDFDOM_FOUND)
+
IF(HPP_FCL_FOUND AND URDFDOM_FOUND)
ADD_REQUIRED_DEPENDENCY("assimp >= 2.0")
if (NOT ${ASSIMP_VERSION} VERSION_LESS "2.0.1150")
--- src/multibody/parser/urdf-with-geometry.hxx~ 2016-05-27 14:31:10.000000000 +0200
+++ src/multibody/parser/urdf-with-geometry.hxx 2016-06-23 14:05:29.812501233 +0200
@@ -124,7 +124,13 @@
{
fcl::CollisionObject collision_object = retrieveCollisionGeometry((*i)->geometry, package_dirs, mesh_path);
SE3 geomPlacement = convertFromUrdf((*i)->origin);
+
+#ifdef URDFDOM_COLLISION_WITH_GROUP_NAME
+ std::string collision_object_name = (*i)->group_name ;
+#else
std::string collision_object_name = (*i)->name ;
+#endif
+
geom_model.addCollisionObject(model.parents[model.getBodyId(link_name)], collision_object, geomPlacement, collision_object_name, mesh_path);
}
@@ -143,7 +149,13 @@
{
fcl::CollisionObject visual_object = retrieveCollisionGeometry((*i)->geometry, package_dirs, mesh_path);
SE3 geomPlacement = convertFromUrdf((*i)->origin);
+
+#ifdef URDFDOM_COLLISION_WITH_GROUP_NAME
+ std::string visual_object_name = (*i)->group_name ;
+#else
std::string visual_object_name = (*i)->name ;
+#endif
+
geom_model.addVisualObject(model.parents[model.getBodyId(link_name)], visual_object, geomPlacement, visual_object_name, mesh_path);
}
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