src
publishers
publishers/info.hpp
Go to the documentation of this file.
1
/*
2
* Copyright 2015 Aldebaran
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 PUBLISHER_INFO_HPP
19
#define PUBLISHER_INFO_HPP
20
21
/*
22
* LOCAL includes
23
*/
24
#include "
basic.hpp
"
25
#include <
naoqi_driver/tools.hpp
>
26
27
/*
28
* ROS includes
29
*/
30
#include <
ros/ros.h
>
31
#include <naoqi_bridge_msgs/StringStamped.h>
32
33
namespace
naoqi
34
{
35
namespace
publisher
36
{
37
38
class
InfoPublisher
:
public
BasicPublisher
<naoqi_bridge_msgs::StringStamped>
39
{
40
public
:
41
InfoPublisher
(
const
std::string&
topic
,
const
robot::Robot
& robot_type );
42
43
void
reset
(
ros::NodeHandle
& nh );
44
45
virtual
inline
bool
isSubscribed
()
const
46
{
47
return
true
;
48
}
49
50
protected
:
51
const
robot::Robot
&
robot_
;
52
};
53
54
}
//publisher
55
}
//naoqi
56
57
#endif
tools.hpp
ros.h
naoqi::publisher::InfoPublisher
Definition:
publishers/info.hpp:38
basic.hpp
naoqi
Definition:
converter.hpp:29
naoqi::publisher::InfoPublisher::InfoPublisher
InfoPublisher(const std::string &topic, const robot::Robot &robot_type)
Definition:
publishers/info.cpp:29
naoqi::robot::Robot
Robot
Definition:
tools.hpp:37
naoqi::publisher::InfoPublisher::isSubscribed
virtual bool isSubscribed() const
Definition:
publishers/info.hpp:45
naoqi::publisher::BasicPublisher< naoqi_bridge_msgs::StringStamped >::topic
std::string topic() const
Definition:
publishers/basic.hpp:45
naoqi::publisher::InfoPublisher::reset
void reset(ros::NodeHandle &nh)
Definition:
publishers/info.cpp:35
naoqi::publisher::InfoPublisher::robot_
const robot::Robot & robot_
Definition:
publishers/info.hpp:51
naoqi::publisher::BasicPublisher
Definition:
publishers/basic.hpp:34
ros::NodeHandle
naoqi_driver
Author(s): Karsten Knese
autogenerated on Sat Feb 3 2024 03:50:06