Interactive Perception and Learning Lab
Professor Jeannette Bohg
Working on early-stage project in model-free reinforcement learning using model-based primitives.

Google Brain Robotics Collaboration
I initiated a collaboration with Google Brain and Hands-On Robotics. We apply our expertise in robotics and reinforcement learning to create courses for undergraduates across the United States. Our courses have been held or are being held at Stanford University, George Mason University, and Washington University. Universities that have participated in more informal collaborations have included University of Washington, MIT, WPI, and more!

Robotic Exploration Lab
Professor Zac Manchester
Developed kalman filter-inspired state estimators, hybrid model predictive controllers, and motion capture interfaces for quadruped robots. See Woofer project below for more information.

Presenting our robots at TechCrunch Robotics, where we were one of the main speakers.


Extreme Mobility
In 2016 I started Extreme Mobility, a group of undergrad and grad students in Stanford Student Robotics with the goal of pushing forward the state of the art in legged locomotion.

Our first robot, Stanford Doggo, is a shoebox-sized quadruped robot that can walk, trot, pronk, and jump around.



Performing a backflip:


Jumping rope at the club fair:


Our second robot, Woofer, improved upon the weakness of the Doggo, namely limited torque, and inability of performing omnidirectional movement. I was the primary contributor on hardware and software design, prototyping, testing. We integrated a Kalman filter-based state estimator, MPC trotting controller, and a motion capture system into a Julia package.





To help enable students across the world to get started with agile legged robots, we developed Pupper, a low-cost alternative to Doggo and Woofer. The parts cost less than $500 including 3D printing costs, and to assemble the robot you only need a few screwdrivers and a soldering iron. With out help, MangDang Robotics commercialized our design and raised $500k on KickStarter. Almost 1000 robots have been shipped already!


Attempting to follow a QR code.

TechCrunch Robotics
In March 2020, we presented at TechCrunch Robotics held at Berkeley. We demonstrated eight Pupper robots on stage as well as Doggo and Woofer to showcase the vast potential for low-cost open source robotics.



More details on Stanford Doggo
I hope people might be able to learn from our efforts and perhaps even build their own Doggo and improve upon it. The whole project is open-source (links below) with CAD, code, and firmware available on Github. We've tried to make the robot inexpensive so people may build their own version in their lab, school, or home. We welcome contributors.

Relevant links:
GitHub project repository: https://github.com/Nate711/StanfordDoggoProject
Full, downloadable Fusion 360 CAD: https://a360.co/2OBxTbH
Teensy code: https://github.com/Nate711/Doggo
ODrive fork: https://github.com/Nate711/ODrive



Mechanical Design
Coaxial mechanism
The coaxial mechanism that drives each leg is definitely the most complex mechanical component of the robot. It has also been the most troublesome. The way it works is that we have two TMotor MN5212 motors mounted on the carbon fiber side panel. We also have a 3D printed bearing block that has two bearings to hold the outer coaxial tube. (Refer to the cutaway CAD view below). The two motors transfer power to the coaxial shafts via 6mm wide, 3mm pitch GT2 belts between a 16T pulley and a 48T pulley. We didn’t have room in our mass budget for regular, off-the-shelf pulleys, so we printed our own using the Xometry SLS service. As a side note, we learned to always specify to the service that the pulleys must be printed up. If the parts are printed at an angle, the geometry of the pulley teeth gets distorted because of the off-angle layers. Above the pulleys we have a waterjet aluminum bracket to maintain belt tension and thereby prevent skipping during high-torque situations. That said, it was a real pain to find the best center-to-center distance for the bracket because the slop in the connection between the motors and small pulleys, and the slop in the connection between the larger pulleys and the shafts meant that the center-to-center distance for the top bracket had to be 0.5mm larger than the nominal center-to-center distance prescribed by the belt supplier (SDP-SI). The biggest problem with this assembly was that the higher the belt tension, the more friction we had in the assembly. Higher friction means worse tracking performance for the motors, and also worse sensitivity to touch-down events and the like. On our next robot, we’re hoping to have smoother, more precisely machined pulleys, and less slop in the coaxial assembly.

