CN110681133A - Bimodal control method for table tennis ball picking robot - Google Patents

Bimodal control method for table tennis ball picking robot Download PDF

Info

Publication number
CN110681133A
CN110681133A CN201911051357.1A CN201911051357A CN110681133A CN 110681133 A CN110681133 A CN 110681133A CN 201911051357 A CN201911051357 A CN 201911051357A CN 110681133 A CN110681133 A CN 110681133A
Authority
CN
China
Prior art keywords
robot
ball
table tennis
picking
host computer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911051357.1A
Other languages
Chinese (zh)
Inventor
范青武
王迪
杨凯
马帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing University of Technology
Original Assignee
Beijing University of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing University of Technology filed Critical Beijing University of Technology
Priority to CN201911051357.1A priority Critical patent/CN110681133A/en
Publication of CN110681133A publication Critical patent/CN110681133A/en
Priority to PCT/CN2020/087354 priority patent/WO2021082376A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63BAPPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
    • A63B47/00Devices for handling or treating balls, e.g. for holding or carrying balls
    • A63B47/02Devices for handling or treating balls, e.g. for holding or carrying balls for picking-up or collecting
    • A63B47/021Devices for handling or treating balls, e.g. for holding or carrying balls for picking-up or collecting for picking-up automatically, e.g. by apparatus moving over the playing surface
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63BAPPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
    • A63B67/00Sporting games or accessories therefor, not provided for in groups A63B1/00 - A63B65/00
    • A63B67/04Table games physically beneficial for the human body, modelled on outdoor sports, e.g. table tennis

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Physical Education & Sports Medicine (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)
  • Manipulator (AREA)

Abstract

本发明涉及一种用于捡乒乓球机器人的双模态控制方法。机器人的工作模式可通过上位机App进行切换,在自动巡航模式下,机器人由视觉系统获取视野中乒乓球的位置信息,并根据球的坐标调整姿态,寻找最佳的收集角度;在手动遥控模式下,上位机App通过蓝牙向机器人发送运动指令,控制机器人工作;机器人还具备避障功能,可在两种工作模式下自动规避障碍物。本发明优点如下:自动巡航与手动遥控两种工作模式可随意切换,配合避障功能,使用场景广泛;在自动巡航模式收集乒乓球时,机器人可以根据乒乓球坐标进行自身的姿态微调,并且消除了因视野范围和距离而对坐标产生的影响;整个算法的结构清晰严谨,不同功能对应不同线程,易于日常维护和二次开发。

Figure 201911051357

The invention relates to a dual-mode control method for picking up a table tennis robot. The working mode of the robot can be switched through the host computer App. In the automatic cruise mode, the robot obtains the position information of the table tennis ball in the field of view from the vision system, and adjusts the posture according to the coordinates of the ball to find the best collection angle; in the manual remote control mode The upper computer App sends motion commands to the robot through Bluetooth to control the robot's work; the robot also has an obstacle avoidance function, which can automatically avoid obstacles in two working modes. The advantages of the invention are as follows: the two working modes of automatic cruise and manual remote control can be switched at will, and with the function of obstacle avoidance, the application scene is widely used; when collecting table tennis balls in the automatic cruise mode, the robot can fine-tune its own posture according to the coordinates of the table tennis ball, and eliminate the The influence on the coordinates due to the field of view and distance is eliminated; the structure of the entire algorithm is clear and rigorous, and different functions correspond to different threads, which is easy for daily maintenance and secondary development.

Figure 201911051357

Description

一种用于捡乒乓球机器人的双模态控制方法A dual-mode control method for a ping-pong robot

技术领域technical field

本发明涉及机器人技术领域,具体涉及一种用于捡乒乓球机器人的双模态控制方法。The invention relates to the technical field of robots, in particular to a dual-mode control method for picking up a table tennis robot.

背景技术Background technique

随着人们对机器人技术智能化本质认识的加深,机器人技术开始源源不断地向人类活动的各个领域渗透。在这其中,服务机器人作为一个重要分支,在国内外研究领域已经得到普遍重视。服务机器人的应用范围很广,主要从事维护保养、修理、运输、清洗、保安、救援、监护等工作。本发明所涉及的捡球机器人,正是一种应用于乒乓球体育运动的自主式移动的服务机器人。With the deepening of people's understanding of the intelligent nature of robotics, robotics has begun to penetrate into all fields of human activities. Among them, service robots, as an important branch, have received widespread attention in the field of research at home and abroad. Service robots have a wide range of applications, mainly engaged in maintenance, repair, transportation, cleaning, security, rescue, monitoring and other work. The ball picking robot involved in the present invention is an autonomous mobile service robot applied to table tennis sports.

乒乓球训练场地较为开阔,运动员在训练过程中需要大量使用乒乓球,导致乒乓球会分散在在场地各处,而人工去捡拾乒乓球会浪费大量时间和精力。The table tennis training field is relatively open, and athletes need to use a lot of table tennis balls in the training process, resulting in table tennis balls scattered around the field, and manual picking up of table tennis balls will waste a lot of time and energy.

目前市场上已经有许多辅助工具可以帮助人们去收集乒乓球,但这些工具依然需要依靠人力去收集球,并没有将人从这项枯燥的工作中解放出来。At present, there are many auxiliary tools on the market that can help people to collect table tennis balls, but these tools still need to rely on manpower to collect the balls, and do not free people from this boring work.

申请号为201810308608.9的发明专利公开了一种捡球机器,其可通过收集斗的翻转和复位来将乒乓球铲进收集斗并最终送入收集筐中,但由于其并不能自动寻找、收集乒乓球,依然完全依赖于人的遥控。The invention patent with the application number of 201810308608.9 discloses a ball picking machine, which can shovel the table tennis balls into the collection bucket and finally send it into the collection basket through the overturning and reset of the collection bucket, but because it cannot automatically find and collect table tennis balls The ball is still completely dependent on human remote control.

