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
2
Merged
Joan Solà Ortega
requested to merge
266-publish-odom
into
devel
4 years ago
Overview
0
Commits
5
Pipelines
2
Changes
2
Expand
Closes
#266 (closed)
Edited
4 years ago
by
Joan Solà Ortega
0
0
Merge request reports
Viewing commit
e27109f2
Prev
Next
Show latest version
2 files
+
14
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
e27109f2
Add odometry things to IsMotion
· e27109f2
Joan Solà Ortega
authored
4 years ago
include/core/processor/is_motion.h
+
13
−
1
Options
@@ -30,12 +30,18 @@ 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_
;
};
@@ -45,6 +51,12 @@ inline IsMotion::IsMotion(const StateStructure& _structure) :
//
}
inline
wolf
::
VectorComposite
IsMotion
::
getOdometry
(
)
const
{
return
odometry_
;
}
}
///// IMPLEMENTATION ///////
Loading