Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpp-manipulation
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
Guilhem Saurel
hpp-manipulation
Commits
d06d1d5c
Commit
d06d1d5c
authored
8 years ago
by
Joseph Mirabel
Committed by
Joseph Mirabel
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix type related problems
parent
7ccf8d76
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/problem.cc
+2
-2
2 additions, 2 deletions
src/problem.cc
src/symbolic-planner.cc
+8
-7
8 additions, 7 deletions
src/symbolic-planner.cc
with
10 additions
and
9 deletions
src/problem.cc
+
2
−
2
View file @
d06d1d5c
...
...
@@ -58,9 +58,9 @@ namespace hpp {
PathValidationPtr_t
Problem
::
pathValidationFactory
()
const
{
PathValidationPtr_t
pv
(
pvFactory_
(
robot
(),
pvTol_
));
const
core
::
ObjectVector_t
&
obstacles
(
collisionObstacles
());
const
core
::
Object
Std
Vector_t
&
obstacles
(
collisionObstacles
());
// Insert obstacles in path validation object
for
(
core
::
ObjectVector_t
::
const_iterator
_obs
=
obstacles
.
begin
();
for
(
core
::
Object
Std
Vector_t
::
const_iterator
_obs
=
obstacles
.
begin
();
_obs
!=
obstacles
.
end
();
++
_obs
)
pv
->
addObstacle
(
*
_obs
);
return
pv
;
...
...
This diff is collapsed.
Click to expand it.
src/symbolic-planner.cc
+
8
−
7
View file @
d06d1d5c
...
...
@@ -23,8 +23,8 @@
#include
<hpp/util/timer.hh>
#include
<hpp/util/assertion.hh>
#include
<hpp/
model
/configuration.hh>
#include
<hpp/
model
/collision-object.hh>
#include
<hpp/
pinocchio
/configuration.hh>
#include
<hpp/
pinocchio
/collision-object.hh>
#include
<hpp/core/roadmap.hh>
#include
<hpp/core/distance.hh>
...
...
@@ -43,6 +43,7 @@
#include
"hpp/manipulation/roadmap.hh"
#include
"hpp/manipulation/roadmap-node.hh"
#include
"hpp/manipulation/symbolic-component.hh"
#include
"hpp/manipulation/graph-path-validation.hh"
#include
"hpp/manipulation/graph/edge.hh"
#include
"hpp/manipulation/graph/graph.hh"
#include
"hpp/manipulation/graph/node-selector.hh"
...
...
@@ -55,7 +56,7 @@ namespace hpp {
namespace
manipulation
{
using
core
::
CollisionValidationReport
;
using
core
::
CollisionValidationReportPtr_t
;
using
core
::
CollisionObjectPtr_t
;
using
core
::
CollisionObject
Const
Ptr_t
;
typedef
graph
::
Edge
::
RelativeMotion
RelativeMotion
;
namespace
{
...
...
@@ -566,14 +567,14 @@ namespace hpp {
colRep
=
HPP_DYNAMIC_PTR_CAST
(
CollisionValidationReport
,
extend
.
validationReport
->
configurationReport
);
if
(
colRep
)
{
CollisionObjectPtr_t
o1
=
colRep
->
object1
,
o2
=
colRep
->
object2
;
CollisionObject
Const
Ptr_t
o1
=
colRep
->
object1
,
o2
=
colRep
->
object2
;
// If it is a collision between the robot and an unactuated object,
// which cannot move in this state.
if
(
o1
->
joint
()
!=
NULL
&&
o2
->
joint
()
!=
NULL
)
{
// TODO: Currently, the RelativeMotion matrix does not cover cases
// like ConvexShapeContact (2 function making a 6D constraints).
RelativeMotion
::
matrix_type
m
=
extend
.
edge
->
relativeMotion
();
size_type
i0
=
RelativeMotion
::
idx
(
NULL
);
size_type
i0
=
RelativeMotion
::
idx
(
JointPtr_t
()
);
size_type
i1
=
RelativeMotion
::
idx
(
o1
->
joint
());
size_type
i2
=
RelativeMotion
::
idx
(
o2
->
joint
());
if
(
m
(
i0
,
i1
)
==
RelativeMotion
::
Parameterized
...
...
@@ -607,14 +608,14 @@ namespace hpp {
colRep
=
HPP_DYNAMIC_PTR_CAST
(
CollisionValidationReport
,
extend
.
validationReport
->
configurationReport
);
if
(
colRep
)
{
CollisionObjectPtr_t
o1
=
colRep
->
object1
,
o2
=
colRep
->
object2
;
CollisionObject
Const
Ptr_t
o1
=
colRep
->
object1
,
o2
=
colRep
->
object2
;
// If it is a collision between the robot and an unactuated object,
// which cannot move in this state.
if
(
o1
->
joint
()
!=
NULL
&&
o2
->
joint
()
!=
NULL
)
{
// TODO: Currently, the RelativeMotion matrix does not cover cases
// like ConvexShapeContact (2 function making a 6D constraints).
RelativeMotion
::
matrix_type
m
=
extend
.
edge
->
relativeMotion
();
size_type
i0
=
RelativeMotion
::
idx
(
NULL
);
size_type
i0
=
RelativeMotion
::
idx
(
JointPtr_t
()
);
size_type
i1
=
RelativeMotion
::
idx
(
o1
->
joint
());
size_type
i2
=
RelativeMotion
::
idx
(
o2
->
joint
());
if
(
m
(
i0
,
i1
)
==
RelativeMotion
::
Parameterized
...
...
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