申请号为201910121639.8的发明专利公开了一种可自动巡航收集乒乓球的机器人,但其并没有配备测距传感器,在巡航过程中无法躲避障碍物,且对于在障碍物旁边如墙根、桌角处的乒乓球收集难度非常大,总体上不能满足日常使用的全部需求。The invention patent with the application number of 201910121639.8 discloses a robot that can automatically cruise and collect table tennis balls, but it is not equipped with a ranging sensor and cannot avoid obstacles during the cruise. The collection of table tennis balls is very difficult, and generally cannot meet all the needs of daily use.

针对上述情况,本发明设计了一种用于捡乒乓球机器人的双模态控制方法,采用自动巡航和手动遥控双模的工作方式,在常规场景下使用自动巡航模式在场馆内巡航收集乒乓球;当球处于特殊位置或者想回收机器人时,可切换至手动遥控模式,通过上位机App发送运动指令,控制机器人工作,极大的提高了机器人的工作效率。In view of the above situation, the present invention designs a dual-mode control method for picking up a table tennis robot, which adopts the dual-mode working mode of automatic cruise and manual remote control. ; When the ball is in a special position or you want to recycle the robot, you can switch to the manual remote control mode, and send motion commands through the host computer App to control the work of the robot, which greatly improves the work efficiency of the robot.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于提供一种用于捡乒乓球机器人的双模态控制方法,所采用的具体技术方案如下:The object of the present invention is to provide a dual-mode control method for picking up a table tennis robot, and the specific technical scheme adopted is as follows:

一种用于捡乒乓球机器人的双模态控制方法工作示意图如图2所示,机器人有自动巡航和手动遥控两种工作模式,可通过上位机App进行切换,上位机App基于安卓平台开发,与机器人通过蓝牙通信,可实现对机器人的模式切换、避障功能开关、无线遥控和运行数据监控四种功能。A working schematic diagram of a dual-mode control method for a table tennis robot is shown in Figure 2. The robot has two working modes: automatic cruise and manual remote control, which can be switched through the host computer App. The host computer App is developed based on the Android platform. Communication with the robot through Bluetooth can realize four functions of mode switching, obstacle avoidance function switch, wireless remote control and operation data monitoring of the robot.

进一步的,自动巡航模式中:机器人在整个场地中进行巡航,通过视觉系统识别并定位视野中的乒乓球,当识别到乒乓球时,机器人对自身进行姿态微调并执行收集操作;Further, in the automatic cruise mode: the robot cruises in the entire field, and recognizes and locates the table tennis balls in the field of vision through the vision system. When the table tennis balls are recognized, the robot fine-tunes its posture and performs collection operations;

进一步的,手动遥控模式中:上位机App通过蓝牙与机器人连接,发送运动指令,机器人在收到指令后将其翻译为串口指令,交由协处理器处理后驱动车体完成指定运动。Further, in the manual remote control mode: the host computer App is connected to the robot through Bluetooth, and sends motion commands. After the robot receives the commands, it translates them into serial port commands, which are processed by the coprocessor and drive the car body to complete the specified motion.

进一步的,避障功能开启时:程序实时接收自超声波距离传感器传回的距离信息,若与障碍物间距小于15cm,则执行避障操作。Further, when the obstacle avoidance function is turned on: the program receives the distance information returned from the ultrasonic distance sensor in real time, and executes the obstacle avoidance operation if the distance from the obstacle is less than 15cm.

本发明有如下优点:The present invention has the following advantages:

1)采用自动巡航、手动遥控两种工作模式并可随意切换,配合以避障功能,使用场景非常广泛;1) Two working modes of automatic cruise and manual remote control are adopted and can be switched at will. With the function of obstacle avoidance, the use scenarios are very wide;

2)在自动巡航模式收集乒乓球时,其算法经过优化,使得机器人可以根据乒乓球坐标进行自身的姿态微调,并且消除了因视野范围和距离而对坐标产生的影响;2) When collecting table tennis balls in automatic cruise mode, its algorithm is optimized so that the robot can fine-tune its own posture according to the coordinates of the table tennis balls, and eliminates the influence of the field of view and distance on the coordinates;

3)整个算法的结构清晰严谨,不同功能对应不同线程,易于日常维护和二次开发。3) The structure of the entire algorithm is clear and rigorous, and different functions correspond to different threads, which is easy for daily maintenance and secondary development.

附图说明Description of drawings

图1是实施例中捡乒乓球机器人的结构示意图;Fig. 1 is the structural representation of picking up table tennis robot in the embodiment;

图2是捡乒乓球机器人的工作示意图;Fig. 2 is the working schematic diagram of picking up table tennis robot;

图3是本发明中上位机App流程图;Fig. 3 is the flow chart of the host computer App in the present invention;

图4是本发明中上位机App界面;Fig. 4 is the host computer App interface in the present invention;

图5是本发明中手动遥控的流程图;Fig. 5 is the flow chart of manual remote control in the present invention;

图6是本发明中自动巡航模式的流程图;Fig. 6 is the flow chart of automatic cruise mode in the present invention;

图7是本发明中避障功能的流程图;Fig. 7 is the flow chart of obstacle avoidance function in the present invention;

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面结合附图和具体实施例对本发明作进一步详细描述,但不作为对本发明的限定。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments, but it is not intended to limit the present invention.

具体实施方式:Detailed ways:

