xiaoqiang tutorial (1) Basic operation introduction and remote control in LAN

Xiaoqiang Homepage

Basic operation introduction and remote control in LAN

before the start

The following tutorial focuses on the use of various features of Xiaoqiang and does not include the teaching of ROS. If you are a beginner of ROS, follow up on the ROS basics while following the tutorials. Please don't just follow our tutorial and enter instructions. Understand the specific meaning of each command please. When you have problems, you should also be good at finding reasons by yourself, which will be helpful for future work and study. If you haven’t understood about tutorials or ROS, please feel free to ask questions in slack.

Xiaoqiang HomePage

Buy Xiaoqiang

Buy Xiaoqiang mini

First of all, please connect the xiaoqiang wires according to the wire label prompts. The complete structure is shown in the figure below.

0_1537596072519_1489979804868-接线1-resized.png

1.Configure the Xiaoqiang network

First connect Xiaoqiang's host computer with monitor(Xiaoqiang Pro users please use the included HDMI to VGA adapter to connect, Xiaoqiang Mini users please use vga directly), The mouse and keyboard connected to the host computer. Then turn on the host computer and enter the Ubuntu system.

xiaoqiang's default password is xiaoqiang

Click on the location of the icon below and select the desired wireless network

0_1536137397981_3705dec4-fa37-480a-a416-da6884d40335-image.png

After accessing the network, click on the marked position in the figure below to get Xiaoqiang's actual ip address. Follow-up tutorials will use this ip information frequently.

0_1536137458623_080b459a-dfd7-4078-b5da-e200d5430c27-image.png

0_1536137475415_0c08e8a5-4d7c-47ed-b98e-42971f364f33-image.png

Xiaoqiang's ROS default working directory is here

0_1536137500534_b4c02a6c-6e02-4d37-bac6-8dcec286195d-image.png

Now that Xiaoqiang has been configured, the keyboard, mouse, and monitor can be unplugged after power off. The next time Xiaoqiang is powered on, it can be used directly.

2. Local configuration

The local remote control end is preferably an x86 host with ubuntu 16.04 64 bit operating system installed. If you only have a windows platform, you can install the vmware virtual machine. Download Vmware Player from here , and then install ubuntu in the virtual machine. Mirror download and installation tutorial, it is recommended to install Xiaoqiang iso image(already configured ROS). Finally, ensure that the virtual machine be on the same LAN as Xiaoqiang.

Note The virtual machine NIC is to be set as a bridge, as shown in the following figure. Otherwise the virtual machine will not be able to link the xiaoqiang. If you are unable to connect to xiaoqiang, you can turn off your computer's firewall and try again.

0_1536137542540_8ffdbb07-5b33-4d1e-b401-99072362ca19-image.png

Start Ubuntu system configuration after system deployment

a.Install ssh, screen, if you install Xiaoqiang mirror please skip this operation

sudo apt-get install ssh screen

b.Install ros kinetic, if you install Xiaoqiang mirror please skip this operation, the official tutorial

c.Users who installed Xiaoqiang system image, please turn off startup service to avoid conflicts with Xiaoqiang

sudo service startup stop
rosrun robot_upstart uninstall startup

d.Users who installed Xiaoqiang mirror, please update Xiaoqiang_udrf package according to Xiaoqiang model(Pro?mini)

cd ~/Documents/ros/src/xiaoqiang_udrf
git stash
git pull
# Xiaoqiang pro user, please switch to the master branch
git checkout master
# Xiaoqiang mini user, please switch to mini branch
git checkout mini

e.Because the follow-up needs to frequently change the files on the Xiaoqiang host, we will now add the Xiaoqiang host remote directory to the local computer so that the file on the Xiaoqiang host can be graphically operated locally (the Xiaoqiang host is equivalent to the external hard disk of the local ubuntu system).

Click on the icon in the figure below to add the remote directory

0_1536137711056_c894e3d5-5dbb-4f5f-a49a-acb15f1a254f-image.png

Enter Xiaoqiang's remote directory. Replace ip with the actual ip address mentioned above.

0_1536137753009_ef071d13-799f-4a11-bd2b-46f96c16aa7c-image.png

Enter the Xiaoqiang host username and password as prompted.

If everything is normal, the home directory of the Xiaoqiang host has been opened. For future convenience, this address can be added to the bookmark.

0_1536137789459_2da6fb4b-fefa-4930-bacb-435fea58a303-image.png

You click on this bookmark directly next time, you will be able to access the home directory of the Xiaoqiang host.

0_1536137830360_e71caaee-e1ca-4727-b3af-e98bb2e93c8a-image.png

It is recommended to install the vscode editor (already installed in xiaoqiang system image), and it is convenient to code and edit the software package on the Xiaoqiang host.

0_1537601636329_1537601557728-6c9d1a78-ef32-43b2-9375-3a588a2eafc8-image-resized.png

e.Now that you have the full development and use environment of Xiaoqiang, for example, ssh logs in to the Xiaoqiang host and begins to use the keyboard to remotely control Xiaoqiang’s movement.

  1. Open a terminal on the local machine

  2. Connect to xiaoqiang via ssh, replace xxx with actual ip

     ssh xiaoqiang@xxx.xxx.xxx.xxx
    
  3. Start remote program

     rosrun nav_test control.py
    
  4. You can start controlling the movement of Xiaoqiang through the arrow keys. Spacebar is the stop button. Press Ctrl + C to exits the program.

Xiaoqiang's mobile control is achieved by issuing a topic named /cmd_vel,This topic is the Twist type under geometry_msg, Its release method please refer to ros official document. The control.py source code on Xiaoqiang is also a good reference example.

FAQ

Q: The car can only go forward and not back, or can only move back.
A: Check whether the car's infrared sensor is triggered and the sensor will light up after triggering. After the infrared trigger, the car cannot move in the corresponding direction.

Xiaoqiang Homepage Back To Index

results matching ""

    No results matching ""