Main Page
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Classes
Class List
Class Members
All
Functions
Variables
Files
File List
File Members
All
Functions
src
ros
fadecandy_driver_ros_node.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2021 Eurotec, Netherlands
3
* All rights reserved.
4
*
5
* Author: Jad Haj Mustafa
6
*
7
* Redistribution and use in source and binary forms, with or without
8
* modification, are permitted provided that the following conditions
9
* are met:
10
*
11
* 1. Redistributions of source code must retain the above copyright
12
* notice, this list of conditions and the following disclaimer.
13
* 2. Redistributions in binary form must reproduce the above
14
* copyright notice, this list of conditions and the following
15
* disclaimer in the documentation and/or other materials provided
16
* with the distribution.
17
* 3. Neither the name of the copyright holder nor the names of its
18
* contributors may be used to endorse or promote products derived
19
* from this software without specific prior written permission.
20
*
21
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32
* POSSIBILITY OF SUCH DAMAGE.
33
*/
34
35
#include <
ros/init.h
>
36
#include <
ros/node_handle.h
>
37
38
#include "
./fadecandy_driver_ros.h
"
39
40
int
main
(
int
argc,
char
** argv)
41
{
42
ros::init
(argc, argv,
"fadecandy_driver"
);
43
ros::NodeHandle
local_nh(
"~"
);
44
double
restart_patience = local_nh.
param
(
"restart_patience"
, 1.);
45
46
fadecandy_driver::FadecandyDriverROS
node(restart_patience);
47
node.
run
();
48
return
0;
49
}
node_handle.h
ros::init
ROSCPP_DECL void init(const M_string &remappings, const std::string &name, uint32_t options=0)
init.h
fadecandy_driver::FadecandyDriverROS::run
void run()
run Listen to LED messages and publishes diagnostic of the driver
Definition:
fadecandy_driver_ros.cpp:53
main
int main(int argc, char **argv)
Definition:
fadecandy_driver_ros_node.cpp:40
ros::NodeHandle::param
T param(const std::string ¶m_name, const T &default_val) const
fadecandy_driver::FadecandyDriverROS
Definition:
fadecandy_driver_ros.h:44
fadecandy_driver_ros.h
ros::NodeHandle
fadecandy_driver
Author(s):
autogenerated on Wed Mar 2 2022 00:19:01