如图1所示,实施例中捡乒乓球机器人由捡球装置和车体两部分组成,捡球装置为利用滚珠轴承、长螺杆、硬板、软质毛刷等材料组成的带有扇叶的滚筒结构,通过电机、皮带、定滑轮的组合带动扇叶转动,捡球时,毛刷带动乒乓球沿着斜坡进入储球装置,从而实现对乒乓球的收集,此外,捡球装置上还安装有视觉传感器和超声波距离传感器;车体部分为上下两层结构,上层放置有主、协两级处理器、锂电池以及带动捡球装置扇叶转动的电机;下层安放的是储球装置,其为敞口长方体盒状,开口向着车体前端,对被捡球装置收集到的乒乓球进行储存,下层底盘装有四个麦克纳姆轮及其控制电机,可使车体实现360°任意方向移动。As shown in Figure 1, in the embodiment, the table tennis robot is composed of two parts: a ball picking device and a car body. The ball picking device is a ball bearing, long screw, hard plate, soft brush and other materials with fan blades The roller structure, through the combination of motor, belt and fixed pulley, drives the fan blade to rotate. When picking up the ball, the brush drives the table tennis ball to enter the ball storage device along the slope, so as to realize the collection of table tennis balls. Visual sensors and ultrasonic distance sensors are installed; the body part is a two-layer structure, and the upper layer is placed with a main and auxiliary two-level processor, lithium battery and a motor that drives the rotation of the fan blades of the ball picking device; the lower layer is placed with a ball storage device. It is in the shape of an open cuboid box, with the opening facing the front end of the car body, and stores the table tennis balls collected by the ball picking device. The lower chassis is equipped with four Mecanum wheels and their control motors, which can make the car body 360° arbitrary. direction move.

如图2所示,捡乒乓球机器人的工作模式可以由上位机App切换,在自动巡航模式中机器人的主控程序根据传感器传回的图像信息,对视野中的乒乓球进行识别和定位,驱动机器人调整姿态并收集乒乓球;在手动遥控模式中,App与机器人通过蓝牙通信,发送运动指令,经程序翻译后驱动车体完成指定运动;避障功能的开关也由上位机App控制,在开启时,程序通过超声波距离传感器监测机器人与障碍物间的距离,并在其小于预设值时执行避障操作;在机器人工作时产生的重要数据,会通过蓝牙实时发送至App并显示在其主界面上,以便用户监控机器人的运行状态。As shown in Figure 2, the working mode of the ping-pong ball picking robot can be switched by the host computer App. In the automatic cruise mode, the main control program of the robot can identify and locate the ping-pong ball in the field of vision according to the image information returned by the sensor, and drive the The robot adjusts its posture and collects table tennis balls; in the manual remote control mode, the App communicates with the robot through Bluetooth, sends motion commands, and drives the car body to complete the specified motion after the program is translated; the switch of the obstacle avoidance function is also controlled by the host computer App, when it is turned on When the robot is running, the program monitors the distance between the robot and the obstacle through the ultrasonic distance sensor, and executes the obstacle avoidance operation when it is less than the preset value; the important data generated when the robot is working will be sent to the App in real time through Bluetooth and displayed on its main page. interface, so that users can monitor the running status of the robot.

App设计:App Design:

如图3所示,上位机App基于安卓开发,在其工作时,首先获取BluetoothAdapter对象,判断设备是否支持蓝牙、蓝牙是否开启,如果未开启则调用openBlueSync方法提示用户开启蓝牙,待蓝牙开启后调用startLeScan和connectGatt方法扫描、连接蓝牙串口模块,与模块配对成功建立稳定连接后即可开始通信,整个通信的读写过程都在BluetoothGattCallback的异步回调函数中完成,待全部通信完成后,软件会调用BluetoothGatt中的disconnect与close方法断开与机器人蓝牙模块的连接。As shown in Figure 3, the host computer App is developed based on Android. When it is working, it first obtains the BluetoothAdapter object to determine whether the device supports Bluetooth and whether Bluetooth is turned on. If it is not turned on, the openBlueSync method is called to prompt the user to turn on the bluetooth. After the bluetooth is turned on, call the The startLeScan and connectGatt methods scan and connect the Bluetooth serial port module, and the communication can start after the module is successfully paired and a stable connection is established. The entire communication read and write process is completed in the asynchronous callback function of BluetoothGattCallback. After all communication is completed, the software will call BluetoothGatt The disconnect and close methods in disconnect the connection with the robot's bluetooth module.

如图4所示,在上位机App的主界面中,最上方显示的是App与机器人的连接状态1,在其下方的两个按钮2、3,分别对应着机器人模式的切换和避障功能的开关,可通过点击相应按钮来改变机器人的工作状态;机器人遥控组件4、5位于界面中部,拖动中央的摇杆4可控制机器人向八个方向运动,摇杆下面的两个箭头状按钮5.1、5.2可使机器人沿对应方向自转;主界面最下方的灰色框体6是数据监视栏,机器人当前的工作数据会在栏中实时更新,包括开(关)机、视野中乒乓球的信息、接收到的运动指令以及与障碍物的距离等等。As shown in Figure 4, in the main interface of the host computer App, the connection status 1 between the App and the robot is displayed at the top, and the two buttons 2 and 3 below it correspond to the robot mode switching and obstacle avoidance functions respectively. You can change the working state of the robot by clicking the corresponding button; the remote control components 4 and 5 of the robot are located in the middle of the interface, drag the joystick 4 in the center to control the robot to move in eight directions, and the two arrow-shaped buttons below the joystick 5.1, 5.2 can make the robot rotate in the corresponding direction; the gray frame 6 at the bottom of the main interface is the data monitoring column, the current working data of the robot will be updated in real time in the column, including the information of on (off) the machine and table tennis in the field of vision , received motion commands, and distance to obstacles, etc.

手动遥控模式的设计:Design of manual remote control mode:

如图5所示,手动遥控模式中上位机App需要与机器人的蓝牙模块建立连接,相互传递数据;在主控程序中,各功能运行于不同线程上,互不干扰,App发送的改变模式或开关功能的指令通过阻塞、激活相应线程即可实现;如果App发送的是遥控指令,两级处理器会将指令翻译为串口指令并最终生成PWM波控制编码器,带动车体完成指定运动。As shown in Figure 5, in the manual remote control mode, the host computer App needs to establish a connection with the robot's Bluetooth module to transfer data to each other; in the main control program, each function runs on different threads without interfering with each other, and the mode sent by the App changes or The command of the switch function can be realized by blocking and activating the corresponding thread; if the App sends a remote control command, the two-level processor will translate the command into a serial port command and finally generate a PWM wave to control the encoder, driving the car body to complete the specified movement.

