Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kalman_cpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
humanoides
tools
kalman_cpp
Commits
05f3b963
Commit
05f3b963
authored
5 years ago
by
Aniol Garcia
Browse files
Options
Downloads
Patches
Plain Diff
Fixing some matrix dimension tests
parent
06b24bf7
Branches
master
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/kalman_cpp.cpp
+2
-2
2 additions, 2 deletions
src/kalman_cpp.cpp
with
2 additions
and
2 deletions
src/kalman_cpp.cpp
+
2
−
2
View file @
05f3b963
...
@@ -81,7 +81,7 @@ void CKalman_Cpp::set_control_input_matrix(const Eigen::MatrixXd &B)
...
@@ -81,7 +81,7 @@ void CKalman_Cpp::set_control_input_matrix(const Eigen::MatrixXd &B)
void
CKalman_Cpp
::
set_measurement_matrix
(
const
Eigen
::
MatrixXd
&
H
)
void
CKalman_Cpp
::
set_measurement_matrix
(
const
Eigen
::
MatrixXd
&
H
)
{
{
if
(
H
.
cols
()
==
this
->
dimension
&&
H
.
rows
()
==
this
->
dimension
)
if
(
H
.
cols
()
==
this
->
dimension
&&
H
.
rows
()
==
this
->
observation_
dimension
)
{
{
this
->
H
=
H
;
this
->
H
=
H
;
}
}
...
@@ -105,7 +105,7 @@ void CKalman_Cpp::set_process_noise_matrix(const Eigen::MatrixXd &Q)
...
@@ -105,7 +105,7 @@ void CKalman_Cpp::set_process_noise_matrix(const Eigen::MatrixXd &Q)
void
CKalman_Cpp
::
set_measurement_noise_matrix
(
const
Eigen
::
MatrixXd
&
R
)
void
CKalman_Cpp
::
set_measurement_noise_matrix
(
const
Eigen
::
MatrixXd
&
R
)
{
{
if
(
R
.
cols
()
==
this
->
dimension
&&
R
.
rows
()
==
this
->
dimension
)
if
(
R
.
cols
()
==
this
->
observation_
dimension
&&
R
.
rows
()
==
this
->
observation_
dimension
)
{
{
this
->
R
=
R
;
this
->
R
=
R
;
}
}
...
...
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