From 5d0ac762321464af74df18f1d83dd8e71663aada Mon Sep 17 00:00:00 2001 From: Felix Exner Date: Tue, 6 May 2025 16:43:49 +0200 Subject: [PATCH] Allow an empty input recipe to the RTDE client --- src/rtde/rtde_client.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/rtde/rtde_client.cpp b/src/rtde/rtde_client.cpp index c804041a..7597f430 100644 --- a/src/rtde/rtde_client.cpp +++ b/src/rtde/rtde_client.cpp @@ -169,9 +169,16 @@ void RTDEClient::setupCommunication(const size_t max_num_tries, const std::chron return; } - setupInputs(); + if (input_recipe_.size() > 0) + { + setupInputs(); if (client_state_ == ClientState::UNINITIALIZED) return; + } + else + { + writer_.init(0); + } // We finished communication for now pipeline_->stop(); @@ -717,4 +724,4 @@ std::vector RTDEClient::splitVariableTypes(const std::string& varia return result; } } // namespace rtde_interface -} // namespace urcl \ No newline at end of file +} // namespace urcl