Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
eskf_odometry_ros
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Angel Santamaria-Navarro
C
code
S
state_estimation
eskf_odometry
eskf_odometry_ros
Commits
4eafdad1
Commit
4eafdad1
authored
Feb 02, 2015
by
Angel Santamaria Navarro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TAG: working with icra15_paper bags and read_from_files
parent
03cace2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
src/eskf_odom_alg_node.cpp
src/eskf_odom_alg_node.cpp
+9
-5
No files found.
src/eskf_odom_alg_node.cpp
View file @
4eafdad1
...
...
@@ -334,7 +334,7 @@ void EskfOdomAlgNode::mainNodeThread(void)
#ifndef READ_FROM_FILE
if
(
this
->
imu_queue_
.
size
()
>
0
&&
this
->
px4_queue_
.
size
()
>
0
)
if
(
this
->
imu_queue_
.
size
()
>
1
&&
this
->
px4_queue_
.
size
()
>
0
)
{
double
t_imu
=
this
->
imu_queue_
.
front
()
->
header
.
stamp
.
toSec
()
-
this
->
t_ini_imu_
;
...
...
@@ -342,8 +342,6 @@ void EskfOdomAlgNode::mainNodeThread(void)
if
(
t_imu
<
t_px4
)
{
//std::cout << "Process IMU with time: " << t_imu << std::endl;
// Set IMU data
set_imu_reading
(
this
->
imu_queue_
.
front
(),
t_imu
);
this
->
imu_queue_
.
pop
();
...
...
@@ -352,9 +350,15 @@ void EskfOdomAlgNode::mainNodeThread(void)
if
(
this
->
is_first_imu_
)
{
this
->
is_first_imu_
=
false
;
std
::
cout
<<
"First IMU!"
<<
std
::
endl
;
//std::cout << "First IMU!" << std::endl;
// release next px4 beacuse first imu is not used.
this
->
px4_queue_
.
pop
();
}
else
{
//std::cout << "Process IMU with time: " << t_imu << std::endl;
// Propagate Filter
this
->
alg_
.
lock
();
// protect algorithm
this
->
alg_
.
prop_nominal
();
// Propagate Nominal-State
...
...
@@ -363,7 +367,7 @@ void EskfOdomAlgNode::mainNodeThread(void)
}
else
{
//
std::cout << "Process PX4 with time: " << t_px4 << std::endl;
std
::
cout
<<
"Process PX4 with time: "
<<
t_px4
<<
std
::
endl
;
//Set PX4 data
set_px4_reading
(
this
->
px4_queue_
.
front
(),
t_px4
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment