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
05312c25
Commit
05312c25
authored
8 years ago
by
Dinesh Atchuthan
Browse files
Options
Downloads
Patches
Plain Diff
fix : intialize time for origin
parent
870cbd7d
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/examples/test_imu_constraintAHP.cpp
+5
-3
5 additions, 3 deletions
src/examples/test_imu_constraintAHP.cpp
with
5 additions
and
3 deletions
src/examples/test_imu_constraintAHP.cpp
+
5
−
3
View file @
05312c25
...
...
@@ -55,9 +55,9 @@ int main(int argc, char** argv)
// Wolf problem
ProblemPtr
wolf_problem_ptr_
=
Problem
::
create
(
FRM_PVQBB_3D
);
Eigen
::
VectorXs
extrinsics
(
7
);
extrinsics
<<
0
,
0
,
0
,
0
,
0
,
0
,
1
;
// IMU pose in the robot
SensorBasePtr
sensor_ptr
=
wolf_problem_ptr_
->
installSensor
(
"IMU"
,
"Main IMU"
,
extrinsics
,
shared_ptr
<
IntrinsicsBase
>
());
Eigen
::
VectorXs
IMU_
extrinsics
(
7
);
IMU_
extrinsics
<<
0
,
0
,
0
,
0
,
0
,
0
,
1
;
// IMU pose in the robot
SensorBasePtr
sensor_ptr
=
wolf_problem_ptr_
->
installSensor
(
"IMU"
,
"Main IMU"
,
IMU_
extrinsics
,
shared_ptr
<
IntrinsicsBase
>
());
wolf_problem_ptr_
->
installProcessor
(
"IMU"
,
"IMU pre-integrator"
,
"Main IMU"
,
""
);
// Time and data variables
...
...
@@ -65,6 +65,8 @@ int main(int argc, char** argv)
Eigen
::
Vector6s
data_
;
Scalar
mpu_clock
=
0
;
t
.
set
(
mpu_clock
);
// Set the origin
Eigen
::
VectorXs
x0
(
16
);
x0
<<
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
0
,
0
,
.001
,
0
,
0
,
.002
;
// Try some non-zero biases
...
...
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