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
Merge requests
!387
Resolve "Publish odom"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Publish odom"
266-publish-odom
into
devel
Overview
0
Commits
5
Pipelines
2
Changes
5
Merged
Joan Solà Ortega
requested to merge
266-publish-odom
into
devel
4 years ago
Overview
0
Commits
5
Pipelines
2
Changes
5
Expand
Closes
#266 (closed)
Edited
4 years ago
by
Joan Solà Ortega
0
0
Merge request reports
Compare
devel
devel (base)
and
latest version
latest version
7f94f496
5 commits,
4 years ago
5 files
+
57
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
include/core/processor/is_motion.h
+
20
−
1
Options
@@ -22,6 +22,7 @@ class IsMotion
{
public:
IsMotion
(
const
StateStructure
&
_structure
);
virtual
~
IsMotion
();
// Queries to the processor:
@@ -29,15 +30,33 @@ class IsMotion
virtual
VectorComposite
getState
(
const
StateStructure
&
_structure
=
""
)
const
=
0
;
virtual
VectorComposite
getState
(
const
TimeStamp
&
_ts
,
const
StateStructure
&
_structure
=
""
)
const
=
0
;
VectorComposite
getOdometry
(
)
const
;
private:
void
setOdometry
(
const
VectorComposite
&
_zero_odom
)
{
odometry_
=
_zero_odom
;}
public
:
const
StateStructure
&
getStateStructure
(
)
{
return
state_structure_
;
};
void
setStateStructure
(
std
::
string
_state_structure
)
{
state_structure_
=
_state_structure
;
};
void
addToProblem
(
ProblemPtr
_prb_ptr
,
IsMotionPtr
_motion_ptr
);
protected
:
StateStructure
state_structure_
;
///< The structure of the state vector (to retrieve state blocks from frames)
VectorComposite
odometry_
;
};
inline
IsMotion
::
IsMotion
(
const
StateStructure
&
_structure
)
:
state_structure_
(
_structure
)
{
//
}
inline
wolf
::
VectorComposite
IsMotion
::
getOdometry
(
)
const
{
return
odometry_
;
}
}
///// IMPLEMENTATION ///////
Loading