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
d7af8770
Commit
d7af8770
authored
5 years ago
by
Joaquim Casals Buñuel
Browse files
Options
Downloads
Patches
Plain Diff
HotFix leftover renaming issues
parent
c045ec7b
No related branches found
No related tags found
No related merge requests found
Pipeline
#5018
failed
5 years ago
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/processor/processor_odom_2d.cpp
+5
-4
5 additions, 4 deletions
src/processor/processor_odom_2d.cpp
test/gtest_problem.cpp
+2
-1
2 additions, 1 deletion
test/gtest_problem.cpp
test/gtest_processor_base.cpp
+3
-3
3 additions, 3 deletions
test/gtest_processor_base.cpp
with
10 additions
and
8 deletions
src/processor/processor_odom_2d.cpp
+
5
−
4
View file @
d7af8770
#include
"core/processor/processor_odom_2d.h"
#include
"core/processor/processor_odom_2d.h"
#include
"core/sensor/sensor_odom_2d.h"
#include
"core/math/covariance.h"
#include
"core/math/covariance.h"
namespace
wolf
namespace
wolf
...
@@ -15,12 +16,12 @@ ProcessorOdom2d::~ProcessorOdom2d()
...
@@ -15,12 +16,12 @@ ProcessorOdom2d::~ProcessorOdom2d()
{
{
}
}
void
ProcessorOdom2
D
::
configure
(
SensorBasePtr
_sensor
)
void
ProcessorOdom2
d
::
configure
(
SensorBasePtr
_sensor
)
{
{
auto
sensor_
=
std
::
dynamic_pointer_cast
<
SensorOdom2
D
>
(
_sensor
);
auto
sensor_
=
std
::
dynamic_pointer_cast
<
SensorOdom2
d
>
(
_sensor
);
assert
(
sensor_
!=
nullptr
&&
"Sensor is not of type SensorOdom2
D
"
);
assert
(
sensor_
!=
nullptr
&&
"Sensor is not of type SensorOdom2
d
"
);
}
}
void
ProcessorOdom2
D
::
computeCurrentDelta
(
const
Eigen
::
VectorXd
&
_data
,
const
Eigen
::
MatrixXd
&
_data_cov
,
void
ProcessorOdom2
d
::
computeCurrentDelta
(
const
Eigen
::
VectorXd
&
_data
,
const
Eigen
::
MatrixXd
&
_data_cov
,
const
Eigen
::
VectorXd
&
_calib
,
const
double
_dt
,
Eigen
::
VectorXd
&
_delta
,
const
Eigen
::
VectorXd
&
_calib
,
const
double
_dt
,
Eigen
::
VectorXd
&
_delta
,
Eigen
::
MatrixXd
&
_delta_cov
,
Eigen
::
MatrixXd
&
_jacobian_calib
)
const
Eigen
::
MatrixXd
&
_delta_cov
,
Eigen
::
MatrixXd
&
_jacobian_calib
)
const
{
{
...
...
This diff is collapsed.
Click to expand it.
test/gtest_problem.cpp
+
2
−
1
View file @
d7af8770
...
@@ -288,7 +288,8 @@ TEST(Problem, Covariances)
...
@@ -288,7 +288,8 @@ TEST(Problem, Covariances)
Eigen
::
Vector3d
xs2d
;
Eigen
::
Vector3d
xs2d
;
SensorBasePtr
Sm
=
P
->
installSensor
(
"SensorOdom3d"
,
"odometer"
,
xs3d
,
wolf_root
+
"/test/yaml/sensor_odom_3d.yaml"
);
SensorBasePtr
Sm
=
P
->
installSensor
(
"SensorOdom3d"
,
"odometer"
,
xs3d
,
wolf_root
+
"/test/yaml/sensor_odom_3d.yaml"
);
SensorBasePtr
St
=
P
->
installSensor
(
"SensorOdom2d"
,
"other odometer"
,
xs2d
,
wolf_root
+
"/test/yaml/sensor_odom_2d.yaml"
);
// SensorBasePtr St = P->installSensor ("SensorOdom2d", "other odometer", xs2d, wolf_root + "/test/yaml/sensor_odom_2d.yaml");
SensorBasePtr
St
=
P
->
installSensor
(
"SensorOdom3d"
,
"other odometer"
,
xs3d
,
wolf_root
+
"/test/yaml/sensor_odom_3d.yaml"
);
ProcessorParamsTrackerFeaturePtr
params
=
std
::
make_shared
<
ProcessorParamsTrackerFeature
>
();
ProcessorParamsTrackerFeaturePtr
params
=
std
::
make_shared
<
ProcessorParamsTrackerFeature
>
();
params
->
time_tolerance
=
0.1
;
params
->
time_tolerance
=
0.1
;
...
...
This diff is collapsed.
Click to expand it.
test/gtest_processor_base.cpp
+
3
−
3
View file @
d7af8770
...
@@ -56,10 +56,10 @@ TEST(ProcessorBase, IsMotion)
...
@@ -56,10 +56,10 @@ TEST(ProcessorBase, IsMotion)
auto
proc_trk
=
problem
->
installProcessor
(
"ProcessorTrackerFeatureDummy"
,
"dummy"
,
sens_trk
);
auto
proc_trk
=
problem
->
installProcessor
(
"ProcessorTrackerFeatureDummy"
,
"dummy"
,
sens_trk
);
// Install odometer (sensor and processor)
// Install odometer (sensor and processor)
SensorBasePtr
sens_odo
=
problem
->
installSensor
(
"SensorOdom2
D
"
,
"odometer"
,
Vector3d
(
0
,
0
,
0
),
wolf_root
+
"/test/yaml/sensor_odom_2
D
.yaml"
);
SensorBasePtr
sens_odo
=
problem
->
installSensor
(
"SensorOdom2
d
"
,
"odometer"
,
Vector3d
(
0
,
0
,
0
),
wolf_root
+
"/test/yaml/sensor_odom_2
d
.yaml"
);
ProcessorParamsOdom2
D
Ptr
proc_odo_params
=
make_shared
<
ProcessorParamsOdom2
D
>
();
ProcessorParamsOdom2
d
Ptr
proc_odo_params
=
make_shared
<
ProcessorParamsOdom2
d
>
();
proc_odo_params
->
time_tolerance
=
dt
/
2
;
proc_odo_params
->
time_tolerance
=
dt
/
2
;
ProcessorBasePtr
proc_odo
=
problem
->
installProcessor
(
"ProcessorOdom2
D
"
,
"odom processor"
,
sens_odo
,
proc_odo_params
);
ProcessorBasePtr
proc_odo
=
problem
->
installProcessor
(
"ProcessorOdom2
d
"
,
"odom processor"
,
sens_odo
,
proc_odo_params
);
ASSERT_FALSE
(
proc_trk
->
isMotion
());
ASSERT_FALSE
(
proc_trk
->
isMotion
());
ASSERT_TRUE
(
proc_odo
->
isMotion
());
ASSERT_TRUE
(
proc_odo
->
isMotion
());
...
...
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