机器人的串口指令格式见表1:The serial port command format of the robot is shown in Table 1:

表1Table 1

Figure BDA0002255408820000051
Figure BDA0002255408820000051

一个完整的串口指令包含十个字节,其中前三个字节是固定的指令头,第4个字节是X轴速度的高8位,第5个字节是X轴速度的低8位,之后的四个字节分别对应Y轴和Z轴速度。最后一个字节用来指定各个轴的正方向,机器人最终的运动即是三轴运动的矢量合。过程中用户遥控的信息会实时的传送给上位机App显示。A complete serial port command contains ten bytes, of which the first three bytes are the fixed command header, the fourth byte is the high 8 bits of the X-axis speed, and the fifth byte is the low 8 bits of the X-axis speed. , and the following four bytes correspond to the Y-axis and Z-axis speed respectively. The last byte is used to specify the positive direction of each axis, and the final motion of the robot is the vector sum of the three-axis motion. During the process, the information of the user's remote control will be transmitted to the host computer App in real time for display.

自动巡航模式的设计:Design of automatic cruise mode:

如图6所示,自动巡航模式下有两种状态:巡航状态和捡球状态;As shown in Figure 6, there are two states in automatic cruise mode: cruise state and ball picking state;

当视野中没有乒乓球时,机器人处于巡航状态,巡航过程中,机器人沿当前方向前进,当遇到障碍物时,后退一小段距离,向没有障碍物的方向转75度,若两边都有障碍物,则重复上述操作,当视觉系统识别到球后,机器人切换到捡球状态;When there is no ping-pong ball in the field of vision, the robot is in a cruise state. During the cruise, the robot moves forward in the current direction. When encountering an obstacle, it retreats a short distance and turns 75 degrees in the direction without obstacles. If there are obstacles on both sides object, then repeat the above operation, when the vision system recognizes the ball, the robot switches to the state of picking up the ball;

捡球状态分为调整阶段和收集阶段:The state of picking up the ball is divided into an adjustment stage and a collection stage:

调整阶段:由于机器人的视野范围是一个扇形,再加之透视原理和图像传感器的震动,导致直接用首次识别到的坐标进行处理,会降低收集成功率。因此,在识别到球后需要先进入调整阶段校准球的位置与机器人的朝向,原理如下,在实施例中机器人所采用的摄像头分辨率为640*480,视野范围约60度,经过反复的理论和实验论证,证明在机器人与乒乓球间距20至40厘米时,球的x坐标处于180至370之间收集效果最好,在机器人与球间距40至60厘米时,最佳收集区间为200至340。在工作时,当机器人识别到乒乓球后会暂停移动,再次精确识别球的坐标,之后根据其半径大小估算与机器人的距离,选择合适的最佳收集区间,依据乒乓球位置坐标与最佳收集区间坐标的差值不断进行姿态调整,直到乒乓球位于最佳收集区间,进入收集阶段;Adjustment stage: Since the field of view of the robot is a sector, coupled with the principle of perspective and the vibration of the image sensor, the coordinates that are identified for the first time are directly used for processing, which will reduce the success rate of collection. Therefore, after recognizing the ball, it is necessary to enter the adjustment stage to calibrate the position of the ball and the orientation of the robot. The principle is as follows. In the embodiment, the resolution of the camera used by the robot is 640*480, and the field of view is about 60 degrees. After repeated theoretical analysis And the experimental demonstration proves that when the distance between the robot and the table tennis ball is 20 to 40 cm, the collection effect of the ball's x coordinate is between 180 and 370. When the distance between the robot and the ball is 40 to 60 cm, the best collection interval is 200 to 340. During work, when the robot recognizes the ping pong ball, it will pause the movement, accurately identify the coordinates of the ball again, and then estimate the distance from the robot according to its radius, and select the appropriate optimal collection area. The difference between the interval coordinates is continuously adjusted until the table tennis ball is in the best collection interval and enters the collection stage;

收集阶段:依据估算的距离,得出大致的移动时间并驱动车体运动,若执行一次收集操作后,还能在视野中识别到乒乓球,则机器人返回捡球状态的调整阶段继续捡球,若视野中不存在乒乓球,则转变为巡航状态。Collection stage: According to the estimated distance, the approximate moving time is obtained and the vehicle body is driven to move. If a table tennis ball can still be recognized in the field of vision after performing a collection operation, the robot returns to the adjustment stage of the ball picking state and continues to pick up the ball. If there is no ping pong ball in the field of vision, it will change to the cruise state.

在自动巡航模式中,机器人的工作数据会实时上传到上位机App,方便用户对机器人进行监控和维护。In the automatic cruise mode, the working data of the robot will be uploaded to the host computer App in real time, which is convenient for users to monitor and maintain the robot.

避障功能的设计:Design of obstacle avoidance function:

如图7所示,避障功能可在上位机App上开启或关闭;当功能开启后,程序实时接收来自超声波距离传感器传回的距离信息,若与障碍物间距小于预设值15cm,则执行避障操作;机器人原地向左右转动,确认左右是否存在障碍物,确认完毕后机器人向没有障碍物的方向转75度,若两边都存在障碍物,则机器人后退后再次执行上述确认操作,直到旁边没有障碍物,机器人转向该方向,继续工作;避障状态下的数据将会被实时上传至上位机App。As shown in Figure 7, the obstacle avoidance function can be turned on or off on the host computer App; when the function is turned on, the program receives the distance information from the ultrasonic distance sensor in real time, and if the distance from the obstacle is less than the preset value of 15cm, execute Obstacle avoidance operation: The robot turns left and right on the spot to confirm whether there are obstacles on the left and right. After the confirmation, the robot turns 75 degrees in the direction where there are no obstacles. If there are obstacles on both sides, the robot backs up and performs the above confirmation operation again until There is no obstacle next to it, the robot turns to this direction and continues to work; the data in the obstacle avoidance state will be uploaded to the host computer App in real time.

