Control Systems -- Advanced Topics
Overview
Christian Hubicki explains how a Digit bipedal robot can combine nested control loops, inverse dynamics, and task-space control to turn desired motion into motor torques. He connects torque limits to quadratic programs solved with OSQP at roughly 1,000 updates per second, then explains why convex optimization scales better than searching nonconvex problems and how gradient descent also underlies neural networks and reinforcement learning.
Key takeaways
- Digit's controller operates at about 1,000 updates per second, using an outer motion-planning loop and an inner torque-control loop for its 20 motors.
- Inverse dynamics uses the robot's current state and desired joint acceleration to calculate the torques needed to produce that motion.
- A constrained QP can choose the closest achievable acceleration when motors saturate, and OSQP solves such optimization problems in the robot's real-time control loop.
- Task-space control lets a robot prioritize outcomes such as hand position, foot placement, or center-of-mass motion, using the Jacobian to relate those goals to joint movement.
- Convex costs make optimization tractable because local minima are global minima; brute-force search across 20 torque variables would otherwise grow as N²⁰.
- Gradient-based optimization connects robotics and machine learning: control can minimize tracking error, while reinforcement learning adjusts policies to maximize reward.
Chapters
- The final project report and five-minute presentation are due by 5:00 p.m. Friday of finals week.
- Presentations can be submitted as an MP4 or an accessible YouTube link, including an unlisted video.
- Every team member should speak; Christian Hubicki suggests recording a shared-screen presentation over Zoom.
- Hubicki plans to announce when exams are ready for pickup and keeps office hours during finals week.
- Hubicki introduces Digit, a bipedal robot that computes torques for 20 motors every millisecond, or about 1,000 times per second.
- An inner loop controls joint torques, while an outer loop determines motion goals such as walking forward, backward, or sideways.
- The outer planning layer can specify a desired movement, while a lower-level controller converts it into motor commands.
- The example motivates methods for controlling nonlinear, multi-input, multi-output robotic systems.
- For a multi-joint arm, separately tuned PD controllers can behave differently when a new load, such as a weight in the hand, changes the system's inertia.
- The multi-body dynamics model is written as τ = M(q)q̈ + h(q, q̇), where M is the configuration-dependent inertia matrix and h collects bias forces.
- The joint vector q represents angles such as shoulder and elbow positions; the torque vector τ covers forces at multiple joints.
- Simulation tools such as MuJoCo can provide the inertial quantities needed by the equations of motion.
- Instead of commanding torque directly with a PD law, a controller can first specify the desired joint acceleration.
- Given the current positions and velocities, the dynamics equation maps that desired acceleration to the required torque.
- This mapping is called inverse dynamics because it starts with motion and solves for the forces that produce it.
- Hubicki notes that Featherstone-style algorithms make repeated rigid-body dynamics calculations fast enough for real-time control.
- A requested acceleration may be infeasible when a robot's motors have limited torque.
- The controller can treat each joint torque as a decision variable and impose upper and lower bounds as optimization constraints.
- Inequalities can be written in the form g(w) ≤ 0; an equality such as w = 0 can be represented by two opposing inequalities.
- The goal becomes finding feasible torques that produce acceleration as close as possible to the desired acceleration.
- Minimizing a signed acceleration error directly can drive the result in the wrong direction, so Hubicki uses a squared error cost.
- A squared tracking error has a smooth, bowl-shaped curve with a minimum of zero when actual and desired accelerations match.
- Gradient descent iteratively follows the cost slope toward a minimum, making the smooth quadratic form useful for optimization.
- The optimization returns the torque vector that minimizes tracking error while satisfying the motor constraints.
- A quadratic cost with linear torque constraints forms a quadratic program, or QP, that can be solved quickly.
- Hubicki describes the robot using OSQP to solve a QP at each roughly one-millisecond control update.
- This real-time approach is called implicit control: the controller specifies goals and constraints, and an optimization algorithm computes the command.
- Unlike basic pole-zero controller design, a QP can account for torque saturation and redistribute effort across motors.
- Task-space control defines goals in terms of useful outcomes, such as moving a hand to a pen, rather than prescribing every joint angle.
- A task mapping z = f(q) relates joint positions to task coordinates; its Jacobian gives task velocity as ż = Jq̇.
- Differentiating again gives task acceleration as z̈ = Jq̈ + J̇q̇.
- Digit's controller can target quantities such as the center of mass and foot positions instead of specifying every knee and shoulder motion.
- A physical disturbance such as a poke changes the robot's state, not the underlying equations of motion.
- At each control cycle, compiled functions take the latest joint positions and velocities and return updated dynamics quantities.
- Motor limits and the robot's task-space definitions generally remain fixed while current measurements change.
- When a robot must choose between different modes, such as standing and stepping away, Hubicki describes evaluating both models, which roughly doubles computation.
- For a convex cost, any local minimum is also a global minimum, so gradient-based methods can reach the best solution without checking every candidate.
- A brute-force grid over N values per decision grows from N possibilities for one variable to N² for two and N²⁰ for 20 torque decisions.
- Hubicki calls this rapid growth the curse of dimensionality and points to Richard Bellman's dynamic programming as an approach developed to address related challenges.
- Boyd and Vandenberghe's free online textbook Convex Optimization is recommended for deeper study.
- Neural-network loss functions are generally nonconvex, so gradient descent can encounter local minima rather than a guaranteed global solution.
- Training methods improve basic gradient descent through techniques such as different gradient sampling and step-size strategies.
- Hubicki identifies Adam as a widely used gradient-based optimizer with additional terms beyond the basic update.
- The same general optimization idea appears in controller design and machine-learning model training.
- Hubicki describes a robotics control stack in which one QP plans motion and another QP converts that plan into torques, with updates about 1,000 times per second.
- Deep reinforcement learning uses neural networks to learn control policies by optimizing a reward function.
- In reinforcement learning, the objective is to increase reward, conceptually using gradient ascent rather than minimizing a cost.
- Thumbs-up and thumbs-down feedback on chatbots can serve as reward signals that help improve model behavior.
Transcript excerpt
0:13 All right, folks. Good morning. >> All right, so this is the last lecture of the term. I'll make sure you can see my my board here. Excuse me. All right. There we go. All right, last lecture of the term. So, I do want to give you some updates here. So, I don't have their exams with me right now, but as soon as they're ready to pick up from me or from the TA, I will email I will send out an Canvas announcement. Okay, perilously close. I should have all my other classes exams done in the next hour after class. And then after that, I hopefully be able to back finish up what I have remaining of your class. Okay? So look look for an announcement as to where to pick them up if you want to take a look. Okay. So Ji, I'll hand you
1:01 the exams as soon as they're done. Okay. We'll arrange a time to pick up. All right. But for today, I want to do a few things. I want to number one talk about the end of semester. Okay. Everything from this point on is due is 5:00 p.m. on Friday of finals week. Okay. There will be a submission portal for your report.
1:53 and a video of your five minute presentation. Okay, so that can be an MP4. Please don't give me an exotic codec. I will be annoyed. Okay, or you can even give it some kind of YouTube link. either way, some kind of link that's publicly available. Sometimes people, if you want to, if you have your own Google account, you can upload a YouTube video that you don't want listed on the internet, you can create an unlisted YouTube video where you provide a link and and you can still
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Christian Hubicki.