-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathros2.h
More file actions
64 lines (50 loc) · 1.94 KB
/
ros2.h
File metadata and controls
64 lines (50 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/***************************************************************************
* ros.h - ROS2 aspect for Fawkes
*
* Created: Thu May 05 16:01:34 2011
* Copyright 2006-2011 Tim Niemueller [www.niemueller.de]
*
****************************************************************************/
/* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. A runtime exception applies to
* this software (see LICENSE.GPL_WRE file mentioned below for details).
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* Read the full text in the LICENSE.GPL_WRE file in the doc directory.
*/
#ifndef _PLUGINS_ROS2_ASPECT_ROS2_H_
#define _PLUGINS_ROS2_ASPECT_ROS2_H_
//#include <aspect/aspect.h>
#include <aspect/configurable.h>
#include <core/utils/lockptr.h>
#include <utils/system/hostinfo.h>
#include <rclcpp/rclcpp.hpp>
#include <regex>
namespace fawkes {
class ROS2AspectIniFin;
class ROS2Aspect : public virtual Aspect
{
friend ROS2AspectIniFin;
public:
ROS2Aspect();
virtual ~ROS2Aspect();
void add_tf_prefix(std::string &frame_id);
protected:
rclcpp::Node::SharedPtr node_handle;
std::shared_ptr<rclcpp::executors::MultiThreadedExecutor> executor;
private:
void init_ROS2Aspect(rclcpp::Node::SharedPtr node_handle,
std::shared_ptr<rclcpp::executors::MultiThreadedExecutor> executor);
void finalize_ROS2Aspect();
// bool tf_prefix_enabled_;
// std::string cfg_tf_prefix_;
// std::vector<std::string> cfg_tf_prefix_exclusions_;
};
} // end namespace fawkes
#endif