Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

industrial_robot_simulator: listen to 'fake_e_stop' and change availability accordingly #254

Open
wants to merge 1 commit into
base: melodic-devel
Choose a base branch
from

Conversation

simonschmeisser
Copy link
Contributor

(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

Copy link
Member

@gavanderhoorn gavanderhoorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@gavanderhoorn gavanderhoorn changed the base branch from kinetic-devel to melodic-devel June 21, 2021 19:51
@gavanderhoorn gavanderhoorn added this to the Untargeted milestone Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants