Lab 1 - Laboratory Introduction & Linux
Responsible: Ing. Jakub Minařík
This lab is going to make a brief introduction onto the environment that will be used for development and testing through the entire BPC-PRP course.
The following 3 chapters will take you through the installation and setup of the basic environment and you will practice the Linux CLI
Linux (1h)
Installation (optional)
To Install the Linux, please follow the Linux chapter.
Exercise
- Get familiar with the system's GUI.
- Open the command line and try navigating the file system.
- Practice your CLI skills. Commands overview in Linux chapter.
- check you current working directory
pwd
- create directory
mkdir
- enter created directory
cd
- create file
touch
- list directory content
ls
- rename file
mv
- copy file
cp
- remove file
rm
- create and remove directory
mkdir
andrm
- ...
- check you current working directory
- try some text editor
nano
,vim
I installed vim and accidentally opened it. What now?
You can exit vim with the following sequence: press ESC, release it, then hold LSHIFT and press Z twice. For those interested, a tutorial on using vim can be found here.More details about the Linux is going to be introduced during the course
ROS2 (30 min)
The ROS 2 (Robot Operating System 2) framework is a modern, open-source platform for developing robotic systems. It builds on the success of the original ROS while addressing the limitations of its predecessor, particularly in scalability, security, and real-time performance. Designed for a wide range of robotic applications, ROS 2 is suitable for research, education, and industrial use.
Key features of ROS 2 include a distributed architecture for modular development, enabling nodes (individual processes) to communicate efficiently. It employs the Data Distribution Service (DDS) middleware standard, providing robust and flexible communication mechanisms, including publish/subscribe and service/request paradigms.
ROS 2 supports multiple platforms, such as Linux, Windows, and macOS, making it versatile for diverse hardware and software ecosystems. It integrates well with modern tools and languages, offering Python and C++ APIs, among others. Real-time capabilities are significantly improved, ensuring precise control and response in time-critical robotic systems.
The framework includes a rich ecosystem of libraries and tools, such as Gazebo for simulation, RViz for visualization, and Nav2 for navigation. Its modular design encourages collaboration and code reuse, fostering an active global community. With ROS 2, developers can create scalable, reliable, and innovative robotics applications tailored to real-world challenges.
For installation and commands overview, please follow the chapter: Robotic Operating System.
CLion SDK (15 min)
Installation
Install CLion using the Snap package manager:
sudo snap install --classic clion
Alternatively, download the CLion IDE from the official website and get familiar with it (see CLion IDE). By registering with your school email, you can obtain a free software license.