forked from ros-navigation/navigation2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Smoother error codes (ros-navigation#3296)
* minimum error code set * test for invalid smoother * undo * added rest of error tests * Solve bug when CostmapInfoServer is reactivated (ros-navigation#3292) * Solve bug when CostmapInfoServer is reactivated * Smoothness metrics update (ros-navigation#3294) * Update metrics for path smoothness * Support Savitzky-Golay smoother * preempt/cancel test for time behavior, spin pluguin (ros-navigation#3301) * include preempt/cancel test for time behavior, spin pluguin * linting * fix bug in code * removed changes to simple_smoother * reverted simple_smoother * revert * revert * updated constrained smoother * revert * added smoother error for invalid path * linting * invalid path test * added error codes * Timeout exception thrown by smoothers * code review Co-authored-by: Joshua Wallace <josho.wallace.com> Co-authored-by: MartiBolet <43337758+MartiBolet@users.noreply.github.com> Co-authored-by: Alexey Merzlyakov <60094858+AlexeyMerzlyakov@users.noreply.github.com> Co-authored-by: Stevedan Ogochukwu Omodolor <61468301+stevedanomodolor@users.noreply.github.com>
- Loading branch information
1 parent
5e16d10
commit fe9519d
Showing
21 changed files
with
429 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// Copyright (c) 2022 Joshua Wallace | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#ifndef NAV2_CORE__SMOOTHER_EXCEPTIONS_HPP_ | ||
#define NAV2_CORE__SMOOTHER_EXCEPTIONS_HPP_ | ||
|
||
#include <stdexcept> | ||
#include <string> | ||
|
||
namespace nav2_core | ||
{ | ||
|
||
class SmootherException : public std::runtime_error | ||
{ | ||
public: | ||
explicit SmootherException(const std::string & description) | ||
: std::runtime_error(description) {} | ||
}; | ||
|
||
class InvalidSmoother : public SmootherException | ||
{ | ||
public: | ||
explicit InvalidSmoother(const std::string & description) | ||
: SmootherException(description) {} | ||
}; | ||
|
||
class InvalidPath : public SmootherException | ||
{ | ||
public: | ||
explicit InvalidPath(const std::string & description) | ||
: SmootherException(description) {} | ||
}; | ||
|
||
class SmootherTimedOut : public SmootherException | ||
{ | ||
public: | ||
explicit SmootherTimedOut(const std::string & description) | ||
: SmootherException(description) {} | ||
}; | ||
|
||
class SmoothedPathInCollision : public SmootherException | ||
{ | ||
public: | ||
explicit SmoothedPathInCollision(const std::string & description) | ||
: SmootherException(description) {} | ||
}; | ||
|
||
class FailedToSmoothPath : public SmootherException | ||
{ | ||
public: | ||
explicit FailedToSmoothPath(const std::string & description) | ||
: SmootherException(description) {} | ||
}; | ||
|
||
} // namespace nav2_core | ||
#endif // NAV2_CORE__SMOOTHER_EXCEPTIONS_HPP_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.