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
f263e5fa
Commit
f263e5fa
authored
8 years ago
by
jcarpent
Browse files
Options
Downloads
Patches
Plain Diff
[Joint] Set default value for indexes in JointModelBase
parent
94259309
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/multibody/joint/joint-base.hpp
+4
-1
4 additions, 1 deletion
src/multibody/joint/joint-base.hpp
with
4 additions
and
1 deletion
src/multibody/joint/joint-base.hpp
+
4
−
1
View file @
f263e5fa
...
...
@@ -22,6 +22,7 @@
#include
"pinocchio/multibody/fwd.hpp"
#include
<Eigen/Core>
#include
<limits>
namespace
se3
{
...
...
@@ -426,12 +427,14 @@ namespace se3
/// Default constructor: protected.
///
/// Prevent the construction of stand-alone JointModelBase.
inline
JointModelBase
()
{}
// TODO: default value should be set to -1
inline
JointModelBase
()
:
i_id
(
std
::
numeric_limits
<
JointIndex
>::
max
()),
i_q
(
-
1
),
i_v
(
-
1
)
{}
/// Copy constructor: protected.
///
/// Copy of stand-alone JointModelBase are prevented, but can be used from inhereting
/// objects. Copy is done by calling copy operator.
inline
JointModelBase
(
const
JointModelBase
&
clone
)
{
*
this
=
clone
;
}
/// Copy operator: protected.
///
/// Copy of stand-alone JointModelBase are prevented, but can be used from inhereting
...
...
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