@@ -251,11 +251,12 @@ void RTDEClient::queryURControlVersion()
251251 throw UrException (ss.str ());
252252}
253253
254- void RTDEClient::resetOutputRecipe (const std::vector<std::string> new_recipe) {
254+ void RTDEClient::resetOutputRecipe (const std::vector<std::string> new_recipe)
255+ {
255256 prod_->teardownProducer ();
256257 disconnect ();
257258
258- output_recipe_.assign (new_recipe.begin (), new_recipe.end ());
259+ output_recipe_.assign (new_recipe.begin (), new_recipe.end ());
259260 parser_ = RTDEParser (output_recipe_);
260261 prod_ = std::make_unique<comm::URProducer<RTDEPackage>>(stream_, parser_);
261262 pipeline_ = std::make_unique<comm::Pipeline<RTDEPackage>>(*prod_, PIPELINE_NAME, notifier_, true );
@@ -313,21 +314,23 @@ void RTDEClient::setupOutputs(const uint16_t protocol_version)
313314 {
314315 const std::string variable_name = output_recipe_[i];
315316 URCL_LOG_DEBUG (" %s confirmed as datatype: %s" , variable_name.c_str (), variable_types[i].c_str ());
316-
317+
317318 if (variable_types[i] == " NOT_FOUND" )
318319 {
319- const std::string message = " Variable '" + variable_name + " ' not recognized by the robot. "
320- " Either your output recipe contains errors or the urcontrol version "
321- " does not support it. It will be removed from the output recipe." ;
320+ const std::string message = " Variable '" + variable_name +
321+ " ' not recognized by the robot. "
322+ " Either your output recipe contains errors or the urcontrol version "
323+ " does not support it. It will be removed from the output recipe." ;
322324 URCL_LOG_WARN (" %s" , message.c_str ());
323- }
324- else
325+ }
326+ else
325327 {
326328 available_variables.push_back (variable_name);
327329 }
328330 }
329331
330- if (available_variables.size () == output_recipe_.size ()) {
332+ if (available_variables.size () == output_recipe_.size ())
333+ {
331334 // All variables are accounted for in the RTDE package
332335 return ;
333336 }
0 commit comments