YARP
Yet Another Robot Platform
Loading...
Searching...
No Matches
Ros2Spinner.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2023 Istituto Italiano di Tecnologia (IIT)
3
* SPDX-License-Identifier: BSD-3-Clause
4
*/
5
6
#include <rclcpp/rclcpp.hpp>
7
#include <
yarp/os/Thread.h
>
8
#include <
yarp/os/LogStream.h
>
9
#include <
yarp/os/LogComponent.h
>
10
11
class
Ros2Spinner
:
public
yarp::os::Thread
12
{
13
private
:
14
bool
m_spun{
false
};
15
std::shared_ptr<rclcpp::Node> m_node;
16
public
:
17
Ros2Spinner
(std::shared_ptr<rclcpp::Node> input_node);
18
~Ros2Spinner
();
19
20
void
run
()
override
;
21
};
LogStream.h
Thread.h
Ros2Spinner
Definition
Ros2Spinner.h:12
Ros2Spinner::run
void run() override
Main body of the new thread.
Definition
Ros2Spinner.cpp:20
Ros2Spinner::~Ros2Spinner
~Ros2Spinner()
Definition
Ros2Spinner.cpp:29
yarp::os::Thread
An abstraction for a thread of execution.
Definition
Thread.h:21
LogComponent.h
YARP
3.11.100+20250603.4+gitaa77f8b5c
opt-modules
yarp-devices-ros2
src
devices
ros2Utils
Ros2Spinner.h
Generated on Wed Jun 4 2025 02:39:56 for YARP by
1.9.8