方法中涉及到的通信协议:Communication protocols involved in the method:

机器人的主控程序运行于开发板上,视觉传感器、蓝牙模块、超声波测距传感器与主控程序通过串口进行通信;其中蓝牙模块采用的是HC-08蓝牙串口通信模块,其无线工作频段为2.4GHz ISM,调制方式是GFSK。模块最大发射功率为4dBm,接收灵敏度-93dBm,空旷环境下和可以实现40米的远距离通信,在与App进行连接和数传时使用BluetoothSpecification V4.0 BLE蓝牙协议,支持Android 4.3以上系统。The main control program of the robot runs on the development board, and the visual sensor, Bluetooth module, ultrasonic ranging sensor communicate with the main control program through the serial port; the Bluetooth module adopts the HC-08 Bluetooth serial port communication module, and its wireless working frequency band is 2.4 GHz ISM, the modulation method is GFSK. The maximum transmit power of the module is 4dBm, and the receiving sensitivity is -93dBm. It can realize long-distance communication of 40 meters in an open environment. It uses the BluetoothSpecification V4.0 BLE Bluetooth protocol when connecting and data transmission with the App, and supports Android 4.3 and above systems.

Claims (5)

1.一种用于捡乒乓球的机器人的双模态控制方法,其特征在于:捡乒乓球机器人由捡球装置和车体两部分组成,捡球装置为利用滚珠轴承、长螺杆、硬板、软质毛刷等材料组成的带有扇叶的滚筒结构,通过电机、皮带、定滑轮的组合带动扇叶转动,捡球时,毛刷带动乒乓球沿着斜坡进入储球装置,从而实现对乒乓球的收集,此外,捡球装置上还安装有视觉传感器和超声波距离传感器;车体部分为上下两层结构,上层放置有主、协两级处理器、锂电池以及带动捡球装置扇叶转动的电机;下层安放的是储球装置,其为敞口长方体盒状,开口向着车体前端,对被捡球装置收集到的乒乓球进行储存,下层底盘装有四个麦克纳姆轮及其控制电机,可使车体实现360°任意方向移动;机器人有自动巡航和手动遥控两种工作模式,可通过上位机App进行切换,上位机App基于安卓平台开发,与机器人通过蓝牙通信,可实现对机器人的模式切换、避障功能开关、无线遥控和运行数据监控四种功能。1. a dual-modal control method for picking up the robot of table tennis, it is characterized in that: picking up table tennis robot is made up of two parts of picking up ball device and car body, and picking up ball device is to utilize ball bearing, long screw rod, hard plate The roller structure with fan blades is composed of materials such as soft brushes and other materials. The combination of motor, belt and fixed pulley drives the fan blades to rotate. When picking up the ball, the brush drives the table tennis ball to enter the ball storage device along the slope. For the collection of table tennis balls, in addition, a visual sensor and an ultrasonic distance sensor are also installed on the ball picking device; the body part is a two-layer structure, and the upper layer is placed with a main and two-level processor, a lithium battery and a fan that drives the ball picking device. The motor that rotates the leaves; the ball storage device is placed on the lower layer, which is in the shape of an open cuboid box with the opening facing the front end of the car body, and stores the table tennis balls collected by the ball picking device. The lower chassis is equipped with four Mecanum wheels And its control motor can make the car body move in any direction of 360°; the robot has two working modes: automatic cruise and manual remote control, which can be switched through the host computer App. The host computer App is developed based on the Android platform and communicates with the robot through Bluetooth. It can realize four functions of robot mode switching, obstacle avoidance function switch, wireless remote control and operation data monitoring. 2.根据权利要求1所述的一种用于捡乒乓球的机器人的双模态控制方法,其特征在于:所述自动巡航模式中机器人的主控程序根据传感器传回的图像信息,对视野中的乒乓球进行识别和定位,驱动机器人调整姿态并收集乒乓球;所述手动遥控模式中,上位机App与机器人通过蓝牙通信,发送运动指令,经程序翻译后驱动车体完成指定运动;所述避障功能的开关由上位机App控制,在开启时,程序通过超声波距离传感器监测机器人与障碍物间的距离,并在其小于预设值时执行避障操作;在机器人工作时产生的重要数据,会通过蓝牙实时发送至App并显示在其主界面上,以便用户监控机器人的运行状态;所述上位机APP工作时,首先获取BluetoothAdapter对象,判断设备是否支持蓝牙、蓝牙是否开启,如果未开启则调用openBlueSync方法提示用户开启蓝牙,待蓝牙开启后调用startLeScan和connectGatt方法扫描、连接蓝牙串口模块,与模块配对成功建立稳定连接后即可开始通信,整个通信的读写过程都在BluetoothGattCallback的异步回调函数中完成,待全部通信完成后,软件会调用BluetoothGatt中的disconnect与close方法断开与机器人蓝牙模块的连接;在上位机App的主界面中,最上方显示的是App与机器人的连接状态1,在其下方的两个按钮2、3,分别对应着机器人模式的切换和避障功能的开关,可通过点击相应按钮来改变机器人的工作状态;机器人遥控组件4、5位于界面中部,拖动中央的摇杆4可控制机器人向八个方向运动,摇杆下面的两个箭头状按钮5.1、5.2可使机器人沿对应方向自转;主界面最下方的灰色框体6是数据监视栏,机器人当前的工作数据会在栏中实时更新,包括开(关)机、视野中乒乓球的信息、接收到的运动指令以及与障碍物的距离。2. a kind of dual-modal control method for picking up the robot of table tennis according to claim 1, is characterized in that: in described automatic cruise mode, the main control program of robot returns according to the image information of sensor, to visual field In the manual remote control mode, the host computer App communicates with the robot through Bluetooth, sends motion commands, and drives the car body to complete the specified motion after program translation; The switch of the obstacle avoidance function is controlled by the host computer App. When it is turned on, the program monitors the distance between the robot and the obstacle through the ultrasonic distance sensor, and executes the obstacle avoidance operation when it is less than the preset value; The data will be sent to the App in real time through Bluetooth and displayed on its main interface, so that the user can monitor the running status of the robot; when the host computer APP is working, it first obtains the BluetoothAdapter object to determine whether the device supports Bluetooth and whether Bluetooth is turned on. When enabled, call the openBlueSync method to prompt the user to turn on Bluetooth. After the Bluetooth is turned on, call the startLeScan and connectGatt methods to scan and connect the Bluetooth serial port module. After the module is successfully paired and a stable connection is established, the communication can start. The entire communication read and write process is asynchronous in the BluetoothGattCallback. Completed in the callback function. After all communication is completed, the software will call the disconnect and close methods in BluetoothGatt to disconnect the robot's Bluetooth module; in the main interface of the host computer App, the top display is the connection status between the App and the robot. 1. The two buttons 2 and 3 below it correspond to the switch of the robot mode and the switch of the obstacle avoidance function respectively. You can click the corresponding button to change the working state of the robot; the robot remote control components 4 and 5 are located in the middle of the interface, drag the The joystick 4 in the center can control the robot to move in eight directions, and the two arrow-shaped buttons 5.1 and 5.2 below the joystick can make the robot rotate in the corresponding direction; the gray frame 6 at the bottom of the main interface is the data monitoring bar, the robot The current work data is updated in real time in the column, including the machine on (off), the information of the table tennis ball in the field of vision, the movement command received, and the distance to the obstacle. 3.根据权利要求1-2所述的一种用于捡乒乓球的机器人的双模态控制方法,其特征在于:所述手动遥控模式中,上位机App需要与机器人的蓝牙模块建立连接,相互传递数据;在主控程序中,各功能运行于不同线程上,互不干扰,App发送的改变模式或开关功能的指令通过阻塞、激活相应线程即可实现;如果App发送的是遥控指令,两级处理器会将指令翻译为串口指令并最终生成PWM波控制编码器,带动车体完成指定运动;机器人的串口指令格式见表1:3. a kind of bimodal control method for picking up the robot of table tennis according to claim 1-2, is characterized in that: in described manual remote control mode, host computer App needs to establish connection with the bluetooth module of robot, Transfer data to each other; in the main control program, each function runs on different threads without interfering with each other. The command sent by the App to change the mode or switch function can be realized by blocking and activating the corresponding thread; if the App sends a remote control command, The two-level processor will translate the instructions into serial port instructions and finally generate a PWM wave to control the encoder to drive the car body to complete the specified motion; the serial port instruction format of the robot is shown in Table 1: 表1Table 1
Figure FDA0002255408810000021
Figure FDA0002255408810000021
Figure FDA0002255408810000031
Figure FDA0002255408810000031
一个完整的串口指令包含十个字节,其中前三个字节是固定的指令头,第4个字节是X轴速度的高8位,第5个字节是X轴速度的低8位,之后的四个字节分别对应Y轴和Z轴速度。最后一个字节用来指定各个轴的正方向,机器人最终的运动即是三轴运动的矢量合;过程中用户遥控的信息会实时的传送给上位机App显示。A complete serial port command contains ten bytes, of which the first three bytes are the fixed command header, the fourth byte is the high 8 bits of the X-axis speed, and the fifth byte is the low 8 bits of the X-axis speed. , and the following four bytes correspond to the Y-axis and Z-axis speed respectively. The last byte is used to specify the positive direction of each axis, and the final motion of the robot is the vector sum of the three-axis motion; during the process, the information of the user's remote control will be transmitted to the host computer App in real time for display.
4.根据权利要求1-2所述的一种用于捡乒乓球的机器人的双模态控制方法,其特征在于:自动巡航模式下有两种状态:巡航状态和捡球状态;当视野中没有乒乓球时,机器人处于巡航状态,巡航过程中,机器人沿当前方向前进,当遇到障碍物时,后退一小段距离,向没有障碍物的方向转75度,若两边都有障碍物,则重复上述操作,当视觉系统识别到球后,机器人切换到捡球状态;4. a kind of bimodal control method for picking up the robot of table tennis according to claim 1-2, is characterized in that: there are two kinds of states under automatic cruise mode: cruise state and picking up ball state; When there is no ping pong ball, the robot is in a cruising state. During the cruising process, the robot moves forward in the current direction. When encountering an obstacle, it retreats a short distance and turns 75 degrees in the direction without obstacles. If there are obstacles on both sides, then Repeat the above operation, when the vision system recognizes the ball, the robot switches to the state of picking up the ball; 所述捡球状态分为调整阶段和收集阶段:The ball picking state is divided into an adjustment stage and a collection stage: 调整阶段:在识别到球后需要先进入调整阶段校准球的位置与机器人的朝向;在工作时,当机器人识别到乒乓球后会暂停移动,再次精确识别球的坐标,之后根据其半径大小估算与机器人的距离,选择合适的最佳收集区间,依据乒乓球位置坐标与最佳收集区间坐标的差值不断进行姿态调整,直到乒乓球位于最佳收集区间,进入收集阶段;Adjustment stage: After recognizing the ball, you need to enter the adjustment stage to calibrate the position of the ball and the orientation of the robot; during work, when the robot recognizes the table tennis ball, it will pause the movement, accurately identify the coordinates of the ball again, and then estimate according to its radius. For the distance from the robot, select the appropriate optimal collection area, and continuously adjust the attitude according to the difference between the position coordinates of the table tennis ball and the coordinates of the optimal collection area, until the table tennis ball is in the optimal collection area and enters the collection stage; 收集阶段:依据估算的距离,得出大致的移动时间并驱动车体运动,若执行一次收集操作后,还能在视野中识别到乒乓球,则机器人返回捡球状态的调整阶段继续捡球,若视野中不存在乒乓球,则转变为巡航状态;在自动巡航模式中,机器人的工作数据会实时上传到上位机App,方便用户对机器人进行监控和维护。Collection stage: According to the estimated distance, the approximate moving time is obtained and the vehicle body is driven to move. If a table tennis ball can still be recognized in the field of vision after performing a collection operation, the robot returns to the adjustment stage of the ball picking state and continues to pick up the ball. If there is no ping-pong ball in the field of vision, it will change to the cruise state; in the automatic cruise mode, the working data of the robot will be uploaded to the host computer App in real time, which is convenient for users to monitor and maintain the robot. 5.根据权利要求1-2所述的一种用于捡乒乓球的机器人的双模态控制方法,其特征在于:所述避障功能可在上位机App上开启或关闭;当功能开启后,程序实时接收来自超声波距离传感器传回的距离信息,若与障碍物间距小于预设值15cm,则执行避障操作;机器人原地向左右转动,确认左右是否存在障碍物,确认完毕后机器人向没有障碍物的方向转75度,若两边都存在障碍物,则机器人后退后再次执行上述确认操作,直到旁边没有障碍物,机器人转向该方向,继续工作;避障状态下的数据将会被实时上传至上位机App。5. a kind of bimodal control method for picking up the robot of table tennis according to claim 1-2, it is characterized in that: described obstacle avoidance function can be opened or closed on the host computer App; , the program receives the distance information returned from the ultrasonic distance sensor in real time. If the distance from the obstacle is less than the preset value of 15cm, the obstacle avoidance operation will be performed; Turn 75 degrees in the direction without obstacles. If there are obstacles on both sides, the robot will back up and perform the above confirmation operation again until there are no obstacles nearby, the robot will turn to this direction and continue to work; the data in the obstacle avoidance state will be real-time. Upload to the host computer App.
CN201911051357.1A 2019-10-31 2019-10-31 Bimodal control method for table tennis ball picking robot Pending CN110681133A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911051357.1A CN110681133A (en) 2019-10-31 2019-10-31 Bimodal control method for table tennis ball picking robot
PCT/CN2020/087354 WO2021082376A1 (en) 2019-10-31 2020-04-28 Dual-mode control method for table tennis ball retriever robot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911051357.1A CN110681133A (en) 2019-10-31 2019-10-31 Bimodal control method for table tennis ball picking robot

