Unmanned aerial vehicle and unmanned ship cooperative water surface floating garbage removing equipment and operation method
Technical Field
The invention belongs to the field of cleaning of floating garbage in rivers and lakes in cities, and particularly relates to automatic garbage cleaning equipment for cleaning floating garbage on water surfaces by using unmanned aerial vehicles and unmanned ships.
Background
The water areas of urban rivers and lakes are large, and garbage, blue-green algae and the like floating on the water surface have large influence on the ecological environment and are difficult to remove. Therefore, the method becomes a big link of environmental management aiming at the cleaning of the water surface garbage. A large amount of manpower is spent on special cleaning every year, the working efficiency is low, the problems of safety and the like need to be considered in manual operation on the water surface, and the method is not the optimal choice for cleaning river channel garbage. Compare manual work, surface of water unmanned ship can realize all-weather, autonomic operation, can carry out the operation in some artifical danger areas that are difficult to reach simultaneously, can promote clean efficiency effectively. Along with the rapid development of mobile internet and big data, the unmanned aerial vehicle is more and more widely applied in the aspects of aerial surveying and mapping, agricultural plant protection, forest fire control and the like. The unmanned ship on the water surface is deficient due to the advantages of wide visual field, strong maneuverability and the like. The unmanned aerial vehicle and the unmanned ship are combined, so that the search capability of the garbage in a large-scale water area can be greatly improved, and the garbage cleaning efficiency is improved.
Disclosure of Invention
The invention mainly solves the problems of low efficiency, high cost, unsafe and the like of manually cleaning water surface garbage. In order to improve the cleaning capacity of the water surface garbage, the invention provides the water surface floating garbage cleaning equipment with the cooperation of the unmanned aerial vehicle and the unmanned ship and a using method thereof, the invention realizes that a frame is constructed based on an open-source robot operating system ROS, and the main technical scheme is as follows: the unmanned aerial vehicle is used for drawing a target water area and identifying water surface garbage, the ground workstation is used for transmitting garbage coordinate information to each unmanned ship, the unmanned ship carries out global path planning on the water area in charge of the unmanned ship to reach a garbage point, and garbage is picked up through the mechanical arm.
In order to achieve the technical characteristics, the invention aims to realize that: a water surface floating garbage removing device with cooperation of an unmanned aerial vehicle and an unmanned ship comprises the unmanned aerial vehicle and the unmanned ship;
the unmanned aerial vehicle builds a map of a target water area and identifies water surface garbage, the ground workstation transmits garbage coordinate information to each unmanned ship, the unmanned ship plans a global path of a water area in charge of the unmanned ship to reach a garbage point, and the garbage is picked up through a mechanical arm;
the device also comprises a control system, wherein the control system is divided into three layers: a management layer, a communication layer and a control execution layer; the management layer is a ground workstation and is used for controlling, visualizing and operating the integral structure of the unmanned aerial vehicle and the integral structure of the unmanned ship; the communication layer transmits the running state of the unmanned aerial vehicle unmanned ship to the ground workstation mainly through WIFI data transmission; the control layer mainly acquires environment data and receives a control instruction of the management layer.
The unmanned aerial vehicle is provided with an on-board computer, a first depth camera, a first laser radar, a GPS module, PX4 open source flight control, WIFI data transmission and charging and discharging devices;
the onboard computer receives first depth camera and first laser radar information, and a control instruction; the method comprises the steps that a first depth camera obtains information of floating garbage on the water surface, wherein the information comprises garbage category and position information; a first laser radar acquires surrounding environment information and is matched with an SLAM algorithm to carry out positioning and mapping; the GPS module realizes the positioning of the unmanned aerial vehicle; WIFI data transmission is used for communication between unmanned aerial vehicle overall structure and unmanned ship overall structure.
The unmanned ship is provided with a mechanical arm, a garbage storage device, a driving device, a WIFI data transmission module, a high-precision inertial navigation module, a second laser radar, a GPS module, an onboard computer and a second depth camera;
the mechanical arm picks up the garbage; the high-precision inertial navigation module and the GPS module perform position and speed fusion in an extended Kalman filtering loose coupling mode, wherein the high-precision inertial navigation module comprises a speed acceleration, an angular speed and a yaw angle, the position and the speed are obtained by resolving through an inertial system, the GPS module resolves the position and the speed through a navigation system, data fusion is performed through extended Kalman filtering, and finally, the output result is subjected to feedback correction and then the position and the speed are output; the second laser radar acquires surrounding environment information and performs positioning navigation by matching with an SLAM algorithm; the GPS module provides positioning for the unmanned ship; the depth camera identifies spam information, including spam category and location information.
Unmanned aerial vehicle's location is built the picture and is discerned rubbish and include: the unmanned aerial vehicle carries out mapping and positioning through the SLAM technology, a target water area two-dimensional grid map is established through an SLAM framework Cartogrer algorithm based on map optimization, floating garbage in a water area is identified through a deep learning YOLOV3 algorithm in the mapping process, XYZ coordinates are calculated according to point cloud information in an identification frame, the X coordinates are converted into a world coordinate system, and the world coordinate system is sent to the unmanned ship through a workstation.
Converting coordinates of the unmanned aerial vehicle and the unmanned ship, converting the motion of the unmanned aerial vehicle into three-dimensional space rigid motion, converting the coordinates of a first depth camera of the unmanned aerial vehicle into a base mark of the unmanned aerial vehicle, and finally converting the coordinates into a world coordinate system; the motion of the unmanned ship in the plane can be regarded as rigid motion, the rigid motion is converted into a world coordinate system through homogeneous coordinate transformation, and the unmanned ship of the unmanned plane is located in the world coordinate system.
Unmanned aerial vehicle, unmanned ship and workstation's communication, unmanned aerial vehicle, unmanned ship and workstation constitute in this communication system, and the workstation belongs to the main control computer, and unmanned aerial vehicle and unmanned ship are as following the machine, connect through the WIFI LAN between the three, and the main control computer is responsible for controlling unmanned aerial vehicle and unmanned ship, mainly realizes: the unmanned aerial vehicle and the unmanned ship realize the transmission of images and the interaction of environmental information.
The method comprises the steps of positioning the unmanned ship, mainly obtaining the position of the unmanned ship in a map, leading the positioning of the unmanned ship to be deviated due to the influence of wind speed waves when the unmanned ship sails on the water surface, adopting a high-precision inertial navigation module and a GPS module to carry out global positioning, adopting an extended Kalman filtering loose coupling mode to estimate the state errors of the inertial navigation module and the GPS module, correcting each navigation system through feedback through estimation of the state errors, and improving the positioning precision.
Planning the path of the unmanned ship, dividing a two-dimensional grid map and areas by a ground workstation, acquiring a world coordinate system of each unmanned ship, and obtaining a garbage coordinate relation of a water area in which the unmanned ship is responsible through coordinate transformation; the unmanned ship carries out path planning from near to far according to the received garbage coordinate information of the water area in which the unmanned ship is responsible, global path planning is carried out by using an A-star algorithm in navigation, and the optimal route from the unmanned ship to the target position is calculated.
And the garbage picking of the mechanical arm mainly comprises the steps of using a point cloud generated by a second depth camera after reaching the position, carrying out target detection on the floating garbage on the water surface, calculating a point cloud coordinate in the identification frame, converting the acquired garbage coordinate into a mechanical arm coordinate system, and starting motion planning and grabbing by the mechanical arm.
The operation method of the water surface floating garbage removing equipment with the cooperation of the unmanned aerial vehicle and the unmanned ship comprises the following steps:
s1 is the beginning;
s2, enabling the unmanned aerial vehicle unmanned ship to reach a target water area;
s3, the unmanned aerial vehicle unmanned ship stops statically, and wireless communication is established with a ground workstation;
s4, drawing an SLAM of the target water area according to a planned route, and identifying garbage;
s5, returning by the unmanned aerial vehicle;
s6, dividing the target water area by the ground station according to the number of unmanned ships, wherein one ship is responsible for one water area;
s7, converting the coordinates of each ship into a world coordinate system according to the identified garbage coordinates;
s8, performing global path planning for the garbage coordinate traversal of each ship in charge of the water area;
s9, enabling the unmanned ship to arrive at a target point;
s10, if the rubbish is identified, an in-place rotation searching target is not identified;
s11, grabbing by a mechanical arm;
s12, heading to an unscanned area;
s13 is the end;
the specific process of S2 is as follows:
step A1: the unmanned ship unmanned aerial vehicle reaches a target water area;
step A2: checking the surrounding environment of the target water area;
the specific process of S3 is as follows:
step B1: starting an unmanned ship, an unmanned aerial vehicle and a ground workstation;
and step B2: checking the running condition of the equipment;
and step B3: inputting an IP address and establishing communication among the three through WIFI data transmission;
the specific process of S4 is as follows:
step C1: vertically lifting the unmanned aerial vehicle to a proper height;
and step C2: starting SLAM map building, and building a two-dimensional grid map by adopting a Cartogrer algorithm;
and C3: identifying the floating garbage on the water surface through a first depth camera by using a deep learning YOLOV3 algorithm while establishing a map;
the specific process of S5 is as follows:
step D1: the unmanned aerial vehicle carries the collected garbage coordinate information and the two-dimensional map and returns to the ground workstation;
the specific process of S6 is as follows:
step E1: processing a two-dimensional map and garbage coordinate information established by the unmanned aerial vehicle;
step E2: reasonably dividing the responsible water area of each ship according to the map, the number of ships and the water area environment;
the specific process of S7 is as follows:
step F1: converting the garbage coordinate calculated by the unmanned aerial vehicle into a world coordinate system by the ground workstation;
step F2: converting the coordinate system of the unmanned ship into a world coordinate system by the ground workstation;
step F3: transmitting the garbage coordinates under each area to an unmanned ship in charge of the area;
the specific process of S8 is as follows:
step G1: receiving garbage coordinate information under a world coordinate system by the unmanned ship;
step G2: setting a navigation point from near to far according to the garbage coordinate information;
step G3: carrying out global path planning according to the grid map, and finding out an optimal path through an A-star algorithm;
the specific process of S9 is as follows:
step H1: the unmanned ship sequentially goes to the areas where the garbage are located according to the planned route obtained in the S8;
the S10 specific process:
step I1: when the unmanned ship reaches the region where the water surface floating garbage is located, the unmanned ship identifies the garbage by using a YOLOV3 target identification algorithm;
step I2: if the garbage is not identified, the unmanned ship rotates in situ to search for a target;
the specific process of S11 is as follows:
step J1: identifying a target, processing point cloud information in an identification frame, acquiring garbage coordinate information, and calculating coordinates of garbage relative to the mechanical arm through coordinate conversion;
step J2: moveit is adopted to plan a mechanical arm movement route, and a mechanical arm clamping jaw moves to reach a garbage position for grabbing;
the specific process of S12:
step K1: after the work of the area is finished, carrying the unmanned plane with the unmanned ship to work in the next subarea, and repeating the steps S3-S11;
step K2: if the cleaning work of all the areas is completed, S13 is performed, and the work is finished.
The invention has the following beneficial effects:
1. according to the unmanned aerial vehicle and the multi-unmanned ship combined type water surface garbage collection and treatment system, the unmanned aerial vehicle and the multi-unmanned ship are used for cleaning water surface garbage in a cooperative working mode, so that the defect of the view of the unmanned ship can be overcome, and the garbage searching and cleaning efficiency can be effectively improved. The operation of multiple unmanned ships can shorten the working time and reduce the time consumed by cleaning garbage.
2. The invention relates to an unmanned aerial vehicle, which establishes a two-dimensional grid map for a target water area through a laser radar and a depth camera carried by the unmanned aerial vehicle, and the method comprises the following steps: and a software framework based on ROS is used, and a laser SLAM algorithm is adopted, so that the problem of mapping and positioning of the unmanned aerial vehicle is solved. A Cartogrer algorithm is adopted in a mapping algorithm, loop detection is added to the algorithm based on a graph optimization framework to eliminate accumulated errors, and the algorithm can be used for an unmanned aerial vehicle to construct a two-dimensional grid map.
3. The method adopts the YOLOV3 algorithm to identify the garbage, so that the accuracy and the reliability of identification are ensured.
Drawings
The invention is further illustrated by the following figures and examples.
Fig. 1 is an overall structure diagram of the unmanned aerial vehicle of the present invention.
Fig. 2 is an overall configuration diagram of the unmanned ship of the present invention.
Fig. 3 is an overall block diagram of the system of the present invention.
Fig. 4 shows a method for positioning an unmanned ship according to the present invention.
FIG. 5 illustrates an embodiment of the present invention.
In the figure: a GPS module 101, a battery compartment 102, an onboard computer 103, a first depth camera 104, a lidar 105;
a robotic arm 201, a waste storage bin 202, a two-dimensional lidar 203, a second depth camera 204.
Detailed Description
Embodiments of the present invention will be further described with reference to the accompanying drawings.
Example 1:
referring to fig. 1-5, a water surface floating garbage removing device with cooperation of an unmanned aerial vehicle and an unmanned ship comprises the unmanned aerial vehicle and the unmanned ship; the unmanned aerial vehicle builds a map of a target water area and identifies water surface garbage, the ground workstation transmits garbage coordinate information to each unmanned ship, the unmanned ship plans a global path of a water area in charge of the unmanned ship to reach a garbage point, and the garbage is picked up through a mechanical arm; the device also comprises a control system which is divided into three layers: a management layer, a communication layer and a control execution layer; the management layer is a ground workstation and is used for controlling, visualizing and operating the integral structure of the unmanned aerial vehicle and the integral structure of the unmanned ship; the communication layer mainly transmits the running state of the unmanned aerial vehicle unmanned ship to the ground workstation through WIFI data transmission; the control layer mainly acquires environmental data and receives a control instruction of the management layer. Through foretell clear away equipment, its realization frame is based on open source robot operating system ROS and is found the picture and discern surface of water rubbish to the target waters through unmanned aerial vehicle, and ground workstation sends rubbish coordinate information to each unmanned ship, and unmanned ship carries out global path planning to oneself responsible for the waters and reachs the rubbish point, picks up rubbish through the robotic arm.
Further, the unmanned aerial vehicle is provided with an on-board computer 103, a first depth camera 104, a first laser radar 105, a GPS module 101, a PX4 open-source flight control device, a WIFI data transmission device and a charging and discharging device; the on-board computer 103 receives the first depth camera 104 and first lidar 105 information, as well as control instructions; the first depth camera 104 acquires information of floating garbage on the water surface, including garbage category and position information; the first laser radar 105 acquires surrounding environment information and performs positioning and mapping by matching with an SLAM algorithm; the GPS module 101 realizes the positioning of the unmanned aerial vehicle; WIFI data transmission is used for communication between unmanned aerial vehicle overall structure and unmanned ship overall structure.
Further, the unmanned ship is provided with a mechanical arm 201, a garbage storage device, a driving device, a WIFI data transmission module, a high-precision inertial navigation module, a second laser radar 203, a GPS module, an onboard computer and a second depth camera 204; the mechanical arm 201 picks up the garbage; the high-precision inertial navigation module and the GPS module perform position and speed fusion in an extended Kalman filtering loose coupling mode, wherein the high-precision inertial navigation module comprises a speed acceleration, an angular speed and a yaw angle, the position and the speed are obtained by resolving through an inertial system, the GPS module resolves the position and the speed through a navigation system, data fusion is performed through extended Kalman filtering, and finally, the position and the speed are output after the output result is subjected to feedback correction; the second laser radar 203 acquires surrounding environment information and performs positioning navigation by matching with an SLAM algorithm; the GPS module provides positioning for the unmanned ship; the depth camera identifies spam information, including spam category and location information.
Further, unmanned aerial vehicle's location is built the picture and is discerned rubbish and include: the unmanned aerial vehicle carries out mapping positioning through the SLAM technology, a target water area two-dimensional grid map is established through a SLAM framework Cartogrier algorithm based on map optimization, floating garbage in a water area is identified through a deep learning YOLOV3 algorithm in the mapping process, XYZ coordinates are calculated according to point cloud information in an identification frame, the XYZ coordinates are converted into a world coordinate system, and the world coordinate system is sent to the unmanned ship through a workstation. The Cartogrer algorithm is a set of graph optimization-based Laser SLAM algorithm, supports 2D and 3D Laser SLAM simultaneously, can be used in a cross-platform mode, and supports various sensor configurations such as Laser, IMU, radiometer and GPS. The algorithm can realize real-time positioning and mapping. In addition, the algorithm is based on a graph optimization framework, loop detection is added, accumulated errors are eliminated, and the algorithm can be used for the unmanned aerial vehicle to construct a two-dimensional grid map. The accuracy of garbage identification is guaranteed by adopting a YOLOV3 algorithm.
Further, coordinate transformation of the unmanned aerial vehicle and the unmanned ship is carried out, the motion of the unmanned aerial vehicle is three-dimensional space rigid motion, the first depth camera 104 coordinate of the unmanned aerial vehicle is transformed to be under a base mark of the unmanned aerial vehicle, and finally the first depth camera is transformed to be under a world coordinate system; the motion of the unmanned ship in the plane can be regarded as rigid motion, the rigid motion is converted into a world coordinate system through homogeneous coordinate transformation, and the unmanned ship of the unmanned plane is located in the world coordinate system. Through the coordinate transformation, subsequent path planning is facilitated.
Further, unmanned aerial vehicle, unmanned ship and workstation's communication, unmanned aerial vehicle, unmanned ship and workstation constitute in this communication system, and the workstation belongs to the main control computer, and unmanned aerial vehicle and unmanned ship are as following the machine, connect through the WIFI LAN between the three, and the main control computer is responsible for controlling unmanned aerial vehicle and unmanned ship, mainly realizes: the unmanned aerial vehicle and the unmanned ship realize the transmission of images and the interaction of environmental information. By the communication mode, the reliability of communication among the three is ensured.
Furthermore, the unmanned ship is positioned, the position of the unmanned ship in a map is mainly obtained, the unmanned ship is influenced by wind speed waves when sailing on the water surface, so that the unmanned ship is positioned in an offset mode, the high-precision inertial navigation module and the GPS module are combined to perform global positioning, the state errors of the inertial navigation module and the GPS module are estimated in an expanded Kalman filtering loose coupling mode, and the navigation systems are corrected through feedback through estimation of the state errors, so that the positioning precision is improved. Through the positioning mode, the unmanned ship can be accurately positioned in a dynamic environment.
Further, planning a path of the unmanned ship, dividing a two-dimensional grid map and areas by the ground workstation, acquiring a world coordinate system of each unmanned ship, and obtaining a garbage coordinate relation of a water area in which the unmanned ship is responsible through coordinate transformation; the unmanned ship carries out path planning from near to far according to the received garbage coordinate information of the water area in which the unmanned ship is responsible, global path planning is carried out by using an A-star algorithm in navigation, and the optimal route from the unmanned ship to the target position is calculated. The A-algorithm is a most effective direct search method for solving the shortest path in the static road network, and is also an effective algorithm for solving a plurality of search problems. The closer the distance estimation value in the algorithm is to the actual value, the faster the final search speed is. And further, the optimal path planning of the unmanned ship can be rapidly realized.
Further, the garbage picking of the mechanical arm mainly comprises the steps of performing target detection on the floating garbage on the water surface by using point cloud generated by the second depth camera 204 after the garbage reaches the position, calculating cloud coordinates of points in the identification frame, converting the acquired garbage coordinates into a mechanical arm coordinate system, and starting motion planning and grabbing by the mechanical arm. The mechanical arm is planned to move through a Moveit function package based on the ROS frame, and garbage is picked up. The Moveit is the most advanced software aiming at the mobile operation at present. It combines the latest advances in motion planning, manipulation, three-dimensional perception, kinematics, control and navigation.
Example 2:
the operation method of the water surface floating garbage removing equipment with the cooperation of the unmanned aerial vehicle and the unmanned ship comprises the following steps:
s1 is started;
s2, enabling the unmanned aerial vehicle unmanned ship to reach a target water area:
step A1: the unmanned ship unmanned aerial vehicle reaches a target water area;
step A2: checking the surrounding environment of the target water area;
s3, the unmanned aerial vehicle unmanned ship stops still, and wireless communication is established with the ground workstation:
step B1: starting an unmanned ship, an unmanned aerial vehicle and a ground workstation;
and step B2: checking the running condition of the equipment;
and step B3: inputting an IP address and establishing communication among the three through WIFI data transmission;
s4, drawing the SLAM of the target water area according to a planned route, and identifying garbage:
step C1: vertically lifting the unmanned aerial vehicle to a proper height;
and step C2: starting SLAM map building, and building a two-dimensional grid map by adopting a Cartogrph algorithm;
and C3: identifying the floating garbage on the water surface through a first depth camera by using a deep learning YOLOV3 algorithm while establishing a map;
s5, returning by the unmanned aerial vehicle:
step D1: the unmanned aerial vehicle returns to the ground workstation with the acquired garbage coordinate information and the two-dimensional map;
s6, dividing the target water area by the ground station according to the number of unmanned ships, wherein one ship is responsible for one water area:
step E1: processing a two-dimensional map and garbage coordinate information established by the unmanned aerial vehicle;
and E2: reasonably dividing the responsible water area of each ship according to the map, the number of ships and the water area environment;
s7, converting the coordinates of the identified garbage into the world coordinate system:
step F1: converting the garbage coordinate calculated by the unmanned aerial vehicle into a world coordinate system by the ground workstation;
step F2: converting the coordinate system of the unmanned ship into a world coordinate system by the ground workstation;
step F3: transmitting the garbage coordinates under each area to an unmanned ship in charge of the area;
s8, global path planning is carried out for the garbage coordinate traversal of the water area in charge of each ship:
step G1: receiving garbage coordinate information under a world coordinate system by the unmanned ship;
step G2: setting a navigation point from near to far according to the garbage coordinate information;
step G3: carrying out global path planning according to the grid map, and finding out an optimal path through an A-star algorithm;
s9, enabling the unmanned ship to reach a target point:
step H1: the unmanned ship sequentially goes to the areas where the garbage are located according to the planned route obtained in the S8;
s10, if the in-place rotation searching target is not identified by identifying the garbage:
step I1: when the unmanned ship reaches the region where the water surface floating garbage is located, the unmanned ship identifies the garbage by using a YOLOV3 target identification algorithm;
step I2: if the garbage is not identified, the unmanned ship rotates in situ to search for a target;
s11, mechanical arm grabbing:
step J1: identifying a target, processing point cloud information in an identification frame, acquiring garbage coordinate information, and calculating coordinates of garbage relative to the mechanical arm through coordinate conversion;
step J2: moveit is adopted to plan a mechanical arm movement route, and a mechanical arm clamping jaw moves to reach a garbage position for grabbing;
s12 is heading to an unscanned area:
step K1: after the work of the area is finished, carrying the unmanned plane with the unmanned ship to work in the next subarea, and repeating the steps S3-S11;
step K2: if the cleaning work of all the areas is completed, S13 is performed, and the work is finished.
And S13 is finished.