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
bf7b8ba2
Commit
bf7b8ba2
authored
6 years ago
by
Joaquim Casals Buñuel
Browse files
Options
Downloads
Patches
Plain Diff
Changes to Problem to actually close
#219
parent
6f3d7905
No related branches found
No related tags found
1 merge request
!281
WIP: Resolve "autoconf: add state definition and dimension to yaml"
Pipeline
#3575
passed
6 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/core/problem/problem.h
+1
-1
1 addition, 1 deletion
include/core/problem/problem.h
src/problem/problem.cpp
+4
-2
4 additions, 2 deletions
src/problem/problem.cpp
with
5 additions
and
3 deletions
include/core/problem/problem.h
+
1
−
1
View file @
bf7b8ba2
...
...
@@ -61,7 +61,7 @@ class Problem : public std::enable_shared_from_this<Problem>
public:
static
ProblemPtr
create
(
const
std
::
string
&
_frame_structure
,
SizeEigen
_dim
);
// USE THIS AS A CONSTRUCTOR!
static
ProblemPtr
autoSetup
(
const
std
::
string
&
_frame_structure
,
SizeEigen
_dim
,
const
std
::
string
&
_yaml_file
);
static
ProblemPtr
autoSetup
(
const
std
::
string
&
_yaml_file
);
virtual
~
Problem
();
// Properties -----------------------------------------
...
...
This diff is collapsed.
Click to expand it.
src/problem/problem.cpp
+
4
−
2
View file @
bf7b8ba2
...
...
@@ -72,13 +72,15 @@ ProblemPtr Problem::create(const std::string& _frame_structure, SizeEigen _dim)
p
->
setup
();
return
p
->
shared_from_this
();
}
ProblemPtr
Problem
::
autoSetup
(
const
std
::
string
&
_frame_structure
,
SizeEigen
_dim
,
const
std
::
string
&
_yaml_file
)
ProblemPtr
Problem
::
autoSetup
(
const
std
::
string
&
_yaml_file
)
{
auto
p
=
Problem
::
create
(
_frame_structure
,
_dim
);
// string file = "/home/jcasals/catkin_ws/src/wolf_ros_wrapper/src/params.yaml";
parserYAML
parser
=
parserYAML
(
_yaml_file
);
parser
.
parse
();
paramsServer
server
=
paramsServer
(
parser
.
getParams
(),
parser
.
sensorsSerialization
(),
parser
.
processorsSerialization
());
std
::
string
frame_structure
=
server
.
getParam
<
std
::
string
>
(
"problem/frame structure"
,
"PO"
);
int
dim
=
server
.
getParam
<
int
>
(
"problem/dimension"
,
"2"
);
auto
p
=
Problem
::
create
(
frame_structure
,
dim
);
// cout << "PRINTING SERVER MAP" << endl;
// server.print();
// cout << "-----------------------------------" << endl;
...
...
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