Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Víctor Silos Sánchez
Victor_Silos_TFG
Commits
92f6b2ea
Commit
92f6b2ea
authored
Mar 20, 2017
by
Víctor Silos Sánchez
Browse files
Upload new file
parent
7098cecd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/foot_alg_node.cpp
0 → 100644
View file @
92f6b2ea
#include
"foot_alg_node.h"
FootAlgNode
::
FootAlgNode
(
void
)
:
algorithm_base
::
IriBaseAlgorithm
<
FootAlgorithm
>
()
{
//init class attributes if necessary
//this->loop_rate_ = 2;//in [Hz]
// [init publishers]
// [init subscribers]
// [init services]
// [init clients]
// [init action servers]
// [init action clients]
}
FootAlgNode
::~
FootAlgNode
(
void
)
{
// [free dynamic memory]
}
void
FootAlgNode
::
mainNodeThread
(
void
)
{
// [fill msg structures]
// [fill srv structure and make request to the server]
// [fill action structure and make request to the action server]
// [publish messages]
}
/* [subscriber callbacks] */
/* [service callbacks] */
/* [action callbacks] */
/* [action requests] */
void
FootAlgNode
::
node_config_update
(
Config
&
config
,
uint32_t
level
)
{
this
->
alg_
.
lock
();
this
->
config_
=
config
;
this
->
alg_
.
unlock
();
}
void
FootAlgNode
::
addNodeDiagnostics
(
void
)
{
}
/* main function */
int
main
(
int
argc
,
char
*
argv
[])
{
return
algorithm_base
::
main
<
FootAlgNode
>
(
argc
,
argv
,
"foot_alg_node"
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment