AutoAPMS
Streamlining behaviors in ROS 2
Loading...
Searching...
No Matches
node_registration_options.cpp
1// Copyright 2024 Robin Müller
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#include "auto_apms_behavior_tree_core/node/node_registration_options.hpp"
16
18{
19
20// clang-format off
21const std::string NodeRegistrationOptions::PARAM_NAME_CLASS = _AUTO_APMS_BEHAVIOR_TREE_CORE__NODE_MANIFEST_PARAM_CLASS;
22const std::string NodeRegistrationOptions::PARAM_NAME_ROS2TOPIC = _AUTO_APMS_BEHAVIOR_TREE_CORE__NODE_MANIFEST_PARAM_ROS2TOPIC;
23const std::string NodeRegistrationOptions::PARAM_NAME_DESCRIPTION = _AUTO_APMS_BEHAVIOR_TREE_CORE__NODE_MANIFEST_PARAM_DESCRIPTION;
24const std::string NodeRegistrationOptions::PARAM_NAME_PORT_ALIAS = _AUTO_APMS_BEHAVIOR_TREE_CORE__NODE_MANIFEST_PARAM_PORT_ALIAS;
25const std::string NodeRegistrationOptions::PARAM_NAME_PORT_DEFAULT = _AUTO_APMS_BEHAVIOR_TREE_CORE__NODE_MANIFEST_PARAM_PORT_DEFAULT;
26const std::string NodeRegistrationOptions::PARAM_NAME_REQUEST_TIMEOUT = _AUTO_APMS_BEHAVIOR_TREE_CORE__NODE_MANIFEST_PARAM_REQUEST_TIMEOUT;
27const std::string NodeRegistrationOptions::PARAM_NAME_WAIT_TIMEOUT = _AUTO_APMS_BEHAVIOR_TREE_CORE__NODE_MANIFEST_PARAM_WAIT_TIMEOUT;
28const std::string NodeRegistrationOptions::PARAM_NAME_ALLOW_UNREACHABLE = _AUTO_APMS_BEHAVIOR_TREE_CORE__NODE_MANIFEST_PARAM_ALLOW_UNREACHABLE;
29const std::string NodeRegistrationOptions::PARAM_NAME_LOGGER_LEVEL = _AUTO_APMS_BEHAVIOR_TREE_CORE__NODE_MANIFEST_PARAM_LOGGER_LEVEL;
30const std::string NodeRegistrationOptions::PARAM_NAME_HIDDEN_PORTS = _AUTO_APMS_BEHAVIOR_TREE_CORE__NODE_MANIFEST_PARAM_HIDDEN_PORTS;
31const std::string NodeRegistrationOptions::PARAM_NAME_EXTRA = _AUTO_APMS_BEHAVIOR_TREE_CORE__NODE_MANIFEST_PARAM_EXTRA;
32// clang-format on
33
34bool NodeRegistrationOptions::valid() const { return !class_name.empty(); }
35
36} // namespace auto_apms_behavior_tree::core
Core API for AutoAPMS's behavior tree implementation.
Definition behavior.hpp:32
bool valid() const
Verify that the options are valid (e.g. all required values are set).
std::string class_name
Fully qualified name of the behavior tree node plugin class.