Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Overview


The `stretch4_body` repository contains the core Python software stack that allows developers to interact with the hardware of Stretch 4 robots. The repository for Stretch 3 and below can be found in the [stretch_body](https://github.com/hello-robot/stretch_body) repo. This repo provides a robust, soft real-time capable framework for managing low-level motor communication, subsystem coordination, autonomous behaviors, and a high-level API for user applications. This repository is intended to be imported by other code that needs access to these features.

This package can be installed by:
Expand Down
2 changes: 1 addition & 1 deletion stretch4_body/behavior/sentries/sentry_joint_runaway.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __init__(self, robot):

def step(self):
if self.robot.get_subsystem('lift') is not None:
if abs(self.robot.lift.status['vel'])>self.params['lift_runaway_vel'] and self.robot.lift.motor.hw_valid:
if self.robot.lift.status['vel']<0 and abs(self.robot.lift.status['vel'])>self.params['lift_runaway_vel'] and self.robot.lift.motor.hw_valid and not self.robot.power_periph.status['runstop_event']:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Blaine mentioned we should still have the runaway sentry active when runstopped; would this disable the safety feature during runstop?

self.logger.warning('Runaway velocity of lift of %f m/s. Shutting down actuator!'%self.robot.lift.status['vel'])
self.logger.warning('Stop the server with stretch_body_server --kill')
self.logger.warning('Run REx_actuator_control --lift to re-enable joint')
Expand Down