Welcome to the first lesson!
During this lesson you will learn how to authorize yourself as a user, get motor power control and send basic commands to Spot.
Watch our introductory video if you haven't seen it already:
Create a Python script controls robot body position. Run your script on Spot to let it execute a sequence of motions:
- Trace your initials with it's face (one letter, at least 3 points),
Read Understanding Spot Programming page in Spot SDK documentation.
You need to understand what is
E-Stop and how make initialization in your Python script in order to to let the robot execute commands.
Ensure you have Yggdrasil Network software running and configured as described in the Lesson 0. Otherwise you will not have connection to the robot. On macOS you may need to launch Yggdrasil Network in the terminal:
sudo yggdrasil -useconffile /etc/yggdrasil.conf
- Connect to SpotCORE by SSH from the terminal,
- Create a script can authenticate in Spot, acquire control (lease) and power on the robot.
We create E-Stop endpoint for you, so you should not create it.
For Spot authentication use username and password from
/home/student/credentials file. Spot address is
In Taking ownership of Spot (Leases) section use
lease = lease_client.acquire()before
lease_keep_alive = bosdyn.client.lease.LeaseKeepAlive(lease_client)
- Try your script with stand-up and sit-down commands. Ensure robot moves as expected,
Make sure you run your script by Python 3 with
pythonrefers to an obsolete Python 2 interpreter.
- Add body position control to your script. Experiment with
bosdyn.geometry.EulerZXYrobot command argument builder in order to identify what yaw, roll and pitch parameters you need to set to solve the challenge. The range of Pitch, Yaw and Roll is from -0.5 to 0.5.