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
e18644c0
Commit
e18644c0
authored
7 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Move selectPack() to ProcessorBase
parent
1005e6ae
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
+12
-0
12 additions, 0 deletions
src/processor_base.cpp
src/processor_base.h
+4
-0
4 additions, 0 deletions
src/processor_base.h
src/processor_tracker.cpp
+0
-8
0 additions, 8 deletions
src/processor_tracker.cpp
src/processor_tracker.h
+0
-2
0 additions, 2 deletions
src/processor_tracker.h
with
16 additions
and
10 deletions
src/processor_base.cpp
+
12
−
0
View file @
e18644c0
...
@@ -74,6 +74,16 @@ void ProcessorBase::remove()
...
@@ -74,6 +74,16 @@ void ProcessorBase::remove()
}
}
}
}
KFPackPtr
ProcessorBase
::
selectPack
(
const
CaptureBasePtr
&
_cap
)
{
if
(
_cap
)
return
kf_pack_buffer_
.
selectPack
(
_cap
->
getTimeStamp
(),
time_tolerance_
);
return
nullptr
;
}
/////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////
void
KFPackBuffer
::
removeUpTo
(
const
TimeStamp
&
_time_stamp
)
void
KFPackBuffer
::
removeUpTo
(
const
TimeStamp
&
_time_stamp
)
...
@@ -147,4 +157,6 @@ bool KFPackBuffer::checkTimeTolerance(const TimeStamp& _time_stamp1, const Scala
...
@@ -147,4 +157,6 @@ bool KFPackBuffer::checkTimeTolerance(const TimeStamp& _time_stamp1, const Scala
return
(
std
::
fabs
(
_time_stamp1
-
_time_stamp2
)
<=
std
::
min
(
_time_tolerance1
,
_time_tolerance2
));
return
(
std
::
fabs
(
_time_stamp1
-
_time_stamp2
)
<=
std
::
min
(
_time_tolerance1
,
_time_tolerance2
));
}
}
}
// namespace wolf
}
// namespace wolf
This diff is collapsed.
Click to expand it.
src/processor_base.h
+
4
−
0
View file @
e18644c0
...
@@ -174,6 +174,10 @@ class ProcessorBase : public NodeBase, public std::enable_shared_from_this<Proce
...
@@ -174,6 +174,10 @@ class ProcessorBase : public NodeBase, public std::enable_shared_from_this<Proce
void
setTimeTolerance
(
Scalar
_time_tolerance
);
void
setTimeTolerance
(
Scalar
_time_tolerance
);
protected
:
KFPackPtr
selectPack
(
const
CaptureBasePtr
&
_cap
);
};
};
}
}
...
...
This diff is collapsed.
Click to expand it.
src/processor_tracker.cpp
+
0
−
8
View file @
e18644c0
...
@@ -203,14 +203,6 @@ void ProcessorTracker::setKeyFrame(CaptureBasePtr _capture_ptr)
...
@@ -203,14 +203,6 @@ void ProcessorTracker::setKeyFrame(CaptureBasePtr _capture_ptr)
}
}
}
}
KFPackPtr
ProcessorTracker
::
selectPack
(
const
CaptureBasePtr
&
_cap
)
{
if
(
_cap
)
return
kf_pack_buffer_
.
selectPack
(
_cap
->
getTimeStamp
(),
time_tolerance_
);
return
nullptr
;
}
void
ProcessorTracker
::
computeProcessingStep
()
void
ProcessorTracker
::
computeProcessingStep
()
{
{
// First determine the processing phase by checking the status of the tracker pointers
// First determine the processing phase by checking the status of the tracker pointers
...
...
This diff is collapsed.
Click to expand it.
src/processor_tracker.h
+
0
−
2
View file @
e18644c0
...
@@ -209,8 +209,6 @@ class ProcessorTracker : public ProcessorBase
...
@@ -209,8 +209,6 @@ class ProcessorTracker : public ProcessorBase
void
addNewFeatureIncoming
(
FeatureBasePtr
_feature_ptr
);
void
addNewFeatureIncoming
(
FeatureBasePtr
_feature_ptr
);
private
:
KFPackPtr
selectPack
(
const
CaptureBasePtr
&
_cap
);
};
};
inline
void
ProcessorTracker
::
setMaxNewFeatures
(
const
unsigned
int
&
_max_new_features
)
inline
void
ProcessorTracker
::
setMaxNewFeatures
(
const
unsigned
int
&
_max_new_features
)
...
...
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