industrial_robot_simulator: listen to 'fake_e_stop' and change availability accordingly - #254
Open
simonschmeisser wants to merge 1 commit into
Open
Conversation
(cherry picked from commit 5474009)
gavanderhoorn
requested changes
Jun 18, 2021
gavanderhoorn
left a comment
Member
There was a problem hiding this comment.
See inline comment.
(the bigger discussion is that industrial_robot_simulator is supposed to implement a "standard interface", and e-stop topics are not part of whatever standard we're currently implementing, but that's perhaps out-of-scope for this PR)
|
|
||
| # React to published e-stop | ||
| self.e_stop_state = False | ||
| self.e_stop_sub = rospy.Subscriber('fake_e_stop', Bool, self.e_stop_changed_callback) |
Member
There was a problem hiding this comment.
Would it be better to not call this fake_e_stop? The whole script is already a simulator/simulation of a real robot, and those typically don't have fake_e_stop topics.
If we want to add this here, I would propose the rename the subscribed topic. If the producing side would like to call the topic fake_e_stop, remapping could be used.
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.
(cherry picked from commit 5474009)
This adds the ability to trigger and resolve an emergency stop in industrial_robot_simulator to test error handling offline