Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bodydynamics
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
bodydynamics
Commits
c3287326
Commit
c3287326
authored
2 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Activate all tests
parent
8cd0e3ee
No related branches found
No related tags found
2 merge requests
!31
devel->main
,
!30
Complete UAV identification setup
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/gtest_solve_problem_force_torque_inertial_dynamics.cpp
+3
-3
3 additions, 3 deletions
test/gtest_solve_problem_force_torque_inertial_dynamics.cpp
with
3 additions
and
3 deletions
test/gtest_solve_problem_force_torque_inertial_dynamics.cpp
+
3
−
3
View file @
c3287326
...
...
@@ -726,7 +726,7 @@ TEST_F(Test_SolveProblemForceTorqueInertialDynamics_yaml, rotation_test_unfixing
// orientation (quaternion and total angle)
// FIXME JS: this should be on top but it works better here, weird...
quat_true
=
quat_true
*
exp_q
(
ang_vel_true
*
dt
/*+ 0.5 * ang_acc_true * dt * dt*/
);
quat_true
*
=
exp_q
(
ang_vel_true
*
dt
/*+ 0.5 * ang_acc_true * dt * dt*/
);
angle_true
+=
ang_vel_true
*
dt
/*+ 0.5 * ang_acc_true * dt * dt*/
;
// // w = L*i_inv we actualize the data
...
...
@@ -778,7 +778,7 @@ TEST_F(Test_SolveProblemForceTorqueInertialDynamics_yaml, rotation_test_unfixing
WOLF_INFO
(
"Estimated IMU bias : "
,
S
->
getStateBlock
(
'I'
)
->
getState
().
transpose
(),
" m/s2 | rad/s."
);
WOLF_INFO
(
"True center of mass : "
,
cdm_true
.
transpose
(),
" m."
);
WOLF_INFO
(
"Guess center of mass : "
,
cdm_guess
.
transpose
(),
" m."
);
WOLF_INFO
(
"Estimated c
n
eter of mass: "
,
S
->
getStateBlock
(
'C'
)
->
getState
().
transpose
(),
" m."
);
WOLF_INFO
(
"Estimated ce
n
ter of mass: "
,
S
->
getStateBlock
(
'C'
)
->
getState
().
transpose
(),
" m."
);
WOLF_INFO
(
"True inertia : "
,
inertia_true
.
transpose
(),
" m^2 Kg."
);
WOLF_INFO
(
"Guess inertia : "
,
inertia_guess
.
transpose
(),
" m^2 Kg."
);
WOLF_INFO
(
"Estimated inertia : "
,
S
->
getStateBlock
(
'i'
)
->
getState
().
transpose
(),
" m^2 Kg."
);
...
...
@@ -801,6 +801,6 @@ TEST_F(Test_SolveProblemForceTorqueInertialDynamics_yaml, rotation_test_unfixing
int
main
(
int
argc
,
char
**
argv
)
{
testing
::
InitGoogleTest
(
&
argc
,
argv
);
::
testing
::
GTEST_FLAG
(
filter
)
=
"Test_SolveProblemForceTorqueInertialDynamics_yaml.rotation_test_unfixing"
;
//
::testing::GTEST_FLAG(filter) = "Test_SolveProblemForceTorqueInertialDynamics_yaml.rotation_test_unfixing";
return
RUN_ALL_TESTS
();
}
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