Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mantle-api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
Eclipse openpass
mantle-api
Commits
cb632132
Commit
cb632132
authored
2 years ago
by
Islam Abed
Browse files
Options
Downloads
Patches
Plain Diff
Address review comments
parent
fde7bd3f
No related branches found
Branches containing commit
Tags
v2.1.0
Tags containing commit
1 merge request
!41
Add interface function for TransformPolylinePointsFromWorldToLocal
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MantleAPI/include/MantleAPI/Common/i_geometry_helper.h
+11
-11
11 additions, 11 deletions
MantleAPI/include/MantleAPI/Common/i_geometry_helper.h
MantleAPI/test/MantleAPI/Test/test_utils.h
+3
-3
3 additions, 3 deletions
MantleAPI/test/MantleAPI/Test/test_utils.h
with
14 additions
and
14 deletions
MantleAPI/include/MantleAPI/Common/i_geometry_helper.h
+
11
−
11
View file @
cb632132
...
@@ -41,23 +41,23 @@ public:
...
@@ -41,23 +41,23 @@ public:
/// @brief Transforms world polyline positions to local coordinate system.
/// @brief Transforms world polyline positions to local coordinate system.
/// @param polyline_points world polyline points to be transformed
/// @param polyline_points world polyline points to be transformed
/// @param
position local system positio
n
/// @param
local_origin local coordinate system origi
n
/// @param orientation local system orientation
/// @param
local_
orientation local system orientation
/// @return converted polyline points
/// @return converted polyline points
virtual
std
::
vector
<
Vec3
<
units
::
length
::
meter_t
>>
TransformPolylinePointsFromWorldToLocal
(
virtual
std
::
vector
<
Vec3
<
units
::
length
::
meter_t
>>
TransformPolylinePointsFromWorldToLocal
(
const
std
::
vector
<
Vec3
<
units
::
length
::
meter_t
>>&
polyline_points
,
const
std
::
vector
<
Vec3
<
units
::
length
::
meter_t
>>&
polyline_points
,
const
Vec3
<
units
::
length
::
meter_t
>&
positio
n
,
const
Vec3
<
units
::
length
::
meter_t
>&
local_origi
n
,
const
Orientation3
<
units
::
angle
::
radian_t
>&
orientation
)
const
=
0
;
const
Orientation3
<
units
::
angle
::
radian_t
>&
local_
orientation
)
const
=
0
;
/// @brief Transforms world position to local coordinate system.
/// @brief Transforms world position to local coordinate system.
/// @param
point
_position world
point
position to be transformed
/// @param
world
_position world position to be transformed
/// @param
position local system positio
n
/// @param
local_origin local coordinate system origi
n
/// @param orientation local system orientation
/// @param
local_
orientation local system orientation
/// @return transformed point
/// @return transformed point
virtual
Vec3
<
units
::
length
::
meter_t
>
TransformPo
intPo
sitionFromWorldToLocal
(
virtual
Vec3
<
units
::
length
::
meter_t
>
TransformPositionFromWorldToLocal
(
const
Vec3
<
units
::
length
::
meter_t
>&
point
_position
,
const
Vec3
<
units
::
length
::
meter_t
>&
world
_position
,
const
Vec3
<
units
::
length
::
meter_t
>&
positio
n
,
const
Vec3
<
units
::
length
::
meter_t
>&
local_origi
n
,
const
Orientation3
<
units
::
angle
::
radian_t
>&
orientation
)
const
=
0
;
const
Orientation3
<
units
::
angle
::
radian_t
>&
local_
orientation
)
const
=
0
;
};
};
}
// namespace mantle_api
}
// namespace mantle_api
...
...
This diff is collapsed.
Click to expand it.
MantleAPI/test/MantleAPI/Test/test_utils.h
+
3
−
3
View file @
cb632132
...
@@ -50,18 +50,18 @@ public:
...
@@ -50,18 +50,18 @@ public:
const
Vec3
<
units
::
length
::
meter_t
>&
position
,
const
Vec3
<
units
::
length
::
meter_t
>&
position
,
const
Orientation3
<
units
::
angle
::
radian_t
>&
orientation
)
const
const
Orientation3
<
units
::
angle
::
radian_t
>&
orientation
)
const
{
{
// do not trans
late
but return original points
// do not trans
form
but return original points
std
::
ignore
=
position
;
std
::
ignore
=
position
;
std
::
ignore
=
orientation
;
std
::
ignore
=
orientation
;
return
polyline_points
;
return
polyline_points
;
}
}
virtual
Vec3
<
units
::
length
::
meter_t
>
TransformPo
intPo
sitionFromWorldToLocal
(
virtual
Vec3
<
units
::
length
::
meter_t
>
TransformPositionFromWorldToLocal
(
const
Vec3
<
units
::
length
::
meter_t
>&
point_position
,
const
Vec3
<
units
::
length
::
meter_t
>&
point_position
,
const
Vec3
<
units
::
length
::
meter_t
>&
position
,
const
Vec3
<
units
::
length
::
meter_t
>&
position
,
const
Orientation3
<
units
::
angle
::
radian_t
>&
orientation
)
const
const
Orientation3
<
units
::
angle
::
radian_t
>&
orientation
)
const
{
{
// do not trans
late
but return original points
// do not trans
form
but return original points
std
::
ignore
=
position
;
std
::
ignore
=
position
;
std
::
ignore
=
orientation
;
std
::
ignore
=
orientation
;
return
point_position
;
return
point_position
;
...
...
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