Skip to content

Commit 4c1afee

Browse files
Update src/ur/ur_driver.cpp
Co-authored-by: Felix Exner <feex@universal-robots.com>
1 parent 43f5dab commit 4c1afee

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/ur/ur_driver.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -730,21 +730,6 @@ void UrDriver::handleRTDEReset(const UrDriverConfiguration& config)
730730
input_recipe = rtde_interface::RTDEClient::readRecipe(config.input_recipe_file);
731731
}
732732

733-
if (use_input_file && !std::filesystem::exists(config.input_recipe_file))
734-
throw UrException("Input recipe file does not exist: " + config.input_recipe_file);
735-
736-
if (use_input_file && use_output_file)
737-
rtde_client_.reset(
738-
new rtde_interface::RTDEClient(robot_ip_, notifier_, config.output_recipe_file, config.input_recipe_file));
739-
else
740-
{
741-
auto input_recipe = config.input_recipe;
742-
auto output_recipe = config.output_recipe;
743-
if (use_input_file)
744-
input_recipe = rtde_interface::RTDEClient::readRecipe(config.input_recipe_file);
745-
if (use_output_file)
746-
output_recipe = rtde_interface::RTDEClient::readRecipe(config.output_recipe_file);
747-
748733
rtde_client_.reset(new rtde_interface::RTDEClient(robot_ip_, notifier_, output_recipe, input_recipe));
749734
}
750735
}

0 commit comments

Comments
 (0)