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
24156ce3
Commit
24156ce3
authored
5 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Use factory keys as for new definition, equal to class name
parent
71c030ac
No related branches found
No related tags found
1 merge request
!323
Resolve "New data structure for storing stateblocks"
Pipeline
#4706
passed
5 years ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
hello_wolf/hello_wolf.cpp
+4
-4
4 additions, 4 deletions
hello_wolf/hello_wolf.cpp
hello_wolf/processor_range_bearing.cpp
+2
-2
2 additions, 2 deletions
hello_wolf/processor_range_bearing.cpp
hello_wolf/sensor_range_bearing.cpp
+2
-2
2 additions, 2 deletions
hello_wolf/sensor_range_bearing.cpp
with
8 additions
and
8 deletions
hello_wolf/hello_wolf.cpp
+
4
−
4
View file @
24156ce3
...
...
@@ -112,7 +112,7 @@ int main()
// sensor odometer 2D
IntrinsicsOdom2DPtr
intrinsics_odo
=
std
::
make_shared
<
IntrinsicsOdom2D
>
();
SensorBasePtr
sensor_odo
=
problem
->
installSensor
(
"
ODOM
2D"
,
"sensor odo"
,
Vector3s
(
0
,
0
,
0
),
intrinsics_odo
);
SensorBasePtr
sensor_odo
=
problem
->
installSensor
(
"
SensorOdom
2D"
,
"sensor odo"
,
Vector3s
(
0
,
0
,
0
),
intrinsics_odo
);
// processor odometer 2D
ProcessorParamsOdom2DPtr
params_odo
=
std
::
make_shared
<
ProcessorParamsOdom2D
>
();
...
...
@@ -123,19 +123,19 @@ int main()
params_odo
->
angle_turned
=
999
;
params_odo
->
cov_det
=
999
;
params_odo
->
unmeasured_perturbation_std
=
0.001
;
ProcessorBasePtr
processor
=
problem
->
installProcessor
(
"
ODOM
2D"
,
"processor odo"
,
sensor_odo
,
params_odo
);
ProcessorBasePtr
processor
=
problem
->
installProcessor
(
"
ProcessorOdom
2D"
,
"processor odo"
,
sensor_odo
,
params_odo
);
// sensor Range and Bearing
IntrinsicsRangeBearingPtr
intrinsics_rb
=
std
::
make_shared
<
IntrinsicsRangeBearing
>
();
intrinsics_rb
->
noise_range_metres_std
=
0.1
;
intrinsics_rb
->
noise_bearing_degrees_std
=
1.0
;
SensorBasePtr
sensor_rb
=
problem
->
installSensor
(
"
RANGE BEARING
"
,
"sensor RB"
,
Vector3s
(
1
,
1
,
0
),
intrinsics_rb
);
SensorBasePtr
sensor_rb
=
problem
->
installSensor
(
"
SensorRangeBearing
"
,
"sensor RB"
,
Vector3s
(
1
,
1
,
0
),
intrinsics_rb
);
// processor Range and Bearing
ProcessorParamsRangeBearingPtr
params_rb
=
std
::
make_shared
<
ProcessorParamsRangeBearing
>
();
params_rb
->
voting_active
=
false
;
params_rb
->
time_tolerance
=
0.01
;
ProcessorBasePtr
processor_rb
=
problem
->
installProcessor
(
"
RANGE BEARING
"
,
"processor RB"
,
sensor_rb
,
params_rb
);
ProcessorBasePtr
processor_rb
=
problem
->
installProcessor
(
"
ProcessorRangeBearing
"
,
"processor RB"
,
sensor_rb
,
params_rb
);
// initialize
TimeStamp
t
(
0.0
);
// t : 0.0
...
...
This diff is collapsed.
Click to expand it.
hello_wolf/processor_range_bearing.cpp
+
2
−
2
View file @
24156ce3
...
...
@@ -163,7 +163,7 @@ bool ProcessorRangeBearing::storeCapture(CaptureBasePtr _cap_ptr)
#include
"core/processor/processor_factory.h"
namespace
wolf
{
WOLF_REGISTER_PROCESSOR
(
"
RANGE BEARING
"
,
ProcessorRangeBearing
)
WOLF_REGISTER_PROCESSOR_AUTO
(
"
RANGE BEARING
"
,
ProcessorRangeBearing
)
WOLF_REGISTER_PROCESSOR
(
"
ProcessorRangeBearing
"
,
ProcessorRangeBearing
)
WOLF_REGISTER_PROCESSOR_AUTO
(
"
ProcessorRangeBearing
"
,
ProcessorRangeBearing
)
}
// namespace wolf
This diff is collapsed.
Click to expand it.
hello_wolf/sensor_range_bearing.cpp
+
2
−
2
View file @
24156ce3
...
...
@@ -41,6 +41,6 @@ SensorRangeBearing::~SensorRangeBearing()
#include
"core/sensor/sensor_factory.h"
namespace
wolf
{
WOLF_REGISTER_SENSOR
(
"
RANGE BEARING
"
,
SensorRangeBearing
)
WOLF_REGISTER_SENSOR_AUTO
(
"
RANGE BEARING
"
,
SensorRangeBearing
)
WOLF_REGISTER_SENSOR
(
"
SensorRangeBearing
"
,
SensorRangeBearing
)
WOLF_REGISTER_SENSOR_AUTO
(
"
SensorRangeBearing
"
,
SensorRangeBearing
)
}
// namespace wolf
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