Skip to content

Commit 5d0ac76

Browse files
committed
Allow an empty input recipe to the RTDE client
1 parent 99ac21d commit 5d0ac76

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/rtde/rtde_client.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,16 @@ void RTDEClient::setupCommunication(const size_t max_num_tries, const std::chron
169169
return;
170170
}
171171

172-
setupInputs();
172+
if (input_recipe_.size() > 0)
173+
{
174+
setupInputs();
173175
if (client_state_ == ClientState::UNINITIALIZED)
174176
return;
177+
}
178+
else
179+
{
180+
writer_.init(0);
181+
}
175182

176183
// We finished communication for now
177184
pipeline_->stop();
@@ -717,4 +724,4 @@ std::vector<std::string> RTDEClient::splitVariableTypes(const std::string& varia
717724
return result;
718725
}
719726
} // namespace rtde_interface
720-
} // namespace urcl
727+
} // namespace urcl

0 commit comments

Comments
 (0)