3. Install Rosmaster driver library

3. Install Rosmaster driver library3.1 Declaration before installing driver library3.2 Downloading the Python Driver Library File3.3 Transferring Files to Jetson Nano3.4 Starting Installation3.5 Importing Library Files3.6. How to use the driver library basics3.7 API Introduction

3.1 Declaration before installing driver library

The latest driver library has already been installed in the cart's factory image system, so you don't need to repeat the installation. If you are not using the factory image, or the driver library has been updated, you need to install the driver library.

The path to install the driver library from the factory system: ~/Software/py_install

Please refer to the following steps to install the driver library, and take the V1.5.8 version as an example.

3.2 Downloading the Python Driver Library File

The latest version of Rosmaster Python driver library is provided in this course material, named py_install.zip.

The zip contains the following files:

image-20220316160547427

Or Yahboom official website in the Rosmaster material download area click [python driver library download] to download to the latest version of py_install.zip file.

image-20210904173442954

 

3.3 Transferring Files to Jetson Nano

If you are using the browser that comes with Jetson Nano to download the file from the AWS website, please download the file to a user-operable path, such as the desktop.

If you are using the driver library zip file in the information, or using a computer browser to download the driver library file, you can drag the driver library zip file into the Jetson Nano desktop via WinSCP software.

The driver library file can be deleted after successful installation.

image-20210904174213656

If you don't know how to use WinSCP to transfer files yet, please check the following web page for detailed installation and operation of WinSCP:

File Transfer (Jetson Nano 4 GB)

3.4 Starting Installation

Open the terminal of Jetson Nano and enter the following command to unzip it.

Go to the desktop and check if the file exists, the red box is the target file.

Unzip the file

image-20220325101116150

Note: The entire documentation is based on placing the py_install.zip archive on the Jetson Nano system desktop. If you have a different path where the zip is stored, please go to the corresponding directory according to the actual path.

Go to the folder of the driver library

Run the install command and see the version number at the end to indicate successful installation. This command will overwrite the previously installed Rosmaster_Lib driver library.

image-20220325101329200

 

3.5 Importing Library Files

The name of Rosmaster driver library is Rosmaster_Lib, use Rosmaster_Lib to import the library in the program.

 

3.6. How to use the driver library basics

For details, please check the video tutorial of this lesson.

Source Path: Rosmaster/Samples/3.test_rosmaster.ipynb

 

3.7 API Introduction

The following API profiles of the driver libraries are introduced later in the control course to introduce the functional usage and parameter contents.