Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
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
pinocchio
Commits
7fe1641c
Commit
7fe1641c
authored
9 years ago
by
jcarpent
Browse files
Options
Downloads
Patches
Plain Diff
[C++] Rename + aligne code
parent
a263cbdd
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/multibody/parser/from-collada-to-fcl.hpp
+6
-6
6 additions, 6 deletions
src/multibody/parser/from-collada-to-fcl.hpp
src/multibody/parser/urdf-with-geometry.hxx
+3
-5
3 additions, 5 deletions
src/multibody/parser/urdf-with-geometry.hxx
with
9 additions
and
11 deletions
src/multibody/parser/from-collada-to-fcl.hpp
+
6
−
6
View file @
7fe1641c
...
...
@@ -32,14 +32,13 @@
#include
<assimp/Importer.hpp>
#include
<assimp/postprocess.h>
#include
<hpp/fcl/BV/OBBRSS.h>
#include
<hpp/fcl/BVH/BVH_model.h>
#include
<exception>
typedef
fcl
::
BVHModel
<
fcl
::
OBBRSS
>
PolyhedronType
;
typedef
boost
::
shared_ptr
<
PolyhedronType
>
Polyhedron
PtrType
;
typedef
boost
::
shared_ptr
<
PolyhedronType
>
Polyhedron
_ptr
;
struct
TriangleAndVertices
{
...
...
@@ -67,7 +66,7 @@ inline void buildMesh (const ::urdf::Vector3 & scale,
const
aiScene
*
scene
,
const
aiNode
*
node
,
std
::
vector
<
unsigned
>
&
subMeshIndexes
,
const
Polyhedron
PtrType
&
mesh
,
const
Polyhedron
_ptr
&
mesh
,
TriangleAndVertices
&
tv
)
{
if
(
!
node
)
return
;
...
...
@@ -89,8 +88,8 @@ inline void buildMesh (const ::urdf::Vector3 & scale,
{
aiMesh
*
input_mesh
=
scene
->
mMeshes
[
node
->
mMeshes
[
i
]];
unsigned
oldNbPoints
=
mesh
->
num_vertices
;
unsigned
oldNbTriangles
=
mesh
->
num_tris
;
unsigned
oldNbPoints
=
(
unsigned
)
mesh
->
num_vertices
;
unsigned
oldNbTriangles
=
(
unsigned
)
mesh
->
num_tris
;
// Add the vertices
for
(
uint32_t
j
=
0
;
j
<
input_mesh
->
mNumVertices
;
j
++
)
...
...
@@ -204,7 +203,8 @@ inline void loadPolyhedronFromResource (const std::string & resource_path,
*
* @return The absolute path to the mesh file
*/
inline
std
::
string
fromURDFMeshPathToAbsolutePath
(
const
std
::
string
&
urdf_mesh_path
,
const
std
::
string
&
meshRootDir
)
inline
std
::
string
fromURDFMeshPathToAbsolutePath
(
const
std
::
string
&
urdf_mesh_path
,
const
std
::
string
&
meshRootDir
)
{
std
::
string
absolutePath
=
std
::
string
(
meshRootDir
+
...
...
This diff is collapsed.
Click to expand it.
src/multibody/parser/urdf-with-geometry.hxx
+
3
−
5
View file @
7fe1641c
//
// Copyright (c) 2015 CNRS
// Copyright (c) 2015
-2016
CNRS
//
// This file is part of Pinocchio
// Pinocchio is free software: you can redistribute it
...
...
@@ -32,13 +32,11 @@
#include
<exception>
namespace
se3
{
namespace
urdf
{
inline
fcl
::
CollisionObject
retrieveCollisionGeometry
(
const
::
urdf
::
LinkConstPtr
&
link
,
const
std
::
string
&
meshRootDir
)
{
boost
::
shared_ptr
<
::
urdf
::
Collision
>
collision
=
link
->
collision
;
...
...
@@ -55,7 +53,7 @@ namespace se3
::
urdf
::
Vector3
scale
=
collisionGeometry
->
scale
;
// Create FCL mesh by parsing Collada file.
Polyhedron
PtrType
polyhedron
(
new
PolyhedronType
);
Polyhedron
_ptr
polyhedron
(
new
PolyhedronType
);
loadPolyhedronFromResource
(
full_path
,
scale
,
polyhedron
);
geometry
=
polyhedron
;
...
...
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