Memuat
Memuat
Watch every step above performed live, with English narration.
0 plays
Class book
Page 1 / 5
Cover: Class Reinforcement Learning Robot Manipulator #6: Adaptive Testing against Load Changes & Disturbances, Performance Comparison
Click a page or use ◀ ▶ to turn · swipe on mobile · to enlarge
Want to go deeper?
Join one of our courses or ask us directly on WhatsApp.
Picked from the software, topic, and level of “Class Reinforcement Learning Robot Manipulator #6: Adaptive Testing against Load Changes & Disturbances, Performance Comparison”.
Other ways we can help with Python.
Learn with a mentor
Scheduled AI & Machine Learning courses with live guidance and a certificate.

Multi-Objective Optimization Course: NSGA-II, MOPSO & Hybrid Algorithms (Python)

ECG Arrhythmia Classification Course with Wavelet & Deep Learning (PyTorch)

ANFIS + PSO/GA Course for Non-Linear Time Series Forecasting (Python)
Have it built for you
No time to learn Python? Our team can do the project for you.

Python Machine Learning — Prediction Models, Customer Segmentation, Fraud Detection & AI Apps

AI Image Creation with Stable Diffusion — Unlimited Custom Visual Production
★ 4.9

AI Image & Video Creation with Leonardo AI — All-in-One Visuals for Business
★ 4.9
Get notified about new Python classes
At most one email a week. Unfollow anytime with one click.
The full narration of this video. The current sentence is highlighted while the video plays; click any sentence to jump there.
Here is the final result, four controllers are tested on unknown loads and disturbances. The perfect competitor in nominal conditions is actually the most affected when carrying a load, while our reinforcement learning agent remains accurate. Let's start. Hello, welcome to the final episode of the reinforcement learning robot manipulator control series. In the real world, robots lift objects of different weights and face unexpected disturbances. A controller that is only good in ideal conditions is not enough. Today, we will fairly test the four controllers under changing conditions.
Create a test file named underscore adaptive.py The SAC controller class wraps the agent into a regular controller, calculating PD torque, and if RL is used, it adds correction from the agent with exactly the same observations as during training. In this way, the four controllers are tested through the same simulation function from episode 3.
We load the SAC model from episode 5 and prepare 4 methods and 4 conditions. Nominal, 1.5 kg load, torque disturbance of 6 Nm starting from the fourth second, as well as load and disturbance occurring simultaneously. Run. In nominal conditions, the champion competitor has an error of 0.09 mm, and PD plus SAC is about 6 mm, much better than PID at 17 mm and PD alone at about 39 mm. But with an unknown 1.5 kg load, the competitor's error jumps to about 27 mm, worse than PID. PD plus SAC remains around 10 mm, because the agent has already learned to handle random loads during training.
Let's look at the graph. In the bar chart, the competitor's bar is almost invisible in nominal conditions but suddenly spikes when there is a load, whereas the PD plus SAC bar remains low and stable in all four conditions. The right graph shows the error when load and disturbance occur simultaneously, PD plus SAC has the smallest error throughout the time, including after the disturbance arrives at the fourth second. In conclusion, the correct model provides the highest accuracy, but reinforcement learning trained with randomization provides robustness when the model is incorrect.
That's it, and that's the end of this series. We have built a complete research on robot control, kinematics, Lagrange dynamics, PID and competitors, a gym environment with residual RL, soft actor-critic training, up to adaptive testing against load and disturbance. For further research, try combining the competitor with residual RL, three-joint manipulator, friction and nice sensors, or simulate it on a real robot. Thank you for following this series. Currently working on a thesis, dissertation, or research in the field of robotics and reinforcement learning? Cerdas Inovasi Digital helps with robot control implementation, From kinematics and dynamics of manipulators, PID and competitors, gym environment, up to soft actor-critic agent training, as well as opening Python programming courses for electrical engineering and mechatronics. Want to master the entire series, from robotic arm kinematics up to adaptive testing of reinforcement learning agents? All six episodes, complete with step-by-step PDF guides and source code, are available for premium tutorial subscribers. Subscribe starting at Rp69.000 per month, save 28% with the 12-month package, or one-time payment of Rp999.000 for lifetime access. Want just one class? Buy single classes with lifetime access. Subscribe now on the premium page cerdasinovasidigital.com Contact our WhatsApp, or visit cerdasinovasidigital.com Thank you for watching, see you in the next episode.
Type a question or keyword; we find the part of this episode that explains it and jump the video there.
Notes are saved with the current video time and are only visible to you.
Stuck on a step? Ask here; the instructor and other learners can answer.
No questions yet.

Cerdas Inovasi Digital Team
Software developers, BIM & 3D engineers, and AI practitioners
We build software, BIM models, games and AI automations for clients every day, and turn that hands-on work into step-by-step classes: every step is shown on screen and comes with a PDF guide you can keep.
See our clients →