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
0cef6ecf
Commit
0cef6ecf
authored
5 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Add composite vector getters to ProcMotion
parent
cb74da1d
No related branches found
No related tags found
1 merge request
!343
WIP: Resolve "Complete state vector new data structure?"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/core/processor/processor_motion.h
+5
-5
5 additions, 5 deletions
include/core/processor/processor_motion.h
src/processor/processor_motion.cpp
+9
-4
9 additions, 4 deletions
src/processor/processor_motion.cpp
with
14 additions
and
9 deletions
include/core/processor/processor_motion.h
+
5
−
5
View file @
0cef6ecf
...
@@ -136,11 +136,6 @@ class ProcessorMotion : public ProcessorBase, public IsMotion
...
@@ -136,11 +136,6 @@ class ProcessorMotion : public ProcessorBase, public IsMotion
// TODO move somewhere below
virtual
bool
getStateComposite
(
VectorComposite
&
_state
)
const
override
;
virtual
bool
getStateComposite
(
const
TimeStamp
&
_ts
,
VectorComposite
&
_state
)
const
override
;
using
IsMotion
::
getStateComposite
;
...
@@ -174,6 +169,11 @@ class ProcessorMotion : public ProcessorBase, public IsMotion
...
@@ -174,6 +169,11 @@ class ProcessorMotion : public ProcessorBase, public IsMotion
// Queries to the processor:
// Queries to the processor:
virtual
bool
getVectorComposite
(
VectorComposite
&
_state
)
const
override
;
virtual
bool
getVectorComposite
(
const
TimeStamp
&
_ts
,
VectorComposite
&
_state
)
const
override
;
using
IsMotion
::
getVectorComposite
;
/** \brief Fill a reference to the state integrated so far
/** \brief Fill a reference to the state integrated so far
* \param _x the returned state vector
* \param _x the returned state vector
*/
*/
...
...
This diff is collapsed.
Click to expand it.
src/processor/processor_motion.cpp
+
9
−
4
View file @
0cef6ecf
...
@@ -398,16 +398,21 @@ bool ProcessorMotion::getState(const TimeStamp& _ts, Eigen::VectorXd& _x) const
...
@@ -398,16 +398,21 @@ bool ProcessorMotion::getState(const TimeStamp& _ts, Eigen::VectorXd& _x) const
return
true
;
return
true
;
}
}
bool
ProcessorMotion
::
get
State
Composite
(
VectorComposite
&
_state
)
const
bool
ProcessorMotion
::
get
Vector
Composite
(
VectorComposite
&
_state
)
const
{
{
// TODO implement this
// TODO implement this
if
(
last_ptr_
&&
last_ptr_
->
getFrame
())
if
(
last_ptr_
&&
last_ptr_
->
getFrame
())
return
getLast
()
->
getFrame
()
->
getVectorComposite
(
_state
);
return
last_ptr_
->
getFrame
()
->
getVectorComposite
(
_state
);
else
else
return
false
;
if
(
origin_ptr_
&&
origin_ptr_
->
getFrame
())
return
origin_ptr_
->
getFrame
()
->
getVectorComposite
(
_state
);
else
return
false
;
}
}
bool
ProcessorMotion
::
get
State
Composite
(
const
TimeStamp
&
_ts
,
VectorComposite
&
_state
)
const
bool
ProcessorMotion
::
get
Vector
Composite
(
const
TimeStamp
&
_ts
,
VectorComposite
&
_state
)
const
{
{
// TODO implement this
// TODO implement this
if
(
last_ptr_
&&
last_ptr_
->
getFrame
())
if
(
last_ptr_
&&
last_ptr_
->
getFrame
())
...
...
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