Skip to content

Commit

Permalink
Fix variable type checking in rtde_client (UniversalRobots#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertWilbrandt authored Jun 19, 2020
1 parent 289655e commit 4d61870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ur_robot_driver/src/rtde/rtde_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,14 @@ void RTDEClient::setupOutputs(const uint16_t protocol_version)
for (std::size_t i = 0; i < variable_types.size(); ++i)
{
LOG_DEBUG("%s confirmed as datatype: %s", output_recipe_[i].c_str(), variable_types[i].c_str());
return;
if (variable_types[i] == "NOT_FOUND")
{
std::string message = "Variable '" + output_recipe_[i] +
"' not recognized by the robot. Probably your output recipe contains errors";
throw UrException(message);
}
}
return;
}
else
{
Expand Down

0 comments on commit 4d61870

Please sign in to comment.