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
1b9aae94
Commit
1b9aae94
authored
3 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Rename getSensor(name) --> findSensor(name)
parent
e7cfea15
No related branches found
No related tags found
1 merge request
!21
findSensor
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/bodydynamics/processor/processor_force_torque_preint.h
+2
-2
2 additions, 2 deletions
...de/bodydynamics/processor/processor_force_torque_preint.h
src/processor/processor_inertial_kinematics.cpp
+2
-2
2 additions, 2 deletions
src/processor/processor_inertial_kinematics.cpp
with
4 additions
and
4 deletions
include/bodydynamics/processor/processor_force_torque_preint.h
+
2
−
2
View file @
1b9aae94
...
...
@@ -126,8 +126,8 @@ namespace wolf{
inline
void
ProcessorForceTorquePreint
::
configure
(
SensorBasePtr
_sensor
)
{
sensor_ikin_
=
_sensor
->
getProblem
()
->
get
Sensor
(
params_motion_force_torque_preint_
->
sensor_ikin_name
);
sensor_angvel_
=
_sensor
->
getProblem
()
->
get
Sensor
(
params_motion_force_torque_preint_
->
sensor_angvel_name
);
sensor_ikin_
=
_sensor
->
getProblem
()
->
find
Sensor
(
params_motion_force_torque_preint_
->
sensor_ikin_name
);
sensor_angvel_
=
_sensor
->
getProblem
()
->
find
Sensor
(
params_motion_force_torque_preint_
->
sensor_angvel_name
);
};
inline
Eigen
::
VectorXd
ProcessorForceTorquePreint
::
deltaZero
()
const
...
...
This diff is collapsed.
Click to expand it.
src/processor/processor_inertial_kinematics.cpp
+
2
−
2
View file @
1b9aae94
...
...
@@ -72,7 +72,7 @@ inline void ProcessorInertialKinematics::processCapture(CaptureBasePtr _capture)
auto
buffer_frame_it
=
buffer_frame_
.
getContainer
().
begin
();
auto
buffer_capture_it
=
buffer_capture_
.
getContainer
().
begin
();
auto
sensor_angvel
=
getProblem
()
->
get
Sensor
(
params_ikin_
->
sensor_angvel_name
);
auto
sensor_angvel
=
getProblem
()
->
find
Sensor
(
params_ikin_
->
sensor_angvel_name
);
while
((
buffer_frame_it
!=
buffer_frame_
.
getContainer
().
end
())
&&
(
buffer_capture_it
!=
buffer_capture_
.
getContainer
().
end
()))
{
...
...
@@ -126,7 +126,7 @@ inline bool ProcessorInertialKinematics::createInertialKinematicsFactor(CaptureI
Eigen
::
Matrix3d
B_I_q
=
_cap_ikin
->
getBIq
();
Eigen
::
Vector3d
B_Lc_m
=
_cap_ikin
->
getBLcm
();
auto
sensor_ikin
=
std
::
static_pointer_cast
<
SensorInertialKinematics
>
(
getSensor
());
auto
sensor_angvel_base
=
getProblem
()
->
get
Sensor
(
params_ikin_
->
sensor_angvel_name
);
auto
sensor_angvel_base
=
getProblem
()
->
find
Sensor
(
params_ikin_
->
sensor_angvel_name
);
Eigen
::
Matrix3d
Qp
=
pow
(
sensor_ikin
->
getPbcNoiseStd
(),
2
)
*
Eigen
::
Matrix3d
::
Identity
();
Eigen
::
Matrix3d
Qv
=
pow
(
sensor_ikin
->
getVbcNoiseStd
(),
2
)
*
Eigen
::
Matrix3d
::
Identity
();
Eigen
::
Matrix3d
Qw
=
sensor_angvel_base
->
getNoiseCov
().
bottomRightCorner
<
3
,
3
>
();
...
...
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