Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
imu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
plugins
imu
Commits
0fac2298
Commit
0fac2298
authored
5 years ago
by
Joaquim Casals Buñuel
Browse files
Options
Downloads
Patches
Plain Diff
Add sensor type check
parent
daf7f4a3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!39
release after RAL
,
!38
After 2nd RAL submission
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/IMU/processor/processor_IMU.h
+2
-1
2 additions, 1 deletion
include/IMU/processor/processor_IMU.h
src/processor/processor_IMU.cpp
+6
-0
6 additions, 0 deletions
src/processor/processor_IMU.cpp
with
8 additions
and
1 deletion
include/IMU/processor/processor_IMU.h
+
2
−
1
View file @
0fac2298
...
...
@@ -30,7 +30,8 @@ class ProcessorIMU : public ProcessorMotion{
public:
ProcessorIMU
(
ProcessorParamsIMUPtr
_params_motion_IMU
);
virtual
~
ProcessorIMU
();
virtual
void
configure
(
SensorBasePtr
_sensor
)
override
{
};
// virtual void configure(SensorBasePtr _sensor) override { };
virtual
void
configure
(
SensorBasePtr
_sensor
)
override
;
WOLF_PROCESSOR_CREATE
(
ProcessorIMU
,
ProcessorParamsIMU
);
...
...
This diff is collapsed.
Click to expand it.
src/processor/processor_IMU.cpp
+
6
−
0
View file @
0fac2298
...
...
@@ -21,6 +21,12 @@ ProcessorIMU::~ProcessorIMU()
//
}
void
ProcessorIMU
::
configure
(
SensorBasePtr
_sensor
)
{
auto
sensor_
=
std
::
dynamic_pointer_cast
<
SensorIMU
>
(
_sensor
);
assert
(
sensor_
!=
nullptr
&&
"Sensor is not of type SensorIMU"
);
}
bool
ProcessorIMU
::
voteForKeyFrame
()
const
{
// time span
...
...
This diff is collapsed.
Click to expand it.
Joaquim Casals Buñuel
@jcasals
mentioned in commit
ec91612d
·
5 years ago
mentioned in commit
ec91612d
mentioned in commit ec91612dac56743bb30e83217d106b4e262b0766
Toggle commit list
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