Installation and usage
Installation
File preparation
- The development is based on the 64-bit Ubuntu 20.04.1 system. Click here to download a pre-configured virtual machine of Ubuntu 20.04.1 based on VirtualBox software.
- Click here to download the VirtualBox software installation package for Windows system. For other system versions, please visit the VirtualBox official website for downloads.
Environment installation
- Install the VirtualBox software (please ensure the installation path does not contain Chinese characters);
- Open the downloaded folder named "Development Environment Virtual Machine" and follow the instructions in the "README.txt" file to install the virtual machine;
- After booting up, log in with the account "nbt" and the password "123".
Quick start project
Download the DEMO and compile the program
- Click here to download the DEMO file we prepared;
- Unzip the file to the home directory of the virtual machine;
- Compile the program by executing the following command in the terminal of the DEMO directory:
g++ -m32 -o nrc2.out *.cpp nrcAPI.h -L. -lNexRob -lpthread -lm -ldl -lrt -std=c++11
Transfer the file to the controller and run
Method 1
Compress the compiled nrc2.out into a .zip file and put it on a USB flash drive. Insert the USB flash drive into the teach pendant connected to the controller for program upgrade.
Method 2
Connect the computer to the teach pendant port of the controller. Use an SSH tool on the computer to remotely access the controller (username: inexbot, password: 123), and then execute the following commands:
cd /home/inexbot/robot //Navigate to the controller program execution directory
sudo killall -9 nrc2.out //Terminate the running program
Then replace the previous program with the newly compiled program, and finally start the program:
sudo ./nrc2.out
*Please make sure that there are no two nrc.out programs running simultaneously in the controller. Each time the controller restarts, the nrc.out program will automatically start. If you want to update the program or get terminal output, you need to close the original program before starting the new one, otherwise it may cause problems such as servos and network ports being occupied.