Technical requirements
We require the Robot Operating System Version 2 (ROS 2) for this chapter. This book uses the Foxy Fitzroy release: http://wiki.ros.org/foxy/Installation. This chapter assumes that you have completed Chapter 6, where we gave the robot a voice and the ability to receive voice commands. We will be using the Mycroft interface and voice text-to-speech system, which is called Mimic: https://github.com/MycroftAI/mimic3. You’ll find the code for this chapter in the GitHub repository for this book at https://github.com/PacktPublishing/Artificial-Intelligence-for-Robotics-2e.
We will also be using the Keras library for Python (https://keras.io), which is a powerful library for machine learning applications and lets us build custom neural networks. You can install it using the following command:
pip install keras
You will also need PyTorch, which is installed with this command:
pip3 install torch torchvision torchaudio --index-url https://download.pytorch...