Skip to content

Commit 4d61870

Browse files
Fix variable type checking in rtde_client (#203)
1 parent 289655e commit 4d61870

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ur_robot_driver/src/rtde/rtde_client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,14 @@ void RTDEClient::setupOutputs(const uint16_t protocol_version)
199199
for (std::size_t i = 0; i < variable_types.size(); ++i)
200200
{
201201
LOG_DEBUG("%s confirmed as datatype: %s", output_recipe_[i].c_str(), variable_types[i].c_str());
202-
return;
203202
if (variable_types[i] == "NOT_FOUND")
204203
{
205204
std::string message = "Variable '" + output_recipe_[i] +
206205
"' not recognized by the robot. Probably your output recipe contains errors";
207206
throw UrException(message);
208207
}
209208
}
209+
return;
210210
}
211211
else
212212
{

0 commit comments

Comments
 (0)