CAD diagram


IRL


In operation


Legs

Doggo has four, 2DOF legs of the SCARA flavor. By SCARA flavor I mean that each leg is a five bar linkage and the two upper links are driven co-axially. The actual leg links were waterjet cut by Big Blue Saw, which is a great online service (although make sure to upload all your parts in one DXF to save money). The waterjet parts were actually precise enough that we did not need to ream the holes for the bearings.

Joints
For each joint, there are two deep groove ball bearings stacked next to each other in on link, and a shoulder bolt goes through them and threads into the opposing link.


Feet
The robot feet are silicone pieces that we made using a 3D printed, 2-part mold.



Frame

The frame of the robot is thankfully very simple. We have two waterjet, 4mm carbon fiber panels on each side, connected by two 1/32” 5052 aluminum sheet metal parts. These sheet metal parts were cut using a waterjet, and then folded up by hand (long story, but because the two carbon fiber panels are canted inwards, the tabs on the aluminum part couldn’t be folded on a brake).



Electronics
Doggo has four v3.5, 48V ODrives, two for each leg, mounted on the carbon fiber side panels. Sitting on a 2mm carbon fiber plate in the middle, we have a Teensy 3.5, a Sparkfun BNO080 IMU, and a 5mW Xbee. The Teensy talks to the ODrives over four separate UART lines, each operating at 500,000 baud. Underneath this plate, we have the power distribution board (a janky quadcopter PDB we found on Amazon), and a fancy Gigavac P105 Mini-Tactor relay so we can kill the robot power using an offboard ESTOP switch. We also put our two, 1000mah 6s Tattu lipo batteries down there.

Last, but not least, each motor has a AS5047P encoder to track the motor angle. We actually are only using the incremental interface, because at the time we built the robot, there was no absolute encoder support on the ODrive and we couldn’t make the index pin functionality work either.

Electronics schematic


ODrive layout


Top side of the middle electronics plate


The belly of the robot: Relay (translucent piece in the middle), PDB (golden board in front of the relay), and batteries (close and far).



Software

Overview

The Doggo software is relatively simple as far as things go. The gist of it is that we have a state machine that flips between different behaviors (like trot, jump etc), and for each behavior we send different position commands and gains to the four ODrives. We also have some helper threads running, like one to take IMU measurements, another to record telemetry from the ODrives, another to take commands over Xbee, etc.

Leg trajectories

The robot walks, trots, bounds, and pronks by commanding different sinusoidal open-loop trajectories to the four ODrives. The leg trajectories are composed of two halves of sinusoidal curves for the flight and stance phases shown in orange and purple in the picture. The geometric parameters of the sinusoids, the virtual leg compliance, and the duration of time that the leg spends traversing each sinusoidal segment, were varied to create different gaits.


At any given time, the Teensy computes the desired foot locations in cartesian coordinates, and then converts them to leg angles (θ) and leg separations (γ). These two numbers describe the virtual leg that originates at the hip joint of the leg and terminates at the foot.

These virtual leg parameters (theta and gamma) and their corresponding virtual stiffness and damping coefficients are sent from the Teensy to the four ODrives at the 100Hz refresh rate. The ODrives then run a custom PD controller to generate torques in theta-gamma space. The ODrives then use the Jacobian of the leg to transform torques in theta-gamma space into torques in the motor0-motor1 space.

ODrive Control
We implemented a custom binary UART protocol to send and receive data. The binary protocol is significantly faster than the ASCII protocol, which (I think) was the only protocol implemented for the Arduino when we built the robot. If you'd like more of the specifics, visit https://github.com/Nate711/Doggo/blob/master/lib/ODriveArduino/ODriveArduino.cpp

Woofer
This is a sneak peek at our new robot, Woofer. It is twice as large as Doggo and should jump more than 6ft in the air. Unlike Doggo, the legs can rotate out sideways. This will allow Woofer to perform more complicated maneuvers like twisting and running sideways!

nathankau.com
Palo Alto, California