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
543f1146
Commit
543f1146
authored
5 years ago
by
Pep Martí Saumell
Browse files
Options
Downloads
Patches
Plain Diff
wip
parent
972f6864
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!298
WIP: Resolve "New factorRelativePose2DWithExtrinsics"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/core/factor/factor_odom_2D.h
+8
-6
8 additions, 6 deletions
include/core/factor/factor_odom_2D.h
include/core/feature/feature_odom_2D.h
+3
-5
3 additions, 5 deletions
include/core/feature/feature_odom_2D.h
with
11 additions
and
11 deletions
include/core/factor/factor_odom_2D.h
+
8
−
6
View file @
543f1146
...
@@ -8,25 +8,27 @@
...
@@ -8,25 +8,27 @@
//#include "ceres/jet.h"
//#include "ceres/jet.h"
namespace
wolf
{
namespace
wolf
{
WOLF_PTR_TYPEDEFS
(
FactorOdom2D
);
WOLF_PTR_TYPEDEFS
(
FactorOdom2D
);
//class
//class
class
FactorOdom2D
:
public
FactorAutodiff
<
FactorOdom2D
,
3
,
2
,
1
,
2
,
1
>
class
FactorOdom2D
:
public
FactorAutodiff
<
FactorOdom2D
,
3
,
2
,
1
,
2
,
1
,
2
,
1
>
{
{
public:
public:
FactorOdom2D
(
const
FeatureBasePtr
&
_ftr_ptr
,
FactorOdom2D
(
const
FeatureBasePtr
&
_ftr_ptr
,
const
FrameBasePtr
&
_frame_other_ptr
,
const
FrameBasePtr
&
_frame_other_ptr
,
const
ProcessorBasePtr
&
_processor_ptr
=
nullptr
,
const
ProcessorBasePtr
&
_processor_ptr
=
nullptr
,
bool
_apply_loss_function
=
false
,
FactorStatus
_status
=
FAC_ACTIVE
)
:
bool
_apply_loss_function
=
false
,
FactorStatus
_status
=
FAC_ACTIVE
)
:
FactorAutodiff
<
FactorOdom2D
,
3
,
2
,
1
,
2
,
1
>
(
"ODOM 2D"
,
FactorAutodiff
<
FactorOdom2D
,
3
,
2
,
1
,
2
,
1
,
2
,
1
>
(
"ODOM 2D"
,
_frame_other_ptr
,
nullptr
,
nullptr
,
nullptr
,
_frame_other_ptr
,
nullptr
,
nullptr
,
nullptr
,
_processor_ptr
,
_processor_ptr
,
_apply_loss_function
,
_status
,
_apply_loss_function
,
_status
,
_frame_other_ptr
->
getP
(),
_frame_other_ptr
->
getP
(),
_frame_other_ptr
->
getO
(),
_frame_other_ptr
->
getO
(),
_ftr_ptr
->
getFrame
()
->
getP
(),
_ftr_ptr
->
getFrame
()
->
getP
(),
_ftr_ptr
->
getFrame
()
->
getO
())
_ftr_ptr
->
getFrame
()
->
getO
(),
_ftr_ptr
->
getCapture
()
->
getSensorP
(),
_ftr_ptr
->
getCapture
()
->
getSensorO
())
{
{
//
//
}
}
...
@@ -34,7 +36,7 @@ class FactorOdom2D : public FactorAutodiff<FactorOdom2D, 3, 2, 1, 2, 1>
...
@@ -34,7 +36,7 @@ class FactorOdom2D : public FactorAutodiff<FactorOdom2D, 3, 2, 1, 2, 1>
virtual
~
FactorOdom2D
()
=
default
;
virtual
~
FactorOdom2D
()
=
default
;
template
<
typename
T
>
template
<
typename
T
>
bool
operator
()(
const
T
*
const
_p1
,
const
T
*
const
_o1
,
const
T
*
const
_p2
,
const
T
*
const
_o2
,
bool
operator
()(
const
T
*
const
_p1
,
const
T
*
const
_o1
,
const
T
*
const
_p2
,
const
T
*
const
_o2
,
const
T
*
const
_sp
,
const
T
*
const
_so
,
T
*
_residuals
)
const
;
T
*
_residuals
)
const
;
public
:
public
:
...
@@ -47,7 +49,7 @@ class FactorOdom2D : public FactorAutodiff<FactorOdom2D, 3, 2, 1, 2, 1>
...
@@ -47,7 +49,7 @@ class FactorOdom2D : public FactorAutodiff<FactorOdom2D, 3, 2, 1, 2, 1>
template
<
typename
T
>
template
<
typename
T
>
inline
bool
FactorOdom2D
::
operator
()(
const
T
*
const
_p1
,
const
T
*
const
_o1
,
const
T
*
const
_p2
,
inline
bool
FactorOdom2D
::
operator
()(
const
T
*
const
_p1
,
const
T
*
const
_o1
,
const
T
*
const
_p2
,
const
T
*
const
_o2
,
T
*
_residuals
)
const
const
T
*
const
_o2
,
const
T
*
const
_sp
,
const
T
*
const
_so
,
T
*
_residuals
)
const
{
{
// MAPS
// MAPS
...
...
This diff is collapsed.
Click to expand it.
include/core/feature/feature_odom_2D.h
+
3
−
5
View file @
543f1146
...
@@ -3,15 +3,13 @@
...
@@ -3,15 +3,13 @@
//Wolf includes
//Wolf includes
#include
"core/feature/feature_base.h"
#include
"core/feature/feature_base.h"
#include
"core/factor/factor_odom_2D.h"
#include
"core/factor/factor_odom_2D_analytic.h"
//std includes
//std includes
namespace
wolf
{
namespace
wolf
{
WOLF_PTR_TYPEDEFS
(
FeatureOdom2D
);
WOLF_PTR_TYPEDEFS
(
FeatureOdom2D
);
//class FeatureOdom2D
//class FeatureOdom2D
class
FeatureOdom2D
:
public
FeatureBase
class
FeatureOdom2D
:
public
FeatureBase
{
{
...
@@ -28,13 +26,13 @@ class FeatureOdom2D : public FeatureBase
...
@@ -28,13 +26,13 @@ class FeatureOdom2D : public FeatureBase
virtual
~
FeatureOdom2D
();
virtual
~
FeatureOdom2D
();
/** \brief Generic interface to find factors
/** \brief Generic interface to find factors
*
*
* TBD
* TBD
* Generic interface to find factors between this feature and a map (static/slam) or a previous feature
* Generic interface to find factors between this feature and a map (static/slam) or a previous feature
*
*
**/
**/
virtual
void
findFactors
();
virtual
void
findFactors
();
};
};
}
// namespace wolf
}
// namespace wolf
...
...
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