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
d0177680
Commit
d0177680
authored
5 years ago
by
Joaquim Casals Buñuel
Browse files
Options
Downloads
Patches
Plain Diff
[WIP] Debug weak_ptr segfault
parent
61bcc41a
No related branches found
No related tags found
1 merge request
!362
WIP: Resolve "std::set and std::map instead of std::list in wolf nodes"
Pipeline
#5331
failed
5 years ago
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/core/capture/capture_base.h
+2
-2
2 additions, 2 deletions
include/core/capture/capture_base.h
include/core/processor/processor_motion.h
+2
-2
2 additions, 2 deletions
include/core/processor/processor_motion.h
test/gtest_processor_base.cpp
+3
-0
3 additions, 0 deletions
test/gtest_processor_base.cpp
with
7 additions
and
4 deletions
include/core/capture/capture_base.h
+
2
−
2
View file @
d0177680
...
@@ -176,8 +176,8 @@ inline unsigned int CaptureBase::id() const
...
@@ -176,8 +176,8 @@ inline unsigned int CaptureBase::id() const
inline
FrameBasePtr
CaptureBase
::
getFrame
()
const
inline
FrameBasePtr
CaptureBase
::
getFrame
()
const
{
{
frame_ptr_
.
expired
();
if
(
frame_ptr_
.
expired
()
)
return
nullptr
;
return
frame_ptr_
.
lock
();
else
return
frame_ptr_
.
lock
();
}
}
inline
void
CaptureBase
::
setFrame
(
const
FrameBasePtr
_frm_ptr
)
inline
void
CaptureBase
::
setFrame
(
const
FrameBasePtr
_frm_ptr
)
...
...
This diff is collapsed.
Click to expand it.
include/core/processor/processor_motion.h
+
2
−
2
View file @
d0177680
...
@@ -466,7 +466,7 @@ class ProcessorMotion : public ProcessorBase, public IsMotion
...
@@ -466,7 +466,7 @@ class ProcessorMotion : public ProcessorBase, public IsMotion
bool
state_blocks
,
bool
state_blocks
,
std
::
ostream
&
stream
,
std
::
ostream
&
stream
,
std
::
string
_tabs
=
""
)
const
override
;
std
::
string
_tabs
=
""
)
const
override
;
CaptureMotionPtr
last_ptr_
;
protected
:
protected
:
// Attributes
// Attributes
SizeEigen
x_size_
;
///< The size of the state vector
SizeEigen
x_size_
;
///< The size of the state vector
...
@@ -475,7 +475,7 @@ class ProcessorMotion : public ProcessorBase, public IsMotion
...
@@ -475,7 +475,7 @@ class ProcessorMotion : public ProcessorBase, public IsMotion
SizeEigen
delta_cov_size_
;
///< the size of the delta covariances matrix
SizeEigen
delta_cov_size_
;
///< the size of the delta covariances matrix
SizeEigen
calib_size_
;
///< the size of the calibration parameters (TBD in derived classes)
SizeEigen
calib_size_
;
///< the size of the calibration parameters (TBD in derived classes)
CaptureMotionPtr
origin_ptr_
;
CaptureMotionPtr
origin_ptr_
;
CaptureMotionPtr
last_ptr_
;
CaptureMotionPtr
incoming_ptr_
;
CaptureMotionPtr
incoming_ptr_
;
protected
:
protected
:
...
...
This diff is collapsed.
Click to expand it.
test/gtest_processor_base.cpp
+
3
−
0
View file @
d0177680
...
@@ -116,6 +116,9 @@ TEST(ProcessorBase, KeyFrameCallback)
...
@@ -116,6 +116,9 @@ TEST(ProcessorBase, KeyFrameCallback)
capt_odo
->
setTimeStamp
(
t
);
capt_odo
->
setTimeStamp
(
t
);
std
::
cout
<<
"2
\n
"
;
std
::
cout
<<
"2
\n
"
;
problem
->
check
(
1
);
problem
->
check
(
1
);
auto
proc_odo_motion
=
std
::
static_pointer_cast
<
ProcessorMotion
>
(
proc_odo
);
auto
last_ptr
=
proc_odo_motion
->
last_ptr_
;
auto
last_ptr_frame
=
last_ptr
->
getFrame
();
proc_odo
->
captureCallback
(
capt_odo
);
proc_odo
->
captureCallback
(
capt_odo
);
std
::
cout
<<
"3
\n
"
;
std
::
cout
<<
"3
\n
"
;
...
...
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