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
2f8c3d3e
Verified
Commit
2f8c3d3e
authored
4 years ago
by
Justin Carpentier
Browse files
Options
Downloads
Patches
Plain Diff
srdf: allows removing of collision pairs when FCL is not present
parent
75324ec0
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/parsers/srdf.hpp
+0
-5
0 additions, 5 deletions
src/parsers/srdf.hpp
src/parsers/srdf.hxx
+10
-14
10 additions, 14 deletions
src/parsers/srdf.hxx
with
10 additions
and
19 deletions
src/parsers/srdf.hpp
+
0
−
5
View file @
2f8c3d3e
...
...
@@ -13,8 +13,6 @@ namespace pinocchio
namespace
srdf
{
#ifdef PINOCCHIO_WITH_HPP_FCL
///
/// \brief Deactive all possible collision pairs mentioned in the SRDF file.
/// It throws if the SRDF file is incorrect.
...
...
@@ -44,8 +42,6 @@ namespace pinocchio
const
std
::
string
&
xmlString
,
const
bool
verbose
=
false
);
#endif // ifdef PINOCCHIO_WITH_HPP_FCL
///
/// \brief Get the reference configurations of a given model associated to a SRDF file.
/// It throws if the SRDF file is incorrect. The reference configurations are
...
...
@@ -76,7 +72,6 @@ namespace pinocchio
std
::
istream
&
xmlStream
,
const
bool
verbose
=
false
);
///
/// \brief Load the rotor params of a given model associated to a SRDF file.
/// It throws if the SRDF file is incorrect.
...
...
This diff is collapsed.
Click to expand it.
src/parsers/srdf.hxx
+
10
−
14
View file @
2f8c3d3e
...
...
@@ -23,8 +23,6 @@ namespace pinocchio
{
namespace
srdf
{
#ifdef PINOCCHIO_WITH_HPP_FCL
namespace
details
{
template
<
typename
Scalar
,
int
Options
,
template
<
typename
,
int
>
class
JointCollectionTpl
>
...
...
@@ -129,8 +127,6 @@ namespace pinocchio
details
::
removeCollisionPairs
(
model
,
geom_model
,
srdf_stream
,
verbose
);
}
#endif // ifdef PINOCCHIO_WITH_HPP_FCL
template
<
typename
Scalar
,
int
Options
,
template
<
typename
,
int
>
class
JointCollectionTpl
>
bool
loadRotorParameters
(
ModelTpl
<
Scalar
,
Options
,
JointCollectionTpl
>
&
model
,
const
std
::
string
&
filename
,
...
...
@@ -210,8 +206,8 @@ namespace pinocchio
typedef
typename
Model
::
ConfigVectorType
ConfigVectorType
;
typedef
boost
::
fusion
::
vector
<
const
std
::
string
&
,
const
ConfigVectorType
&
,
ConfigVectorType
&>
ArgsType
;
const
ConfigVectorType
&
,
ConfigVectorType
&>
ArgsType
;
template
<
typename
JointModel
>
static
void
algo
(
const
JointModelBase
<
JointModel
>
&
joint
,
...
...
@@ -225,9 +221,9 @@ namespace pinocchio
private
:
template
<
int
axis
>
static
void
_algo
(
const
JointModelRevoluteUnboundedTpl
<
Scalar
,
Options
,
axis
>
&
joint
,
const
std
::
string
&
joint_name
,
const
ConfigVectorType
&
fromXML
,
ConfigVectorType
&
config
)
const
std
::
string
&
joint_name
,
const
ConfigVectorType
&
fromXML
,
ConfigVectorType
&
config
)
{
typedef
JointModelRevoluteUnboundedTpl
<
Scalar
,
Options
,
axis
>
JointModelRUB
;
PINOCCHIO_STATIC_ASSERT
(
JointModelRUB
::
NQ
==
2
,
JOINT_MODEL_REVOLUTE_SHOULD_HAVE_2_PARAMETERS
);
...
...
@@ -235,16 +231,16 @@ namespace pinocchio
std
::
cerr
<<
"Could not read joint config ("
<<
joint_name
<<
" , "
<<
fromXML
.
transpose
()
<<
")"
<<
std
::
endl
;
else
{
SINCOS
(
fromXML
[
0
],
&
config
[
joint
.
idx_q
()
+
1
],
&
config
[
joint
.
idx_q
()
+
0
]);
&
config
[
joint
.
idx_q
()
+
1
],
&
config
[
joint
.
idx_q
()
+
0
]);
}
}
template
<
typename
JointModel
>
static
void
_algo
(
const
JointModel
&
joint
,
const
std
::
string
&
joint_name
,
const
ConfigVectorType
&
fromXML
,
ConfigVectorType
&
config
)
const
std
::
string
&
joint_name
,
const
ConfigVectorType
&
fromXML
,
ConfigVectorType
&
config
)
{
if
(
joint
.
nq
()
!=
fromXML
.
size
())
std
::
cerr
<<
"Could not read joint config ("
<<
joint_name
<<
" , "
<<
fromXML
.
transpose
()
<<
")"
<<
std
::
endl
;
...
...
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