Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
ndcurves
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
loco-3d
ndcurves
Commits
9d998e57
Commit
9d998e57
authored
5 years ago
by
Pierre Fernbach
Browse files
Options
Downloads
Patches
Plain Diff
[se3] add constructor from two transforms
parent
e21777a0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/curves/se3_curve.h
+12
-0
12 additions, 0 deletions
include/curves/se3_curve.h
with
12 additions
and
0 deletions
include/curves/se3_curve.h
+
12
−
0
View file @
9d998e57
...
...
@@ -54,7 +54,19 @@ namespace curves
// better switch to shared ptr
}
/* Constructor without curve object for the translation : */
/// \brief Constructor from init/end transform use polynomial of degree 1 for position and SO3Linear for rotation
SE3Curve
(
const
transform_t
&
init_transform
,
const
transform_t
&
end_transform
,
const
time_t
&
t_min
,
const
time_t
&
t_max
)
:
curve_abc_t
(),
dim_
(
6
),
translation_curve_
(
new
polynomial_t
(
pointX_t
(
init_transform
.
translation
()),
pointX_t
(
end_transform
.
translation
()),
t_min
,
t_max
)),
rotation_curve_
(
new
SO3Linear_t
(
init_transform
.
rotation
(),
end_transform
.
rotation
(),
t_min
,
t_max
)),
T_min_
(
t_min
),
T_max_
(
t_max
)
{
safe_check
();
}
/// \brief Constructor from init/end pose, with quaternion. use polynomial of degree 1 for position and SO3Linear for rotation
SE3Curve
(
const
pointX_t
&
init_pos
,
const
pointX_t
&
end_pos
,
const
Quaternion
&
init_rot
,
const
Quaternion
&
end_rot
,
const
time_t
&
t_min
,
const
time_t
&
t_max
)
:
curve_abc_t
(),
...
...
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