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>
10
12{
13private:
14 bool m_spun{false};
15 std::shared_ptr<rclcpp::Node> m_node;
16public:
17 Ros2Spinner(std::shared_ptr<rclcpp::Node> input_node);
19
20 void run() override;
21};
void run() override
Main body of the new thread.
An abstraction for a thread of execution.
Definition Thread.h:21