Edit Autowalk

This example shows how to edit and replay an Autowalk via the API. The edit_autowalk.py script allows the user to edit and replay Autowalks using the autogenerated Autowalk file. In addition, the user can drag and drop using the GUI to remove, duplicate, and reorder Autowalk actions as desired.

This example assumes that Spot can see the fiducial from “Start” of your mission. To ensure the fiducial is in view, move Spot to a location where the initial fiducial is seen and verify that the fiducial has a purple overlay in the tablet camera view. You may then disconnect the tablet, engage the E-Stop on your current device, and replay the mission.

Setup Dependencies

This example needs to be run with python3, and have the Spot SDK installed. See the requirements.txt file for a list of dependencies which can be installed with pip using the command:

python3 -m pip install -r requirements.txt

Before running the example, make sure to set the E-Stop either using the tablet interface or computer. Look at the E-Stop Python example for more information on how to set E-Stop through the command line.

Run the Example

You can use edit_autowalk.py to replay an Autowalk recorded using the tablet. Attach a USB cable to the tablet and copy the Autowalk directory to your PC. These missions are stored under Documents/bosdyn/Autowalk on the tablet. The walk directory contains all files related to the Autowalk.

To edit and run an Autowalk using the default autogenerated Autowalk file from the tablet:

python3 -m edit_autowalk ROBOT_IP WALK_DIRECTORY

Modifying the Autowalk

You can use edit_autowalk.py to replay an edited Autowalk recorded using the tablet. The editing interface will open, allowing you to drag and drop actions as desired to create a modified Autowalk. Additionally, you can choose to run the Autowalk once, periodically, or continuously.