Skip to content

Setting Up the Development Environment

OriginMan supports development via SSH remote login. If you're not comfortable with remote command-line development, you can also set up a visual development environment on your PC. Here we'll explain how to use VSCode for remote development.

Installing VSCode

VSCode officially provides installation packages for various operating systems. You can choose the download based on your operating system.

VSCode Download Link

image-20220822152238623

After downloading, double-click the installation package and follow the prompts to complete the installation.

Hint

If you're operating in an Ubuntu environment, please download the .deb installation package. After downloading, you can install it using the following command:

$ sudo dpkg -i filename.deb

Installing the SSH Extension

Open the installed VSCode, select "Extensions" on the right side, search for "ssh" in the search bar, find the "Remote - SSH" extension, and click install.

image-20220822152736520

After installation, a "Remote Explorer" will appear on the left side of VSCode.

image-20220822152836841

Configuring Remote Connection

Click on the newly appeared "Remote Explorer" on the left side of VSCode, then click the "+" add button.

image-20220822153058599

In the popup prompt, enter the complete ssh command and press Enter.

image-20220822153155393

Then select the first default configuration file to save the ssh command information you just entered.

image-20220822153222888

After successful saving, you can also open the configuration file as prompted. This way, you won't need to fill in the information for future remote logins. Additionally, the IP address of the remote target will be added to the list on the left.

image-20220822153333890

Connecting to the Remote Server

Right-click on the IP address of the remote server, then select to open in the current window.

image-20220822153531561

A new window will open quickly. Next, enter the target server's user password: root.

2022-08-22_15-43

After a moment, you'll be successfully logged in.

2022-08-22_15-44

Select "Open Folder".

2022-08-22_15-44_1

Then we select OriginMan's workspace. The userdata is located slightly lower down; you can see it by scrolling with your mouse wheel.

2022-08-13_01-34

Now we can remotely access the code on OriginMan, make modifications at any time, and they will be synchronized to the robot in real-time. Additionally, we can launch multiple terminals in the connected VSCode, making it convenient to input various commands that run on OriginMan.

2022-08-22_15-46

Image1