15#ifndef ROBOLIGO_COMMON_TYPES__LINK_HPP_
16#define ROBOLIGO_COMMON_TYPES__LINK_HPP_
20#include "rclcpp/rclcpp.hpp"
105 void set_interface(std::string name_, std::string topic_name_);
std::string topic_name
Associated topic name.
Definition Linker.hpp:133
void set_interface(std::string name_, std::string topic_name_)
Configures the interface with name and topic.
Definition Linker.cpp:70
bool configured_
Configuration state flag.
Definition Linker.hpp:142
interfaces::modes get_mode()
Gets the current mode of the linker.
Definition Linker.cpp:28
Linker()
Default constructor.
Definition Linker.hpp:51
virtual ~Linker()=default
Virtual destructor.
std::string get_name()
Gets the linker name.
Definition Linker.cpp:40
std::string get_topic()
Gets the topic name.
Definition Linker.cpp:52
std::string name
Linker identifier name.
Definition Linker.hpp:131
bool is_available(void)
Checks if the linker is available.
Definition Linker.cpp:77
void set_configured(bool new_state)
Sets the configuration state.
Definition Linker.cpp:89
void set_available(bool new_state)
Sets the availability state.
Definition Linker.cpp:83
bool available_
Availability flag.
Definition Linker.hpp:140
void set_service(std::string new_name)
Sets the service name.
Definition Linker.cpp:64
std::shared_ptr< interfaces::Interface > interface
Shared pointer to the interface object.
Definition Linker.hpp:135
void set_mode(interfaces::modes new_mode)
Sets the linker mode.
Definition Linker.cpp:34
void set_topic(std::string new_name)
Sets the topic name.
Definition Linker.cpp:58
bool is_configured(void)
Checks if the linker is configured.
Definition Linker.cpp:95
interfaces::modes mode_
Current operating mode.
Definition Linker.hpp:138
void set_name(std::string new_name)
Sets the linker name.
Definition Linker.cpp:46
modes
Enumeration for interface operational modes.
Definition Interface.hpp:51
Definition ClassificationBase.hpp:28
Sense
Defines the direction of a linker connection.
Definition Linker.hpp:33
@ OUTPUT
Definition Linker.hpp:35
@ INPUT
Definition Linker.hpp:34