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
d00e8c71
Commit
d00e8c71
authored
6 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Cosmetics
parent
714c6e32
No related branches found
No related tags found
1 merge request
!242
Feature/proc motion
Pipeline
#2487
passed
6 years ago
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/processor_motion.cpp
+2
-31
2 additions, 31 deletions
src/processor_motion.cpp
with
2 additions
and
31 deletions
src/processor_motion.cpp
+
2
−
31
View file @
d00e8c71
...
...
@@ -248,7 +248,7 @@ void ProcessorMotion::process(CaptureBasePtr _incoming_ptr)
getProblem
()
->
keyFrameCallback
(
key_frame_ptr
,
shared_from_this
(),
params_motion_
->
time_tolerance
);
}
resetDerived
();
// TODO see where to put this
resetDerived
();
// clear incoming just in case
incoming_ptr_
=
nullptr
;
// This line is not really needed, but it makes things clearer.
...
...
@@ -274,7 +274,7 @@ bool ProcessorMotion::getState(const TimeStamp& _ts, Eigen::VectorXs& _x)
CaptureBasePtr
cap_orig
=
capture_motion
->
getOriginFramePtr
()
->
getCaptureOf
(
getSensorPtr
());
VectorXs
calib
=
cap_orig
->
getCalibration
();
// Get delta and correct it with new
bia
s
// Get delta and correct it with new
calibration param
s
VectorXs
calib_preint
=
capture_motion
->
getBuffer
().
getCalibrationPreint
();
Motion
motion
=
capture_motion
->
getBuffer
().
getMotion
(
_ts
);
...
...
@@ -296,35 +296,6 @@ bool ProcessorMotion::getState(const TimeStamp& _ts, Eigen::VectorXs& _x)
return
true
;
}
//CaptureMotionPtr ProcessorMotion::findCaptureContainingTimeStamp(const TimeStamp& _ts) const
//{
// //std::cout << "ProcessorMotion::findCaptureContainingTimeStamp: ts = " << _ts.getSeconds() << "." << _ts.getNanoSeconds() << std::endl;
// CaptureMotionPtr capture_ptr = last_ptr_;
// while (capture_ptr != nullptr)
// {
// // capture containing motion previous than the ts found:
// if (capture_ptr->getBuffer().get().front().ts_ < _ts)
// return capture_ptr;
// else
// {
// // go to the previous motion capture
// if (capture_ptr == last_ptr_)
// capture_ptr = origin_ptr_;
// else if (capture_ptr->getOriginFramePtr() == nullptr)
// return nullptr;
// else
// {
// CaptureBasePtr capture_base_ptr = capture_ptr->getOriginFramePtr()->getCaptureOf(getSensorPtr());
// if (capture_base_ptr == nullptr)
// return nullptr;
// else
// capture_ptr = std::static_pointer_cast<CaptureMotion>(capture_base_ptr);
// }
// }
// }
// return capture_ptr;
//}
FrameBasePtr
ProcessorMotion
::
setOrigin
(
const
Eigen
::
VectorXs
&
_x_origin
,
const
TimeStamp
&
_ts_origin
)
{
FrameBasePtr
key_frame_ptr
=
getProblem
()
->
emplaceFrame
(
KEY_FRAME
,
_x_origin
,
_ts_origin
);
...
...
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