Open
Conversation
fujitatomoya
requested changes
Apr 16, 2020
| // raise_error() can be called from an inactive or active state. | ||
| if(count == 32){ | ||
| RCLCPP_ERROR(get_logger(),"An error has arisen in the node and it needs reconfiguration."); | ||
| raise_error(); |
Collaborator
There was a problem hiding this comment.
check if the current state in ACTIVE before raise_error() ?
| * TRANSITION_CALLBACK_ERROR or any uncaught exceptions to "finalized" | ||
| */ | ||
| rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn | ||
| on_error(const rclcpp_lifecycle::State & state) |
Collaborator
There was a problem hiding this comment.
indent is not correct?
…tion Signed-off-by: thebyohazard <patrick@jlpengineering.com>
8c40675 to
c2b2cb9
Compare
Signed-off-by: thebyohazard <patrick@jlpengineering.com>
|
What is the state of this PR? |
Collaborator
|
not sure, @thebyohazard any update you would do? |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR shows an example of the new self-transitioning functionality implemented in required PRs ros2/rcl_interfaces#97, ros2/rcl#618, and ros2/rclcpp#1064. Ideally, I think the lifecycle_service_client should react to the lifecycle_talker having an error rather than just knowing it will happen as that would be more true to a real world example, but for a demo and proof of concept, maybe it's better to keep it simpler.