Install the robot foxy system from scratch

Due to a system crash of the industrial computer, it is necessary to reconfigure everything, and simply record it, so that it can be installed again later.

In the previous article, ubuntu20.04 has been installed. For those who have not installed it, refer to the previous article:

Install win10 ubuntu20.04 dual system from scratch -- non-virtual machine_JT_BOT's Blog-CSDN Blog

environment:

ubuntu20.04  ros2 foxy

This article is to reconfigure the foxy version of ros2 (the foxy version is selected because orb_slam3 runs through foxy, and other versions have not been tested).

Install the ssh service to facilitate other machines to remotely connect to this machine

Order:

sudo apt install openssh-server

Error:

m@ubun:~$ sudo apt install openssh-server
Waiting for cache lock: Failed to acquire lock /var/lib/dpkg/lock-frontend. Lock is being held by process 3315 (unatten is waiting for cached lock: Unable to acquire lock /var/lib/dpkg/lock-frontend. Lock is being held by process 3315 (unatten is waiting for cached lock: Unable to acquire lock /var/lib/dpkg/lock- frontend.lock is being held by process 3315 (unatten^Cd-upgr) for... 2 seconds

Reason for error: The last download or update exited midway, resulting in resources not being released.
Solution: sduo kill process number   

The ssh server installation is complete.

Two ros one-click installation (at present, the easiest installation method to install ros, there is no one, and other useful software can be installed):



wget http://fishros.com/install -O fishros && . fishros

 1 install foxy

After a short wait, foxy was installed successfully.

2 One-key configuration: rosdep 

Re-enter the one-key installation command:

wget http://fishros.com/install -O fishros && . fishros

For beginners, the installation of ros is indispensable. I still remember that when I first came into contact with ros, I followed various tutorials and official documents to install it. After 7-8 days, I couldn’t install it successfully. I almost gave up. The rosdep step, because the program is abroad, how can However, since I accidentally discovered Xiaoyu's one-click installation, I can easily resolve various installation problems, thank you Xiaoyu.

3 One-click installation: VsCode development tool

The vscode installation is complete, click on the 9 white dots in the lower left corner, find vscode, right click and add to favorites.

 Since then, the vscode installation has been completed (the biggest use of vscode is not only to edit code, but also to connect to the server remotely, just like remote desktop).

 4 Installed and tested

Start the little turtle to try

ros2 run turtlesim turtlesim_node //启动乌龟

Re-open a terminal, start the keyboard control program, and place the keyboard control window in the current window, otherwise the keyboard control will not work.

ros2 run turtlesim turtle_teleop_key //启动键盘控制

 The cute little turtle can move, and the installation of foxy is over.

Guess you like

Origin blog.csdn.net/m0_73694897/article/details/129896910