Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wolf_ros_node
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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_ros
wolf_ros_node
Commits
f00bfaab
Commit
f00bfaab
authored
5 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
printing steps of constructor
parent
2e91e246
No related branches found
No related tags found
2 merge requests
!11
new release
,
!10
new release
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/node.cpp
+8
-0
8 additions, 0 deletions
src/node.cpp
with
8 additions
and
0 deletions
src/node.cpp
+
8
−
0
View file @
f00bfaab
...
...
@@ -31,9 +31,11 @@ WolfRosNode::WolfRosNode() : nh_(ros::this_node::getName())
server
.
print
();
// PROBLEM
ROS_INFO
(
"Creating problem..."
);
problem_ptr_
=
Problem
::
autoSetup
(
server
);
// SOLVER
ROS_INFO
(
"Creating solver..."
);
solver_manager_ptr_
=
std
::
static_pointer_cast
<
CeresManager
>
(
FactorySolver
::
get
().
create
(
"CeresManager"
,
problem_ptr_
,
server
));
int
solver_verbose_int
;
solver_period_
=
server
.
getParam
<
double
>
(
"solver/period"
);
...
...
@@ -41,6 +43,7 @@ WolfRosNode::WolfRosNode() : nh_(ros::this_node::getName())
solver_verbose_
=
static_cast
<
SolverManager
::
ReportVerbosity
>
(
solver_verbose_int
);
// ROS SUBSCRIBERS
ROS_INFO
(
"Creating subscribers..."
);
for
(
auto
it
:
server
.
getParam
<
std
::
vector
<
std
::
map
<
std
::
string
,
std
::
string
>>>
(
"ROS subscriber"
))
{
std
::
string
subscriber
=
it
[
"type"
];
...
...
@@ -53,6 +56,7 @@ WolfRosNode::WolfRosNode() : nh_(ros::this_node::getName())
}
// // ROS VISUALIZER
ROS_INFO
(
"Creating visualizer..."
);
// auto visualizer = server.getParam<std::string>("visualizer/type");
// viz_ = VisualizerFactory::get().create(visualizer);
...
...
@@ -61,6 +65,7 @@ WolfRosNode::WolfRosNode() : nh_(ros::this_node::getName())
viz_period_
=
server
.
getParam
<
int
>
(
"visualizer/period"
);
// ROS PUBLISHERS
ROS_INFO
(
"Creating publishers..."
);
try
{
for
(
auto
it
:
server
.
getParam
<
std
::
vector
<
std
::
map
<
std
::
string
,
std
::
string
>>>
(
"ROS publisher"
))
...
...
@@ -80,8 +85,11 @@ WolfRosNode::WolfRosNode() : nh_(ros::this_node::getName())
}
// TF INIT
ROS_INFO
(
"Initializing TF..."
);
updateTf
();
broadcastTf
();
ROS_INFO
(
"Ready!"
);
}
void
WolfRosNode
::
solve
()
...
...
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