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
8704398e
Commit
8704398e
authored
8 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Fix API
parent
12e43c9e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/processor_base.cpp
+4
-6
4 additions, 6 deletions
src/processor_base.cpp
src/processor_base.h
+2
-2
2 additions, 2 deletions
src/processor_base.h
with
6 additions
and
8 deletions
src/processor_base.cpp
+
4
−
6
View file @
8704398e
...
@@ -29,7 +29,7 @@ bool ProcessorBase::permittedKeyFrame()
...
@@ -29,7 +29,7 @@ bool ProcessorBase::permittedKeyFrame()
return
getProblem
()
->
permitKeyFrame
(
shared_from_this
());
return
getProblem
()
->
permitKeyFrame
(
shared_from_this
());
}
}
FrameBasePtr
ProcessorBase
::
emplaceFrame
(
CaptureBasePtr
_capture_ptr
,
FrameType
_type
)
FrameBasePtr
ProcessorBase
::
emplaceFrame
(
FrameType
_type
,
CaptureBasePtr
_capture_ptr
)
{
{
std
::
cout
<<
"Making "
<<
(
_type
==
KEY_FRAME
?
"key-"
:
""
)
<<
"frame"
<<
std
::
endl
;
std
::
cout
<<
"Making "
<<
(
_type
==
KEY_FRAME
?
"key-"
:
""
)
<<
"frame"
<<
std
::
endl
;
...
@@ -39,12 +39,10 @@ FrameBasePtr ProcessorBase::emplaceFrame(CaptureBasePtr _capture_ptr, FrameType
...
@@ -39,12 +39,10 @@ FrameBasePtr ProcessorBase::emplaceFrame(CaptureBasePtr _capture_ptr, FrameType
return
new_frame_ptr
;
return
new_frame_ptr
;
}
}
FrameBasePtr
ProcessorBase
::
emplaceFrame
(
CaptureBasePtr
_capture_ptr
,
const
Eigen
::
VectorXs
&
_state
,
FrameType
_type
)
FrameBasePtr
ProcessorBase
::
emplaceFrame
(
FrameType
_type
,
CaptureBasePtr
_capture_ptr
,
const
Eigen
::
VectorXs
&
_state
)
{
{
std
::
cout
<<
"Making "
<<
(
_type
==
KEY_FRAME
?
"key-"
:
""
)
<<
"frame"
<<
std
::
endl
;
FrameBasePtr
new_frame_ptr
=
emplaceFrame
(
_type
,
_capture_ptr
);
new_frame_ptr
->
setState
(
_state
);
FrameBasePtr
new_frame_ptr
=
getProblem
()
->
emplaceFrame
(
_type
,
_state
,
_capture_ptr
->
getTimeStamp
());
new_frame_ptr
->
addCapture
(
_capture_ptr
);
return
new_frame_ptr
;
return
new_frame_ptr
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/processor_base.h
+
2
−
2
View file @
8704398e
...
@@ -63,7 +63,7 @@ class ProcessorBase : public NodeBase, public std::enable_shared_from_this<Proce
...
@@ -63,7 +63,7 @@ class ProcessorBase : public NodeBase, public std::enable_shared_from_this<Proce
* - Put it in the Trajectory, and
* - Put it in the Trajectory, and
* - Add the provided capture on it.
* - Add the provided capture on it.
*/
*/
FrameBasePtr
emplaceFrame
(
CaptureBasePtr
_capture_ptr
,
FrameType
_type
=
NON_KEY_FRAME
);
FrameBasePtr
emplaceFrame
(
FrameType
_type
,
CaptureBasePtr
_capture_ptr
);
/**\brief make a Frame with the provided Capture
/**\brief make a Frame with the provided Capture
*
*
* Provide the following functionality:
* Provide the following functionality:
...
@@ -72,7 +72,7 @@ class ProcessorBase : public NodeBase, public std::enable_shared_from_this<Proce
...
@@ -72,7 +72,7 @@ class ProcessorBase : public NodeBase, public std::enable_shared_from_this<Proce
* - Put it in the Trajectory, and
* - Put it in the Trajectory, and
* - Add the provided capture on it.
* - Add the provided capture on it.
*/
*/
FrameBasePtr
emplaceFrame
(
CaptureBasePtr
_capture_ptr
,
const
Eigen
::
VectorXs
&
_state
,
FrameType
_type
=
NON_KEY_FRAME
);
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
;
...
...
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