Main Page
Namespaces
Classes
Files
File List
File Members
ros
include
colorOSim.h
Go to the documentation of this file.
1
/*
2
* Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
18
#ifndef COLOROSIM_H
19
#define COLOROSIM_H
20
21
#include <
iColorO.h
>
22
23
#include <
serialIO.h
>
24
#include <
colorUtils.h
>
25
#include <
ros/ros.h
>
26
27
class
ColorOSim
:
public
IColorO
28
{
29
public
:
30
ColorOSim
(
ros::NodeHandle
* nh);
31
virtual
~ColorOSim
();
32
33
bool
init
();
34
void
setColor
(
color::rgba
color
);
35
void
setColorMulti
(std::vector<color::rgba> &colors);
36
37
private
:
38
ros::NodeHandle
*
p_nh
;
39
ros::Publisher
_pubSimulation
;
40
ros::Publisher
_pubSimulationMulti
;
41
};
42
43
#endif
ros::NodeHandle
IColorO
Definition:
iColorO.h:24
ColorOSim::_pubSimulation
ros::Publisher _pubSimulation
Definition:
colorOSim.h:39
ColorOSim
Definition:
colorOSim.h:27
ColorOSim::ColorOSim
ColorOSim(ros::NodeHandle *nh)
Definition:
colorOSim.cpp:21
ColorOSim::init
bool init()
Definition:
colorOSim.cpp:32
ColorOSim::setColor
void setColor(color::rgba color)
Definition:
colorOSim.cpp:37
ColorOSim::_pubSimulationMulti
ros::Publisher _pubSimulationMulti
Definition:
colorOSim.h:40
ColorOSim::setColorMulti
void setColorMulti(std::vector< color::rgba > &colors)
Definition:
colorOSim.cpp:49
serialIO.h
iColorO.h
ColorOSim::~ColorOSim
virtual ~ColorOSim()
Definition:
colorOSim.cpp:28
ros.h
colorUtils.h
ColorOSim::p_nh
ros::NodeHandle * p_nh
Definition:
colorOSim.h:38
color::rgba
Definition:
colorUtils.h:26
ros::Publisher
color
Definition:
colorUtils.h:24
cob_light
Author(s): Benjamin Maidel
autogenerated on Wed Apr 7 2021 02:11:39