-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathros2_inifin.h
More file actions
54 lines (42 loc) · 1.81 KB
/
ros2_inifin.h
File metadata and controls
54 lines (42 loc) · 1.81 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
/***************************************************************************
* ros_inifin.h - Fawkes ROSAspect initializer/finalizer
*
* Created: Thu May 05 16:02:26 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_ROS_INIFIN_H_
#define _PLUGINS_ROS2_ASPECT_ROS_INIFIN_H_
#include <aspect/inifins/inifin.h>
#include <plugins/ros2/aspect/ros2.h>
#include <rclcpp/executors/multi_threaded_executor.hpp>
#include <rclcpp/rclcpp.hpp>
namespace fawkes {
class ROS2AspectIniFin : public AspectIniFin
{
public:
ROS2AspectIniFin();
virtual void init(Thread *thread);
virtual void finalize(Thread *thread);
void set_node_handle(rclcpp::Node::SharedPtr node_handle);
void set_executor(std::shared_ptr<rclcpp::executors::MultiThreadedExecutor> executor);
private:
rclcpp::Node::SharedPtr node_handle_;
std::shared_ptr<rclcpp::executors::MultiThreadedExecutor> executor_;
std::string tf_prefix_;
};
} // end namespace fawkes
#endif