19#include <rclcpp/rclcpp.hpp>
30template <
typename MessageType>
58 template <
typename TOrthogonal,
typename TClient>
61 RCLCPP_INFO(
getLogger(),
"[ClGenericSensor] Initializing component-based sensor client");
69 "[ClGenericSensor] Topic name not set. Please configure topicName_ before "
79 getLogger(),
"[ClGenericSensor] Created CpTopicSubscriber for topic: %s",
94 getLogger(),
"[ClGenericSensor] Created CpMessageTimeout with duration: %f seconds",
100 getLogger(),
"[ClGenericSensor] Timeout not configured - watchdog functionality disabled");
void setTimeout(const rclcpp::Duration &timeout)
virtual ~ClGenericSensor()
void setTopicName(const std::string &topicName)
std::optional< std::string > topicName_
std::optional< rclcpp::Duration > timeout_
void onComponentInitialization()
ClGenericSensor(std::string topicName, rclcpp::Duration timeout)
ClGenericSensor(std::string topicName)
rclcpp::Logger getLogger()
SmaccComponentType * createComponent(TArgs... targs)