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
d51cdb6a
Commit
d51cdb6a
authored
8 years ago
by
jcarpent
Browse files
Options
Downloads
Patches
Plain Diff
[Joints] Clean JointModelBase
parent
ad8752be
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/multibody/joint/joint-base.hpp
+8
-43
8 additions, 43 deletions
src/multibody/joint/joint-base.hpp
with
8 additions
and
43 deletions
src/multibody/joint/joint-base.hpp
+
8
−
43
View file @
d51cdb6a
...
...
@@ -25,41 +25,6 @@
namespace
se3
{
// template<class C> struct traits {};
/* RNEA operations
*
* *** FORWARD ***
* J::calc(q,vq)
* SE3 = SE3 * J::SE3
* Motion = J::Motion
* Motion = J::Constraint*J::JointMotion + J::Bias + Motion^J::Motion
* Force = Inertia*Motion + Inertia.vxiv(Motion)
*
* *** BACKWARD ***
* J::JointForce = J::Constraint::Transpose*J::Force
*/
/* CRBA operations
*
* *** FORWARD ***
* J::calc(q)
* Inertia = Inertia
*
* *** BACKWARD ***
* Inertia += SE3::act(Inertia)
* F = Inertia*J::Constraint
* JointInertia.block = J::Constraint::Transpose*F
* *** *** INNER ***
* F = SE3::act(f)
* JointInertia::block = J::Constraint::Transpose*F
*/
/* Jacobian operations
*
* internal::ActionReturn<Constraint>::Type
* Constraint::se3Action
*/
#ifdef __clang__
#define SE3_JOINT_TYPEDEF_ARG(prefix) \
...
...
@@ -223,12 +188,10 @@ namespace se3
};
};
template
<
typename
_JointModel
>
template
<
typename
Derived
>
struct
JointModelBase
{
typedef
_JointModel
Derived
;
typedef
JointModelBase
<
_JointModel
>
Base
;
typedef
typename
traits
<
_JointModel
>::
JointDerived
JointDerived
;
typedef
typename
traits
<
Derived
>::
JointDerived
JointDerived
;
SE3_JOINT_TYPEDEF_TEMPLATE
;
...
...
@@ -238,12 +201,12 @@ namespace se3
JointDataDerived
createData
()
const
{
return
derived
().
createData
();
}
void
calc
(
JointDataDerived
&
data
,
const
Eigen
::
VectorXd
&
qs
)
const
const
Eigen
::
VectorXd
&
qs
)
const
{
derived
().
calc
(
data
,
qs
);
}
void
calc
(
JointDataDerived
&
data
,
const
Eigen
::
VectorXd
&
qs
,
const
Eigen
::
VectorXd
&
vs
)
const
const
Eigen
::
VectorXd
&
vs
)
const
{
derived
().
calc
(
data
,
qs
,
vs
);
}
void
calc_aba
(
JointDataDerived
&
data
,
...
...
@@ -257,7 +220,8 @@ namespace se3
///
/// \returns The finite difference increment.
///
typename
ConfigVector_t
::
Scalar
finiteDifferenceIncrement
()
const
{
return
derived
().
finiteDifferenceIncrement
();
}
typename
ConfigVector_t
::
Scalar
finiteDifferenceIncrement
()
const
{
return
derived
().
finiteDifferenceIncrement
();
}
/**
* @brief Integrate joint's configuration for a tangent vector during one unit time
...
...
@@ -304,7 +268,8 @@ namespace se3
*
* @return The joint configuration
*/
ConfigVector_t
randomConfiguration
(
const
ConfigVector_t
&
lower_pos_limit
,
const
ConfigVector_t
&
upper_pos_limit
)
const
ConfigVector_t
randomConfiguration
(
const
ConfigVector_t
&
lower_pos_limit
,
const
ConfigVector_t
&
upper_pos_limit
)
const
{
return
derived
().
randomConfiguration_impl
(
lower_pos_limit
,
upper_pos_limit
);
}
...
...
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