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
6d5680ed
Commit
6d5680ed
authored
2 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
[skip ci] debugging yaml problems
parent
2addf052
No related branches found
No related tags found
1 merge request
!448
Draft: Resolve "Implementation of new nodes creation"
Pipeline
#12079
skipped
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/state_block/prior.cpp
+5
-1
5 additions, 1 deletion
src/state_block/prior.cpp
test/gtest_sensor_base.cpp
+1
-0
1 addition, 0 deletions
test/gtest_sensor_base.cpp
with
6 additions
and
1 deletion
src/state_block/prior.cpp
+
5
−
1
View file @
6d5680ed
...
...
@@ -29,7 +29,7 @@ namespace wolf
Priors
::
Priors
(
const
YAML
::
Node
&
priors_node
)
{
WOLF_INFO
(
"Priors
:
\n
"
,
priors_node
);
WOLF_INFO
(
"Priors
..."
);
if
(
not
priors_node
.
IsMap
())
{
throw
std
::
runtime_error
(
"Priors: constructor with a non-map yaml node"
);
...
...
@@ -38,6 +38,7 @@ Priors::Priors(const YAML::Node& priors_node)
{
this
->
emplace
(
prior_pair
.
first
.
as
<
char
>
(),
Prior
(
prior_pair
.
second
));
}
WOLF_INFO
(
"Exiting priors constructor"
);
}
Prior
::
Prior
(
const
std
::
string
&
_type
,
...
...
@@ -53,6 +54,7 @@ Prior::Prior(const std::string& _type,
Prior
::
Prior
(
const
YAML
::
Node
&
prior_node
)
{
WOLF_INFO
(
"Prior...
\n
"
,
prior_node
);
type_
=
prior_node
[
"type"
].
as
<
std
::
string
>
();
state_
=
prior_node
[
"state"
].
as
<
Eigen
::
VectorXd
>
();
mode_
=
prior_node
[
"mode"
].
as
<
std
::
string
>
();
...
...
@@ -68,7 +70,9 @@ Prior::Prior(const YAML::Node& prior_node)
else
drift_std_
=
Eigen
::
VectorXd
(
0
);
WOLF_INFO
(
"checking"
);
check
();
WOLF_INFO
(
"Exiting prior constructor"
);
}
void
Prior
::
check
()
const
...
...
This diff is collapsed.
Click to expand it.
test/gtest_sensor_base.cpp
+
1
−
0
View file @
6d5680ed
...
...
@@ -441,6 +441,7 @@ TEST(SensorBase, factory)
// create sensor
auto
S
=
FactorySensor
::
create
(
"SensorDummyPoia3d"
,
3
,
server
.
getNode
());
WOLF_INFO
(
"created"
);
// noise
ASSERT_MATRIX_APPROX
(
S
->
computeNoiseCov
(
vector0
),
...
...
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