Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wolf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
mobile_robotics
wolf_projects
wolf_lib
wolf
Commits
7ac28eff
Commit
7ac28eff
authored
7 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Rename CaptureFix -> CapturePose
parent
99dba2a4
No related branches found
No related tags found
1 merge request
!150
Rename XxxxFix(plain, 2D or 3D) to XxxxPose(plain, 2D or 3D)
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/capture_pose.cpp
+6
-6
6 additions, 6 deletions
src/capture_pose.cpp
src/capture_pose.h
+1
-1
1 addition, 1 deletion
src/capture_pose.h
with
7 additions
and
7 deletions
src/capture_pose.cpp
+
6
−
6
View file @
7ac28eff
...
...
@@ -3,7 +3,7 @@
namespace
wolf
{
CapturePose
::
CapturePose
(
const
TimeStamp
&
_ts
,
SensorBasePtr
_sensor_ptr
,
const
Eigen
::
VectorXs
&
_data
,
const
Eigen
::
MatrixXs
&
_data_covariance
)
:
CaptureBase
(
"
FIX
"
,
_ts
,
_sensor_ptr
),
CaptureBase
(
"
POSE
"
,
_ts
,
_sensor_ptr
),
data_
(
_data
),
data_covariance_
(
_data_covariance
)
{
...
...
@@ -18,16 +18,16 @@ CapturePose::~CapturePose()
void
CapturePose
::
emplaceFeatureAndConstraint
()
{
// Emplace feature
Feature
Fix
Ptr
feature_
fix
=
std
::
make_shared
<
Feature
Fix
>
(
data_
,
data_covariance_
);
addFeature
(
feature_
fix
);
Feature
Pose
Ptr
feature_
pose
=
std
::
make_shared
<
Feature
Pose
>
(
data_
,
data_covariance_
);
addFeature
(
feature_
pose
);
// Emplace constraint
if
(
data_
.
size
()
==
3
&&
data_covariance_
.
rows
()
==
3
&&
data_covariance_
.
cols
()
==
3
)
feature_
fix
->
addConstraint
(
std
::
make_shared
<
ConstraintPose2D
>
(
feature_
fix
));
feature_
pose
->
addConstraint
(
std
::
make_shared
<
ConstraintPose2D
>
(
feature_
pose
));
else
if
(
data_
.
size
()
==
7
&&
data_covariance_
.
rows
()
==
6
&&
data_covariance_
.
cols
()
==
6
)
feature_
fix
->
addConstraint
(
std
::
make_shared
<
ConstraintPose3D
>
(
feature_
fix
));
feature_
pose
->
addConstraint
(
std
::
make_shared
<
ConstraintPose3D
>
(
feature_
pose
));
else
throw
std
::
runtime_error
(
"Wrong data size in Capture
Fix
. Use 3 for 2D. Use 7 for 3D."
);
throw
std
::
runtime_error
(
"Wrong data size in Capture
Pose
. Use 3 for 2D. Use 7 for 3D."
);
}
...
...
This diff is collapsed.
Click to expand it.
src/capture_pose.h
+
1
−
1
View file @
7ac28eff
...
...
@@ -3,9 +3,9 @@
//Wolf includes
#include
"capture_base.h"
#include
"feature_fix.h"
#include
"constraint_pose_2D.h"
#include
"constraint_pose_3D.h"
#include
"feature_pose.h"
//std includes
//
...
...
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