Publications (1)

Publication Number Publication Date
CN110681133A true CN110681133A (en) 2020-01-14

Family

ID=69114992

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911051357.1A Pending CN110681133A (en) 2019-10-31 2019-10-31 Bimodal control method for table tennis ball picking robot

Country Status (2)

Country Link
CN (1) CN110681133A (en)
WO (1) WO2021082376A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111346351A (en) * 2020-04-05 2020-06-30 北京工业大学 Robot for picking up table tennis based on friction wheel
CN112162546A (en) * 2020-06-24 2021-01-01 上汽通用五菱汽车股份有限公司 Method, system and storage medium for remote control of vehicle
CN112604247A (en) * 2020-11-24 2021-04-06 合肥工业大学 Robot is collected to tennis
WO2021082376A1 (en) * 2019-10-31 2021-05-06 北京工业大学 Dual-mode control method for table tennis ball retriever robot

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114432676A (en) * 2022-02-22 2022-05-06 山东大学 Tennis ball picking machine
CN114432677A (en) * 2022-02-22 2022-05-06 山东大学 A table tennis ball picking machine
TWI862467B (en) * 2024-07-04 2024-11-11 國立勤益科技大學 Object-picking robot

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0372249A1 (en) * 1988-11-09 1990-06-13 TRANSITA VERTRIEBS- UND HANDELSGESELLSCHAFT mbH Device for collecting balls, especially tennis balls, and/or for smoothing a game court
CN101466438A (en) * 2006-04-14 2009-06-24 依康保健股份有限公司 Exercise apparatus, components of exercise apparatus, and related methods
CN203169878U (en) * 2013-03-27 2013-09-04 上海理工大学 Remote-controlled firefighting robot
CN103345252A (en) * 2013-07-15 2013-10-09 兰州理工大学 Intelligent ball-picking robot system and ball-picking method thereof
CN104298235A (en) * 2014-08-25 2015-01-21 洛阳理工学院 Mobile robot system based on wireless video transmission and PID compound control
CN204709727U (en) * 2015-05-29 2015-10-21 济南大学 A kind of device automatically picking up tennis based on Bluetooth control
CN105383696A (en) * 2015-10-20 2016-03-09 中国矿业大学 Air quality monitoring aircraft based on mobile phone client
CN105759820A (en) * 2016-04-08 2016-07-13 济宁中科先进技术研究院有限公司 Road autonomous cleaning control system and method based on laser and vision
CN206114897U (en) * 2016-10-28 2017-04-19 西安科技大学 Ultrasonic ranging meter
CN106730683A (en) * 2016-12-30 2017-05-31 浙江大学 Automatic picking up table tennis ball robot based on TensorFlow
CN107137890A (en) * 2016-09-27 2017-09-08 五邑大学 A kind of intelligent tennis ball pickup robot based on image recognition
CN107408151A (en) * 2015-03-27 2017-11-28 英特尔公司 Use the motion tracking of electronic equipment
CN207950512U (en) * 2018-01-19 2018-10-12 烟台大学 A kind of automatic seeking ball collection arrangement of view-based access control model identification
CN110314344A (en) * 2018-03-30 2019-10-11 杭州海康威视数字技术股份有限公司 Move based reminding method, apparatus and system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
PT103807A (en) * 2007-08-13 2009-01-13 Univ Do Minho GOLF BALL COLLECTION SYSTEM FULLY SELF-EMPLOYED OR REMOTELY OPERATED
CN203191821U (en) * 2013-04-29 2013-09-11 兰州理工大学 A dual-mode intelligent ball-picking robot control system
CN107080925A (en) * 2017-06-08 2017-08-22 无锡工艺职业技术学院 Bi-mode intelligent ball picking robot system based on binocular vision
CN207694194U (en) * 2017-12-21 2018-08-07 华中科技大学 A kind of intelligence of view-based access control model picks up tennis robot
CN208274954U (en) * 2018-01-06 2018-12-25 西南林业大学 Smart table tennis collecting cart
KR102044093B1 (en) * 2018-04-16 2019-11-12 손서용 A shuttlecock collection automatic device
CN110681133A (en) * 2019-10-31 2020-01-14 北京工业大学 Bimodal control method for table tennis ball picking robot

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0372249A1 (en) * 1988-11-09 1990-06-13 TRANSITA VERTRIEBS- UND HANDELSGESELLSCHAFT mbH Device for collecting balls, especially tennis balls, and/or for smoothing a game court
CN101466438A (en) * 2006-04-14 2009-06-24 依康保健股份有限公司 Exercise apparatus, components of exercise apparatus, and related methods
CN203169878U (en) * 2013-03-27 2013-09-04 上海理工大学 Remote-controlled firefighting robot
CN103345252A (en) * 2013-07-15 2013-10-09 兰州理工大学 Intelligent ball-picking robot system and ball-picking method thereof
CN104298235A (en) * 2014-08-25 2015-01-21 洛阳理工学院 Mobile robot system based on wireless video transmission and PID compound control
CN107408151A (en) * 2015-03-27 2017-11-28 英特尔公司 Use the motion tracking of electronic equipment
CN204709727U (en) * 2015-05-29 2015-10-21 济南大学 A kind of device automatically picking up tennis based on Bluetooth control
CN105383696A (en) * 2015-10-20 2016-03-09 中国矿业大学 Air quality monitoring aircraft based on mobile phone client
CN105759820A (en) * 2016-04-08 2016-07-13 济宁中科先进技术研究院有限公司 Road autonomous cleaning control system and method based on laser and vision
CN107137890A (en) * 2016-09-27 2017-09-08 五邑大学 A kind of intelligent tennis ball pickup robot based on image recognition
CN206114897U (en) * 2016-10-28 2017-04-19 西安科技大学 Ultrasonic ranging meter
CN106730683A (en) * 2016-12-30 2017-05-31 浙江大学 Automatic picking up table tennis ball robot based on TensorFlow
CN207950512U (en) * 2018-01-19 2018-10-12 烟台大学 A kind of automatic seeking ball collection arrangement of view-based access control model identification
CN110314344A (en) * 2018-03-30 2019-10-11 杭州海康威视数字技术股份有限公司 Move based reminding method, apparatus and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张静: "基于安卓蓝牙的远距离通信系统设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021082376A1 (en) * 2019-10-31 2021-05-06 北京工业大学 Dual-mode control method for table tennis ball retriever robot
CN111346351A (en) * 2020-04-05 2020-06-30 北京工业大学 Robot for picking up table tennis based on friction wheel
CN112162546A (en) * 2020-06-24 2021-01-01 上汽通用五菱汽车股份有限公司 Method, system and storage medium for remote control of vehicle
CN112604247A (en) * 2020-11-24 2021-04-06 合肥工业大学 Robot is collected to tennis

