From bc40d6b7e3bec63d160737bde7646506bf45aa3e Mon Sep 17 00:00:00 2001 From: Chris Lewis Date: Mon, 23 Jun 2014 14:46:06 -0500 Subject: [PATCH] removed try/catch/throw that had no point. --- .../src/add_smoothing_filter.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/industrial_trajectory_filters/src/add_smoothing_filter.cpp b/industrial_trajectory_filters/src/add_smoothing_filter.cpp index e611ffce..639b5409 100644 --- a/industrial_trajectory_filters/src/add_smoothing_filter.cpp +++ b/industrial_trajectory_filters/src/add_smoothing_filter.cpp @@ -114,18 +114,12 @@ class AddSmoothingFilter : public planning_request_adapter::PlanningRequestAdapt bool result = planner(planning_scene, req, res); // do anything after calling the nested planner or adapters here - if (result && res.trajectory_) + if (result && res.trajectory_) // successful plan { ROS_DEBUG("Running '%s'", getDescription().c_str()); // inform the user - try{ - if (!smoothing_filter_.applyFilter(*res.trajectory_)) // do the work - { - throw 31415; - } - } // end of try - catch(int x){ + if (!smoothing_filter_.applyFilter(*res.trajectory_)) {// do the smoothing ROS_ERROR("Smoothing filter of the solution path failed. Filter Not Initialized "); - }// end of catch + } }// end of if successful plan return result; };