Skip to content

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

Open
simonschmeisser wants to merge 1 commit into
ros-industrial:melodic-develfrom
isys-vision:simulator-e-stop
Open

industrial_robot_simulator: listen to 'fake_e_stop' and change availability accordingly#254
simonschmeisser wants to merge 1 commit into
ros-industrial:melodic-develfrom
isys-vision:simulator-e-stop

Conversation

@simonschmeisser

Copy link
Copy Markdown
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

@gavanderhoorn gavanderhoorn left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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