3. Getting Started
This Section mainly introduces the basic operation and use of the SCOUT MINI platform and also introduces how to conduct secondary development of the vehicle body via the external CAN ports and CAN bus protocol.
3.1 Use and operation
The basic operating procedure of startup is shown as follows:
Check
Check the condition of the vehicle body. Check whether there are significant anomalies; if so, please contact the after-sale service personnel for support.
Startup
Press the SCOUT MINI power button and wait for a few seconds; Move SWB to the middle and choose the position to be controlled;
You can try to manually switch the light mode and make sure that the mode selection is correct;
Try to gently push the left rocker a little forward, then you can see the vehicle moves forward slowly;
Try to gently push the left rocker a little backward, then you can see the vehicle moves backward slowly;
Release the left rocker, then the vehicle will stop;
Try to gently push the right rocker a little leftward, then you can see the vehicle rotates leftward slowly;
Try to gently push the right rocker a little rightward, then you can see the vehicle rotates rightward slowly;
Release the right rocker, then the vehicle will stop;
Try to control freely in the relatively open area, and get familiarized with the vehicle moving speed.
Shutdown
Press the SCOUT MINI power button to release.
Basic operating procedure of remote control
After SCOUT MINI mobile chassis is started correctly, turn on the RC transmitter and select the remote-control mode. Then, the SCOUT MINI platform motion can be controlled by the RC transmitter.
3.2 Charging
SCOUT MINI is equipped with a 10 A charger by default to meet customers' charging demand. The detailed operating procedure of charging is shown as follows:
Make sure SCOUT MINI chassis is in power-off state.
Insert the charger plug into the charging interface on the rear of the vehicle;
Connect the charger to power supply and turn on the switch in the charger. Then, the robot enters the charging state.
Note: For now, the battery needs about 1.5 hours to be fully recharged from 22 V, and the voltage of fully-recharged battery is about 29.2 V; the recharging duration is calculated as 15 AH ÷ 10A = 1.5h.
3.3 Development
SCOUT MINI provides CAN interfaces for customization and development. Users can send command to control the chassis through the CAN interface.
3.3.1 CAN cable connection
SCOUT MINI provides a aviation plug as shown in Picture 3.2, the definitions of the wire are Yellow to CANH and Blue to CANL
Note: There is only the rear external extension interface available for the current SCOUT MINI version and it is able to provide up to 5A current.
3.3.2 Implementation of CAN command control
Power on SCOUT MINI and turn on the remote control, put the SWB switch to the top position to enable command control mode, so that SCOUT MINI would receive the data from the CAN interface, the host computer is able to receive the current status of the chassis with the can interface, please refer to the CAN protocol as below for detail.
3.3.3 CAN protocol
SCOUT MINI adopts CAN2.0B communication standard which has a communication baud rate of 500K and Motorola message format. Via external CAN bus interface, the moving linear speed and the rotational angular speed of chassis can be controlled; SCOUT MINI will feedback the current motion status information, SCOUT MINI chassis status information, etc. The protocol includes system status feedback frame, movement control feedback frame and control frame, the contents are shown as follows: The system status feedback command includes the feedback information about current status of chassis, control mode status, battery voltage and system failure. The description is given in Table 3.1.
[1]:It is available for V1.2.8 version or later, firmware upgrade is necessary for previous version. [2]:The buzzer will sound when the battery low-voltage warning , but the chassis is still controllable, and the power supply would be cut off when it comes to Low-voltage failure.
The motion control feedback frame includes the feedback of moving and rotation speed of chassis. Please refer to Table 3.3 for detail.
The motion control frame includes the controlling of linear speed and angular speed . Please refer to Table 3.4 for detail.
The control mode setting frame is used to set the terminal interface. Please refer to Table 3.5 for detail.
Description for control mode If SCOUT MINI is power on without the connection with remote control, the default control mode is stand by, the chassis would receive the control command only and not respond to the speed command, enable the CAN control mode before using the CAN control. If you power on the remote control, then the remote control has the highest priority, the chassis would switch the control mode based on remote control only.
The status clear frame is used to clear the system failures, please refer to table 3.6 for detail.
Note3]Testing data : The following data is sample for testing only.
1.The chassis moves forward at 0.15m/s.
2.The chassis rotates at 0.2rad/s.
In addition to the feedback of chassis status, there are also feedback data of the motor current information、encoder data and temperature. Please refer to the table below for the frame detail.
The number of the motor is shown in the picture below:
The front and the external light are also controlled by command, please refer to the Table3.10 below for detail.
Note[5] This value is only valid with customization mode
3.4 Firmware upgrade
To facilitate the customer's upgrading of the firmware version used by SCOUT MINI and bring the customer a better experience, SCOUT MINI provides a hardware interface for the firmware upgrading, and the corresponding client software as well. A screenshot of this application is shown in Figure 3.3.
Upgrade preparation:
Serial cable X 1
USB-to-serial port X 1
SCOUT chassis X 1
Computer (Windows operating system) X 1
Firmware update software
Upgrade procedure:
Before connection, ensure the robot chassis is powered off;
Connect the serial cable onto the serial port atinternal SCOUT MINI chassis;
Connect the serial cable to the computer;
Open the client software;
Select the port number;
Power on SCOUT MINI chassis, and immediately click to
start connection (SCOUT MINI chassis will wait for 6 s before power-on; if the waiting time is more than 6 s, it will enter the application); if the connection succeeds, "connected successfully" will be prompted in the text box; Load Bin file;
Click the Upgrade button, and wait for the prompt of upgrade completion;
Disconnect the serial cable, power off the chassis, and then turn the power off and on again.
3.5 SCOUT MINI ROS Package
ROS provide some standard operating system services, such as hardware abstraction, low-level device control, implementation of common function, interprocess message and data packet management. ROS is based on a graph architecture, so that process of different nodes can receive, and aggregate various information (such as sensing, control, status, planning, etc.) Currently ROS mainly support UBUNTU.
Development Preparation
Hardware preparation
CANlight can communication module ×1
Thinkpad E470 notebook ×1
SCOUT MINI mobile robot chassis ×1
SCOUT MINI remote control FS-i6s ×1
SCOUT MINI top aviation power socket ×1
Use example environment description
Ubuntu 16.04 LTS (This is a test version, tasted on Ubuntu 18.04 LTS)
ROS Kinetic (Subsequent versions are also tested)
Git
Hardware connection and preparation
Lead out the CAN wire of the SCOUT MINI top aviation plug or the tail plug, and connect CAN_H and CAN_L in the CAN wire to the CAN_TO_USB adapter respectively; Turn on the knob switch on the SCOUT MINI mobile robot chassis, and check whether the emergency stop switches on both sides are released; Connect the CAN_TO_USB to the USB hub of the laptop. The connection diagram is shown in Figure 3.4.
ROS installation and environment setting
For installation details, please refer to http://wiki.ros.org/KINETIC/INSTALLATION/UBUNTU
Test CANABLE hardware and CAN communication
Setting CAN-TO-USB adaptor
Enable gs_usb kernel module
$ sudo modprobe gs_usb
Setting 500k Baud rate and enable can-to-usb adaptor
$ sudo ip link set can0 up type can bitrate 500000
If no error occurred in the previous steps, you should be able to use the command to view the can device immediately $ ifconfifig -a
Install and use can-utils to test hardware
$ sudo apt install can-utils
If the can-to-usb has been connected to the SCOUT MINI robot this time, and the car has been turned on, use the following commands to monitor the data from the SCOUT MINI
$ candump can0
Please refer to:
[1]https://github.com/agilexrobotics/agx_sdk
[2]https://wiki.rdu.im/_pages/Notes/Embed%02ded-System/Linux/can-bus-in-linux.html
AGILEX SCOUT MINI ROS PACKAGE download and compile
Download ros package
$ sudo apt install ros-$ROS_DISTRO-controller-manager
$ sudo apt install ros-$ROS_DISTRO-teleop-twist-key-board
$ sudo apt install ros-$ROS_DISTRO-joint-state-publish-er-gui
$ sudo apt install libasio-dev
Clone compile SCOUT MINI code
$ cd ~/catkin_ws/src
$ git clone https://github.com/agilexrobot-ics/scout_mini_ros.git
$ cd ..
$ catkin_make
Please refer to: https://github.com/agilexrobot-ics/scout_mini_ros
Start the ROS node
Start the based node
$ roslaunch scout_bringup scout_minimal.launch
Start the keyboard remote operation node
$ roslaunch scout_bringup scout_teleop_key-board.launch
Start the gazebo bionic node
$ roslaunch scout_bringup scout_mini_base_gazebo_- sim.launch
Last updated