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

[jsk_pr2_startup] add logwarn in pr2_reset_motors.py #1241

Merged
merged 2 commits into from
Sep 4, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def motors_cb(self, msg):
halted = msg.data
rospy.logdebug("runstop: %s, halted: %s" % (self.run_stop, halted))
if self.run_stop and halted:
rospy.logwarn("motor halted, but run stop is true")
rospy.logwarn("resetting motors")
knorth55 marked this conversation as resolved.
Show resolved Hide resolved
stamp = rospy.Time.now()
history = filter(
lambda s: (stamp-s).to_sec() < self.watch_duration,
Expand Down