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
e27109f2
Commit
e27109f2
authored
5 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Add odometry things to IsMotion
parent
c0fb2122
No related branches found
No related tags found
1 merge request
!387
Resolve "Publish odom"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/core/processor/is_motion.h
+13
-1
13 additions, 1 deletion
include/core/processor/is_motion.h
src/processor/is_motion.cpp
+1
-0
1 addition, 0 deletions
src/processor/is_motion.cpp
with
14 additions
and
1 deletion
include/core/processor/is_motion.h
+
13
−
1
View file @
e27109f2
...
...
@@ -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 ///////
...
...
This diff is collapsed.
Click to expand it.
src/processor/is_motion.cpp
+
1
−
0
View file @
e27109f2
...
...
@@ -5,5 +5,6 @@ using namespace wolf;
void
IsMotion
::
addToProblem
(
ProblemPtr
_prb_ptr
,
IsMotionPtr
_motion_ptr
)
{
setOdometry
(
_prb_ptr
->
stateZero
(
state_structure_
));
_prb_ptr
->
addProcessorIsMotion
(
_motion_ptr
);
}
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