Also Published As

Publication number Publication date
WO2021082376A1 (en) 2021-05-06

Similar Documents

Publication Publication Date Title
CN110681133A (en) Bimodal control method for table tennis ball picking robot
CN104765366B (en) Realize the service robot of intelligent obstacle detouring
CN104808664B (en) A kind of method realizing intelligent obstacle detouring
CN103503639B (en) A kind of both arms fruits and vegetables are gathered robot system and fruits and vegetables collecting method thereof
CN202763840U (en) Autonomous control underwater robot based on image processing
CN103116279B (en) Fuzzy discrete event shared control method for brain-controlled robot system
CN105563493A (en) Height and direction adaptive service robot and adaptive method
CN106113067B (en) A kind of Dual-Arm Mobile Robot system based on binocular vision
CN101327589A (en) System and method for command input and configuration control of teleoperation planar redundant manipulator
CN104175308A (en) Self-service robot
WO2022156746A1 (en) Cleaning control method and apparatus for robot, and robot
CN107450556A (en) ROS-based autonomous navigation intelligent wheelchair
CN108544465A (en) Omni-directional mobile robots and its control method based on Mecanum wheels
CN118614803A (en) Multifunctional modular household cleaning robot and control method thereof
CN108161887A (en) Two-wheeled vision robot with manipulator
CN207020536U (en) Sweeper path planning control system based on angular transducer
CN103600351A (en) Six-axis-force-torque transducer based six-freedom-degree robot operating system and control method thereof
CN207682391U (en) A kind of intelligent avoidance grasping system based on deep learning
CN115958575A (en) Humanoid dexterous operation mobile robot
CN114830916A (en) Autonomous walking enveloping type golden-silk-Huang chrysanthemum nondestructive picking robot on ridge and picking method
CN211149276U (en) Control device of unmanned cleaning vehicle and vehicle
CN207448487U (en) A kind of exploration robot
CN107962546A (en) A kind of image recognition element follows pickup robot
CN105751225A (en) Intelligent safety protection and explosive handling robot on basis of internet of things
CN210525104U (en) Control device and cleaning robot applied to same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200114