PX4 ROS 2 Interface Library
Library to interface with PX4 from a companion computer using ROS 2
Loading...
Searching...
No Matches
wait_for_fmu.hpp
1/****************************************************************************
2 * Copyright (c) 2023 PX4 Development Team.
3 * SPDX-License-Identifier: BSD-3-Clause
4 ****************************************************************************/
5
6#pragma once
7
8#include <rclcpp/rclcpp.hpp>
9using namespace std::chrono_literals; // NOLINT
10
11namespace px4_ros2 {
12
29bool waitForFMU(rclcpp::Node& node, const rclcpp::Duration& discovery_timeout,
30 const rclcpp::Duration& heartbeat_timeout,
31 const std::string& topic_namespace_prefix = "");
32
42[[deprecated(
43 "Use waitForFMU(node, discovery_timeout, heartbeat_timeout, prefix) "
44 "for finer control over discovery vs heartbeat timeouts.")]]
45bool waitForFMU(rclcpp::Node& node, const rclcpp::Duration& timeout = 30s,
46 const std::string& topic_namespace_prefix = "");
47
49} // namespace px4_ros2
bool waitForFMU(rclcpp::Node &node, const rclcpp::Duration &discovery_timeout, const rclcpp::Duration &heartbeat_timeout, const std::string &topic_namespace_prefix="")