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
0f49a1f0
Commit
0f49a1f0
authored
8 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Use yaml file for initializing sensor
parent
c17d2b6d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/examples/test_processor_odom_3D.cpp
+11
-1
11 additions, 1 deletion
src/examples/test_processor_odom_3D.cpp
with
11 additions
and
1 deletion
src/examples/test_processor_odom_3D.cpp
+
11
−
1
View file @
0f49a1f0
...
@@ -31,6 +31,16 @@ int main (int argc, char** argv)
...
@@ -31,6 +31,16 @@ int main (int argc, char** argv)
{
{
cout
<<
"
\n
========= Test ProcessorOdom3D ==========="
<<
endl
;
cout
<<
"
\n
========= Test ProcessorOdom3D ==========="
<<
endl
;
//=====================================================
// Environment variable for configuration files
char
const
*
tmp
=
std
::
getenv
(
"WOLF_ROOT"
);
if
(
tmp
==
nullptr
)
throw
std
::
runtime_error
(
"WOLF_ROOT environment not loaded."
);
std
::
string
wolf_path
(
tmp
);
std
::
cout
<<
"Wolf path: "
<<
wolf_path
<<
std
::
endl
;
//=====================================================
TimeStamp
tf
;
TimeStamp
tf
;
if
(
argc
==
1
)
if
(
argc
==
1
)
tf
=
1.0
;
tf
=
1.0
;
...
@@ -44,7 +54,7 @@ int main (int argc, char** argv)
...
@@ -44,7 +54,7 @@ int main (int argc, char** argv)
ProblemPtr
problem
=
Problem
::
create
(
FRM_PO_3D
);
ProblemPtr
problem
=
Problem
::
create
(
FRM_PO_3D
);
CeresManager
ceres_manager
(
problem
);
CeresManager
ceres_manager
(
problem
);
SensorBasePtr
sen
=
problem
->
installSensor
(
"ODOM 3D"
,
"odom"
,
(
Vector7s
()
<<
0
,
0
,
0
,
0
,
0
,
0
,
1
).
finished
(),
"
"
);
SensorBasePtr
sen
=
problem
->
installSensor
(
"ODOM 3D"
,
"odom"
,
(
Vector7s
()
<<
0
,
0
,
0
,
0
,
0
,
0
,
1
).
finished
(),
wolf_path
+
"/src/examples/odom_3D.yaml
"
);
problem
->
installProcessor
(
"ODOM 3D"
,
"odometry integrator"
,
"odom"
,
""
);
problem
->
installProcessor
(
"ODOM 3D"
,
"odometry integrator"
,
"odom"
,
""
);
problem
->
getProcessorMotionPtr
()
->
setOrigin
((
Vector7s
()
<<
0
,
0
,
0
,
0
,
0
,
0
,
1
).
finished
(),
TimeStamp
(
0
));
problem
->
getProcessorMotionPtr
()
->
setOrigin
((
Vector7s
()
<<
0
,
0
,
0
,
0
,
0
,
0
,
1
).
finished
(),
TimeStamp
(
0
));
...
...
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