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
ccae799c
Commit
ccae799c
authored
1 year ago
by
Arnau Marzabal Gatell
Browse files
Options
Downloads
Patches
Plain Diff
add bias prior option
parent
7a0187b3
Branches
identification
Branches containing commit
No related tags found
1 merge request
!25
Draft: Resolve "Adapt to new sensor constructors in core"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/bodydynamics/sensor/sensor_force_torque_inertial.h
+2
-1
2 additions, 1 deletion
include/bodydynamics/sensor/sensor_force_torque_inertial.h
src/sensor/sensor_force_torque_inertial.cpp
+1
-1
1 addition, 1 deletion
src/sensor/sensor_force_torque_inertial.cpp
with
3 additions
and
2 deletions
include/bodydynamics/sensor/sensor_force_torque_inertial.h
+
2
−
1
View file @
ccae799c
...
...
@@ -51,7 +51,7 @@ struct ParamsSensorForceTorqueInertial : public ParamsSensorBase
bool
set_mass_prior
,
set_com_prior
,
set_inertia_prior
,
set_bias_prior
;
double
prior_mass_std
;
Vector3d
prior_com_std
,
prior_inertia_std
;
Vector6d
prior_bias_std
;
Vector6d
bias
,
prior_bias_std
;
ParamsSensorForceTorqueInertial
()
=
default
;
...
...
@@ -80,6 +80,7 @@ struct ParamsSensorForceTorqueInertial : public ParamsSensorBase
com
=
_server
.
getParam
<
Vector3d
>
(
prefix
+
_unique_name
+
"/com"
);
inertia
=
_server
.
getParam
<
Vector3d
>
(
prefix
+
_unique_name
+
"/inertia"
);
mass
=
_server
.
getParam
<
double
>
(
prefix
+
_unique_name
+
"/mass"
);
bias
=
_server
.
getParam
<
Vector6d
>
(
prefix
+
_unique_name
+
"/bias"
);
imu_bias_fix
=
_server
.
getParam
<
bool
>
(
prefix
+
_unique_name
+
"/imu_bias_fix"
);
com_fix
=
_server
.
getParam
<
bool
>
(
prefix
+
_unique_name
+
"/com_fix"
);
...
...
This diff is collapsed.
Click to expand it.
src/sensor/sensor_force_torque_inertial.cpp
+
1
−
1
View file @
ccae799c
...
...
@@ -90,7 +90,7 @@ SensorForceTorqueInertial::SensorForceTorqueInertial(const VectorXd&
Matrix6d
prior_bias_cov
=
params_fti_
->
prior_bias_std
.
array
().
pow
(
2
).
matrix
().
asDiagonal
();
std
::
cout
<<
"
\n
With std: "
<<
params_fti_
->
prior_bias_std
.
transpose
();
std
::
cout
<<
"
\n
With cov:
\n
"
<<
prior_bias_cov
<<
"
\n
"
;
addPriorParameter
(
'I'
,
Vector6d
::
Zero
()
,
prior_bias_cov
);
addPriorParameter
(
'I'
,
params_fti_
->
bias
,
prior_bias_cov
);
std
::
cout
<<
"Done
\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