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
0f6da631
Commit
0f6da631
authored
7 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Rename kfCallback() to new version
parent
cdd7048d
No related branches found
No related tags found
1 merge request
!157
Kfpackmanager
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/processor_base.cpp
+1
-1
1 addition, 1 deletion
src/processor_base.cpp
src/processor_base.h
+2
-2
2 additions, 2 deletions
src/processor_base.h
src/processor_tracker.cpp
+3
-3
3 additions, 3 deletions
src/processor_tracker.cpp
src/processor_tracker.h
+1
-1
1 addition, 1 deletion
src/processor_tracker.h
with
7 additions
and
7 deletions
src/processor_base.cpp
+
1
−
1
View file @
0f6da631
...
@@ -45,7 +45,7 @@ FrameBasePtr ProcessorBase::emplaceFrame(FrameType _type, CaptureBasePtr _captur
...
@@ -45,7 +45,7 @@ FrameBasePtr ProcessorBase::emplaceFrame(FrameType _type, CaptureBasePtr _captur
return
new_frame_ptr
;
return
new_frame_ptr
;
}
}
void
ProcessorBase
::
keyFrameCallback
New
(
FrameBasePtr
_keyframe_ptr
,
const
Scalar
&
_time_tol_other
)
void
ProcessorBase
::
keyFrameCallback
(
FrameBasePtr
_keyframe_ptr
,
const
Scalar
&
_time_tol_other
)
{
{
if
(
_keyframe_ptr
!=
nullptr
)
if
(
_keyframe_ptr
!=
nullptr
)
kf_pack_buffer_
.
add
(
_keyframe_ptr
,
_time_tol_other
);
kf_pack_buffer_
.
add
(
_keyframe_ptr
,
_time_tol_other
);
...
...
This diff is collapsed.
Click to expand it.
src/processor_base.h
+
2
−
2
View file @
0f6da631
...
@@ -162,9 +162,9 @@ class ProcessorBase : public NodeBase, public std::enable_shared_from_this<Proce
...
@@ -162,9 +162,9 @@ class ProcessorBase : public NodeBase, public std::enable_shared_from_this<Proce
*/
*/
FrameBasePtr
emplaceFrame
(
FrameType
_type
,
CaptureBasePtr
_capture_ptr
,
const
Eigen
::
VectorXs
&
_state
);
FrameBasePtr
emplaceFrame
(
FrameType
_type
,
CaptureBasePtr
_capture_ptr
,
const
Eigen
::
VectorXs
&
_state
);
virtual
bool
keyFrameCallback
(
FrameBasePtr
_keyframe_ptr
,
const
Scalar
&
_time_tolerance
)
=
0
;
//
virtual bool keyFrameCallback(FrameBasePtr _keyframe_ptr, const Scalar& _time_tolerance) = 0;
void
keyFrameCallback
New
(
FrameBasePtr
_keyframe_ptr
,
const
Scalar
&
_time_tol_other
);
void
keyFrameCallback
(
FrameBasePtr
_keyframe_ptr
,
const
Scalar
&
_time_tol_other
);
SensorBasePtr
getSensorPtr
();
SensorBasePtr
getSensorPtr
();
const
SensorBasePtr
getSensorPtr
()
const
;
const
SensorBasePtr
getSensorPtr
()
const
;
...
...
This diff is collapsed.
Click to expand it.
src/processor_tracker.cpp
+
3
−
3
View file @
0f6da631
...
@@ -346,9 +346,9 @@ void ProcessorTracker::process(CaptureBasePtr const _incoming_ptr)
...
@@ -346,9 +346,9 @@ void ProcessorTracker::process(CaptureBasePtr const _incoming_ptr)
//std::cout << "-----End of process():" << std::endl;
//std::cout << "-----End of process():" << std::endl;
}
}
bool
ProcessorTracker
::
keyFrameCallback
(
FrameBasePtr
_keyframe_ptr
,
const
Scalar
&
_time_tol_other
)
//
bool ProcessorTracker::keyFrameCallback(FrameBasePtr _keyframe_ptr, const Scalar& _time_tol_other)
{
//
{
WOLF_TRACE
(
"This callback doing nothing!!! "
);
//
WOLF_TRACE("This callback doing nothing!!! ");
// WOLF_DEBUG( "PT: KF" , _keyframe_ptr->id() , " callback received at ts= " , _keyframe_ptr->getTimeStamp().get() );
// WOLF_DEBUG( "PT: KF" , _keyframe_ptr->id() , " callback received at ts= " , _keyframe_ptr->getTimeStamp().get() );
//
//
// assert((last_ptr_ == nullptr || last_ptr_->getFramePtr() != nullptr) && "ProcessorTracker::keyFrameCallback: last_ptr_ must have a frame always");
// assert((last_ptr_ == nullptr || last_ptr_->getFramePtr() != nullptr) && "ProcessorTracker::keyFrameCallback: last_ptr_ must have a frame always");
...
...
This diff is collapsed.
Click to expand it.
src/processor_tracker.h
+
1
−
1
View file @
0f6da631
...
@@ -99,7 +99,7 @@ class ProcessorTracker : public ProcessorBase
...
@@ -99,7 +99,7 @@ class ProcessorTracker : public ProcessorBase
void
setMaxNewFeatures
(
const
unsigned
int
&
_max_new_features
);
void
setMaxNewFeatures
(
const
unsigned
int
&
_max_new_features
);
unsigned
int
getMaxNewFeatures
();
unsigned
int
getMaxNewFeatures
();
virtual
bool
keyFrameCallback
(
FrameBasePtr
_keyframe_ptr
,
const
Scalar
&
_time_tol_other
);
//
virtual bool keyFrameCallback(FrameBasePtr _keyframe_ptr, const Scalar& _time_tol_other);
bool
checkTimeTolerance
(
const
TimeStamp
&
_ts1
,
const
TimeStamp
&
_ts2
);
bool
checkTimeTolerance
(
const
TimeStamp
&
_ts1
,
const
TimeStamp
&
_ts2
);
bool
checkTimeTolerance
(
const
CaptureBasePtr
_cap
,
const
TimeStamp
&
_ts
);
bool
checkTimeTolerance
(
const
CaptureBasePtr
_cap
,
const
TimeStamp
&
_ts
);
...
...
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