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
5f02ff6b
Commit
5f02ff6b
authored
6 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
FeatureBase constructor accepts InfoMatrix as uncertainty spec
parent
31a6525d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!233
WIP: Apriltag
Pipeline
#2424
passed
6 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/feature_base.cpp
+16
-3
16 additions, 3 deletions
src/feature_base.cpp
src/feature_base.h
+8
-1
8 additions, 1 deletion
src/feature_base.h
with
24 additions
and
4 deletions
src/feature_base.cpp
+
16
−
3
View file @
5f02ff6b
...
...
@@ -6,7 +6,7 @@ namespace wolf {
unsigned
int
FeatureBase
::
feature_id_count_
=
0
;
FeatureBase
::
FeatureBase
(
const
std
::
string
&
_type
,
const
Eigen
::
VectorXs
&
_measurement
,
const
Eigen
::
MatrixXs
&
_meas_
covariance
)
:
FeatureBase
::
FeatureBase
(
const
std
::
string
&
_type
,
const
Eigen
::
VectorXs
&
_measurement
,
const
Eigen
::
MatrixXs
&
_meas_
uncertainty
,
UncertaintyType
_uncertainty_is_info
)
:
NodeBase
(
"FEATURE"
,
_type
),
capture_ptr_
(),
is_removing_
(
false
),
...
...
@@ -15,8 +15,21 @@ FeatureBase::FeatureBase(const std::string& _type, const Eigen::VectorXs& _measu
landmark_id_
(
0
),
measurement_
(
_measurement
)
{
setMeasurementCovariance
(
_meas_covariance
);
// std::cout << "constructed +f" << id() << std::endl;
switch
(
_uncertainty_is_info
)
{
case
UNCERTAINTY_IS_INFO
:
setMeasurementInformation
(
_meas_uncertainty
);
break
;
case
UNCERTAINTY_IS_COVARIANCE
:
setMeasurementCovariance
(
_meas_uncertainty
);
break
;
case
UNCERTAINTY_IS_STDDEV
:
WOLF_ERROR
(
"STDEV case Not implemented yet"
);
break
;
default
:
break
;
}
// std::cout << "constructed +f" << id() << std::endl;
}
FeatureBase
::~
FeatureBase
()
...
...
This diff is collapsed.
Click to expand it.
src/feature_base.h
+
8
−
1
View file @
5f02ff6b
...
...
@@ -38,12 +38,19 @@ class FeatureBase : public NodeBase, public std::enable_shared_from_this<Feature
public:
typedef
enum
{
UNCERTAINTY_IS_COVARIANCE
,
UNCERTAINTY_IS_INFO
,
UNCERTAINTY_IS_STDDEV
}
UncertaintyType
;
/** \brief Constructor from capture pointer and measure
* \param _tp type of feature -- see wolf.h
* \param _measurement the measurement
* \param _meas_covariance the noise of the measurement
*/
FeatureBase
(
const
std
::
string
&
_type
,
const
Eigen
::
VectorXs
&
_measurement
,
const
Eigen
::
MatrixXs
&
_meas_
covariance
);
FeatureBase
(
const
std
::
string
&
_type
,
const
Eigen
::
VectorXs
&
_measurement
,
const
Eigen
::
MatrixXs
&
_meas_
uncertainty
,
UncertaintyType
_uncertainty_is_info
=
UNCERTAINTY_IS_COVARIANCE
);
virtual
~
FeatureBase
();
void
remove
();
...
...
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