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
2ace3d79
Commit
2ace3d79
authored
8 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
makeFrame is not calling KFcallback()
This was not intuitive by the function name
parent
33548e7e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/processor_base.cpp
+4
-9
4 additions, 9 deletions
src/processor_base.cpp
with
4 additions
and
9 deletions
src/processor_base.cpp
+
4
−
9
View file @
2ace3d79
...
@@ -30,25 +30,20 @@ bool ProcessorBase::permittedKeyFrame()
...
@@ -30,25 +30,20 @@ bool ProcessorBase::permittedKeyFrame()
FrameBasePtr
ProcessorBase
::
makeFrame
(
CaptureBasePtr
_capture_ptr
,
FrameKeyType
_type
)
FrameBasePtr
ProcessorBase
::
makeFrame
(
CaptureBasePtr
_capture_ptr
,
FrameKeyType
_type
)
{
{
std
::
cout
<<
__FILE__
<<
":"
<<
__FUNCTION__
<<
"():"
<<
__LINE__
<<
std
::
endl
;
std
::
cout
<<
"Making "
<<
(
_type
==
KEY_FRAME
?
"key-"
:
""
)
<<
"frame"
<<
std
::
endl
;
// We need to create the new free Frame to hold what will become the last Capture
// We need to create the new free Frame to hold what will become the last Capture
FrameBasePtr
new_frame_ptr
=
getProblem
()
->
createFrame
(
_type
,
_capture_ptr
->
getTimeStamp
());
FrameBasePtr
new_frame_ptr
=
getProblem
()
->
createFrame
(
_type
,
_capture_ptr
->
getTimeStamp
());
new_frame_ptr
->
addCapture
(
_capture_ptr
);
// Add incoming Capture to the new Frame
new_frame_ptr
->
addCapture
(
_capture_ptr
);
// Add incoming Capture to the new Frame
if
(
_type
==
KEY_FRAME
)
{
std
::
cout
<<
__FILE__
<<
":"
<<
__FUNCTION__
<<
"():"
<<
__LINE__
<<
std
::
endl
;
// Keyframe callback in order to let the other processors to establish their constraints
getProblem
()
->
keyFrameCallback
(
_capture_ptr
->
getFramePtr
(),
shared_from_this
(),
time_tolerance_
);
}
return
new_frame_ptr
;
return
new_frame_ptr
;
}
}
FrameBasePtr
ProcessorBase
::
makeFrame
(
CaptureBasePtr
_capture_ptr
,
const
Eigen
::
VectorXs
&
_state
,
FrameKeyType
_type
)
FrameBasePtr
ProcessorBase
::
makeFrame
(
CaptureBasePtr
_capture_ptr
,
const
Eigen
::
VectorXs
&
_state
,
FrameKeyType
_type
)
{
{
// We need to create the new free Frame to hold what will become the last Capture
// We need to create the new free Frame to hold what will become the last Capture
std
::
cout
<<
"Making "
<<
(
_type
==
KEY_FRAME
?
"key-"
:
""
)
<<
"frame"
<<
std
::
endl
;
FrameBasePtr
new_frame_ptr
=
getProblem
()
->
createFrame
(
_type
,
_state
,
_capture_ptr
->
getTimeStamp
());
FrameBasePtr
new_frame_ptr
=
getProblem
()
->
createFrame
(
_type
,
_state
,
_capture_ptr
->
getTimeStamp
());
new_frame_ptr
->
addCapture
(
_capture_ptr
);
// Add incoming Capture to the new Frame
new_frame_ptr
->
addCapture
(
_capture_ptr
);
// Add incoming Capture to the new Frame
...
...
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