A pig farm inspection robot based on UWB positioning
By using UWB positioning and obstacle avoidance technology in pig farm inspection robots, combined with camera deep learning recognition, the problem of existing pig farm inspection robots being unable to adapt to different environments is solved, and efficient and accurate pig farm inspections and data are achieved. deal with.
Patent Information
- Application Number
- CN201910609803.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-07-08
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2039-07-08
AI Technical Summary
Existing pig farm inspection robots cannot adjust in real time in different environments, resulting in the inability to adapt to the inspection needs of different pig farms and the inability to achieve efficient and accurate data processing.
An inspection robot based on UWB positioning is used, combined with a shock-absorbing walking mechanism, obstacle avoidance mechanism, ultrasonic obstacle avoidance system, surveillance camera system and main control system, to achieve high-precision positioning of the robot in different environments through UWB positioning technology and obstacle avoidance algorithms. and walking optimization, using cameras and deep learning frameworks to identify and judge pig growth conditions.
It significantly improves the accuracy and safety of the inspection process, realizes safe, fast and intelligent inspection, reduces costs, and improves the efficiency of the overall workflow.
Smart Images

Figure CN110480644B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent pig farm inspection, and in particular to a pig farm inspection robot based on UWB positioning. Background Art
[0002] Currently, large-scale smart pig farms have begun to be used in various provinces in China. Large-scale pig farms have high requirements for monitoring personnel, who need to be disinfected and isolated to reduce the entry of external pathogens into the pig farms.
[0003] Since the individual targets being monitored are obviously different and the environment in which the targets are located is constantly changing, the requirements for shooting are very high. Target monitoring usually responds immediately to the target's actions, so the real-time nature of the inspection should also be met.
[0004] However, in actual applications, robots cannot perform intelligent inspections in different pig farms. The reason is that the pig farm inspection robots currently used cannot be adjusted in real time in different environments, so as to be applied to pig farms in different environments. Summary of the invention
[0005] The purpose of the present invention is to provide a pig farm inspection robot based on UWB positioning to improve the data processing efficiency and accuracy during the pig farm inspection process.
[0006] In order to achieve the above tasks, the present invention adopts the following technical solutions:
[0007] A pig farm inspection robot based on UWB positioning includes a robot body, a shock-absorbing walking mechanism, an obstacle avoidance mechanism, an ultrasonic obstacle avoidance system, a UWB positioning system, a monitoring camera system and a main control system, wherein:
[0008] The robot body includes a chassis, a support plate is installed above the chassis through a bracket, and a stand is arranged above the support plate;
[0009] The shock-absorbing walking mechanism includes shock-absorbing driving wheels arranged at the four corners of the bottom of the chassis, the shock-absorbing driving wheels include a chassis, a side frame is arranged on one side of the chassis, and a shock-absorbing spring is arranged on the other side; a roller is installed on the side of the chassis, and a motor seat is arranged on the chassis, a first driving motor and a steering mechanism are installed on the motor seat, and the first driving motor and the steering mechanism are connected to the roller; a hinge is arranged on the side frame, and the hinge and the shock-absorbing driving wheel are connected to the bottom of the chassis;
[0010] The obstacle avoidance mechanism is arranged at the four corners above the chassis, and includes a fixed column fixed on the chassis, a through hole is radially provided on the fixed column, a slide rod is installed through the through hole, and the front end of the slide rod is fixed with two obstacle avoidance baffles whose ends are connected and perpendicular to each other, and each obstacle avoidance baffle is parallel to the side of the chassis closest to it; a stopper is arranged at the rear end of the slide rod, and a return spring is sleeved on the slide rod between the stopper and the fixed column;
[0011] The ultrasonic obstacle avoidance system includes 10 ultrasonic modules distributed on the side of the chassis, numbered from A to J, and their positions are: A in the middle of the front side of the chassis, B in the middle of the rear side of the chassis, C in the front left side of the chassis, D in the rear left side of the chassis, E in the front right side of the chassis, F in the rear right side of the chassis, G in the left front side of the chassis, H in the right front side of the chassis, I in the left rear side of the chassis, and J in the right rear side of the chassis;
[0012] The UWB positioning system includes a UWB positioning tag arranged above the chassis and four base stations arranged around the pig farm. Using UWB positioning technology, the UWB positioning tag and the four base stations perform real-time distance measurement, and the spatial position of the robot is calculated based on the distance measurement results to achieve the positioning purpose.
[0013] The monitoring camera system includes a lifting frame, which is driven by a lifting drive mechanism arranged inside a stand; the lifting drive mechanism includes a screw rod and multiple optical axes arranged between the top and bottom of the stand, wherein a driving plate is arranged on the screw rod, a second driving motor is arranged at the bottom of the support plate, and the second driving motor is connected to the screw rod through a coupling; a threaded hole is provided on the driving plate, and the driving plate is assembled on the screw rod through the threaded hole; a sliding sleeve connected to the driving plate is arranged on the bottom plate of the lifting frame, and the sliding sleeve is mounted on the optical axis; a camera is installed on the top plate of the lifting frame through a radial bearing; a display is arranged on the front side of the stand, and an ammonia detection module is arranged on the support plate;
[0014] The main control system includes a main controller and an industrial computer. The main controller is responsible for the overall control of the robot. The first drive motor, the second drive motor, the ultrasonic module, the UWB positioning tag, the ammonia detection module, the industrial computer, the camera, and the display are all connected to the main controller; the industrial computer is used to process the image information of the pigs collected by the camera to obtain information on the growth of the pigs.
[0015] Furthermore, the main controller is provided with an obstacle avoidance algorithm, which is:
[0016] When the robot is walking, it obtains the distance L1 of the nearest obstacle in front through the ultrasonic module A. If L1 is greater than the set value, it is considered that there is no obstacle in front and the robot keeps walking along the set inspection route. When any value from L3 to L10 changes, it indicates that there is an obstacle at the changed position. At this time, the robot is controlled to stop walking, and then the robot's shock-absorbing drive wheel is turned to move in the opposite direction of the obstacle to avoid the obstacle, and then the shock-absorbing drive wheel is turned back to the original direction to continue moving.
[0017] Wherein, L3 to L10 refer to the distance between the ultrasonic modules numbered C to J and the closest obstacle avoidance baffles.
[0018] Furthermore, the main controller is provided with a UWB positioning algorithm, and the UWB positioning algorithm is:
[0019] The UWB positioning tag on the robot receives signals from four base stations in real time, and measures the distances to the four ground base stations A1, A2, A3, and A4. After sliding median filtering, the four distances are obtained as R1, R2, R3, and R4 respectively. The three-point positioning algorithm is used to locate the plane coordinates (X4, Y4) of the robot relative to the A1, A2, and A3 base stations.
[0020] Similarly, calculate the plane coordinates (X1, Y1) of the robot relative to the A2, A3, A4 base stations, the plane coordinates (X2, Y2) of the robot relative to the A1, A3, A4 base stations, and the plane coordinates (X3, Y3) of the robot relative to the A1, A2, A4 base stations; then reduce the positioning error by taking the average value, and the final plane coordinates (X, Y) of the robot are [X=(X1+X2+X3+4) / 4, Y=(Y1+Y2+Y3+Y4) / 4]; correct the position of the robot on the inspection route by using the plane coordinates of the robot.
[0021] Furthermore, the processing of the pig image information collected by the camera to obtain the pig growth information includes:
[0022] (1) Obtain multiple photos of pigs from the pig farm in advance and establish an image database;
[0023] (2) Build a deep learning framework, use images in the image database to train the convolutional neural network, and save the trained network model;
[0024] (3) When the robot moves along the set inspection route, it uses the camera to obtain images of the same pig in different directions and transmits them to the industrial computer. The industrial computer uses the trained network model to recognize the images and obtain the outline of the pig in different directions. Then, a three-dimensional model of the pig is established based on this. The volume of the pig is calculated using the three-dimensional model and then multiplied by the average density of the pig to obtain the weight of the pig, thereby judging the growth of the pig. Finally, the growth status of each pig is saved.
[0025] Furthermore, the inspection process of the robot is as follows:
[0026] Transport the robot to the designated starting point and set multiple nodes to form the inspection route of the pig farm inspection robot;
[0027] During the walking process, the robot continuously obtains the current position of the robot through the UWB positioning algorithm and optimizes the position; when passing through small obstacle areas such as pig farm fences, the robot uses the obstacle avoidance mechanism and ultrasonic obstacle avoidance system to optimize the walking direction through the obstacle avoidance algorithm to avoid small obstacles;
[0028] During the inspection process of the inspection robot, the camera is turned on and the height and angle of the camera are adjusted to perform visual recognition, collect images of the inspection robot pigs and identify and judge the growth conditions of the pigs; in addition, during the inspection process, the robot turns on the ammonia detection module to detect the concentration of ammonia in the environment; the display shows the ammonia concentration, the current robot driving speed, and the number of pigs that meet the standards and those that do not meet the standards in real time, and sends this information to the pig farm administrator via wireless transmission.
[0029] The present invention has the following technical features:
[0030] 1. The inspection robot of the present invention significantly improves the walking accuracy compared with the existing device. Ultrasonic autonomous ranging can reduce the robot's walking error, improve the safety factor of the robot's inspection process, and realize safe, fast and intelligent inspection.
[0031] 2. The inspection robot of the present invention has a simple structure, reduces costs, has a high cost-performance ratio, can achieve high-precision positioning and provides a very complete set of algorithm combinations, which connects the nodes in the inspection robot's workflow in series, making the overall workflow more efficient. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a schematic diagram of the overall structure of the present invention;
[0033] Figure 2 It is a side view structural schematic diagram of the present invention;
[0034] Figure 3 It is a structural diagram of the shock-absorbing walking mechanism;
[0035] Figure 4 It is a structural diagram of the obstacle avoidance mechanism;
[0036] Figure 5 This is a schematic diagram of the robot passing through the railing area;
[0037] Figure 6 This is a schematic diagram of obstacle avoidance and ranging during the robot's walking process;
[0038] Figure 7 Schematic diagram of UWB positioning for robots;
[0039] Figure 8 This is a schematic diagram of the robot's working process.
[0040] Explanation of numbers in the figure: 1 roller, 2 steering mechanism, 3 motor seat, 4 first drive motor, 5 side frame, 6 hinge, 7 shock-absorbing spring, 8 chassis, 9 fixing column, 10 return spring, 11 obstacle avoidance baffle, 111 sliding rod, 112 obstacle avoidance mechanism, 113 block, 12 ultrasonic module, 13 main controller, 14 UWB positioning tag, 15 industrial computer, 16 ammonia detection module, 17 support plate, 18 second drive motor, 19 coupling, 20 screw rod, 21 stand, 22 optical axis, 23 sleeve, 24 drive plate, 25 lifting frame, 26 bottom plate, 27 radial bearing, 28 top plate, 29 camera, 30 display. DETAILED DESCRIPTION
[0041] The present invention discloses a pig farm inspection robot based on UWB positioning, such as Figures 1 to 8 As shown, it includes a robot body, a shock-absorbing walking mechanism, an obstacle avoidance mechanism 11, an ultrasonic obstacle avoidance system, a UWB positioning system, a monitoring camera system and a main control system, wherein:
[0042] 1. Robot body
[0043] The robot body includes a chassis 8, a support plate 17 is installed on the chassis 8 through a bracket, and a stand 21 is arranged on the support plate 17; wherein, the bottom of the chassis 8 is used to install a shock-absorbing walking mechanism, and the top of the chassis 8 is used to install an obstacle avoidance mechanism 11, an ultrasonic obstacle avoidance system, a UWB positioning system, and a main control system, etc.; and the monitoring camera system is installed on the stand 21. In this embodiment, the bracket and the stand 21 are both rectangular frame structures.
[0044] 2. Shock-absorbing walking mechanism
[0045] The shock-absorbing walking mechanism includes shock-absorbing driving wheels arranged at the four corners of the bottom of the chassis 8, and the shock-absorbing driving wheels include a chassis, a side frame 5 is arranged on one side of the chassis, and a shock-absorbing spring 7 is arranged on the other side; the roller 1 is installed on the side of the chassis, and a motor seat 3 is arranged on the chassis, and a first driving motor 4 and a steering mechanism 2 are installed on the motor seat 3, and the first driving motor 4 and the steering mechanism 2 are connected to the roller 1; a hinge 6 is arranged on the side frame 5, and the hinge 6 and the shock-absorbing spring 7 are all connected to the bottom of the chassis 8.
[0046] The shock-absorbing walking mechanism designed in this scheme includes four shock-absorbing driving wheels, which are connected to the chassis 8 by a movable connection method, that is, on the one hand, the chassis 8 is connected by a hinge 6 with a certain degree of rotational freedom, and on the other hand, it is connected by a shock-absorbing spring 7. The roller 1 is driven by the first drive motor 4, and the steering mechanism 2 is used to control the steering of the roller 1. The steering mechanism 2 has many applications in the prior art and will not be described here. When the robot walks on potholes or bumps on the road, the angle between the chassis and the chassis 8 changes due to the action of the hinge 6. In this process, the shock-absorbing spring 7 is compressed or stretched, so that the roller 1 can maintain stable contact with the ground while ensuring the smooth movement of the chassis 8, thereby achieving a good shock-absorbing effect.
[0047] 3. Obstacle avoidance mechanism 11
[0048] In the present scheme, an obstacle avoidance mechanism 11 is respectively arranged at the four corners above the chassis 8. As shown in the figure, each obstacle avoidance mechanism 11 includes a fixed column 9 fixed on the chassis 8. A through hole is radially opened on the fixed column 9, and a sliding rod 111 is installed through the through hole. The front end of the sliding rod 111 is fixed with two obstacle avoidance baffles 112 whose ends are connected and perpendicular to each other, and each obstacle avoidance baffle 112 is parallel to the side of the chassis 8 closest to it; a stopper 113 is arranged at the rear end of the sliding rod 111, and a return spring 10 is mounted on the sliding rod 111 between the stopper 113 and the fixed column 9.
[0049] Since there are some relatively small obstacles in many places in the pig farm environment, such as the railings of the pigsty, the ultrasonic wave emitted by the ultrasonic module 12 is not ideal for detecting small obstacles. In order to improve the detection effect, and to protect the robot from being damaged by hitting obstacles while walking, an obstacle avoidance mechanism 11 is designed in this solution. As shown in the figure, the chassis 8 in this solution is a rectangular structure, and an obstacle avoidance mechanism 11 is set at each of the four corners. The axial direction of the slide bar 111 in the obstacle avoidance mechanism 11 is on the extension line of the diagonal of the chassis 8; in this way, the obstacle avoidance baffle 112 at the front end of the slide bar 111 is located on different sides of the chassis 8, as shown in the figure. When the robot is walking, if the ultrasonic obstacle avoidance system fails to detect a small obstacle and causes the robot to come into contact with a small obstacle, the obstacle avoidance baffle 112 is located so as to protrude from the outer surface of the robot and is most likely to come into contact with the obstacle. After coming into contact with the obstacle, the return spring 10 is stretched and the slide bar 111 moves axially. On the one hand, this allows the robot to be elastically buffered when it comes into contact with the obstacle, thereby protecting the robot body. On the other hand, the position of the obstacle can be determined by detecting the position of the obstacle avoidance baffle 112, thereby providing necessary information for the ultrasonic obstacle avoidance system.
[0050] 4. Ultrasonic obstacle avoidance system
[0051] The ultrasonic obstacle avoidance system includes a plurality of ultrasonic modules 12 distributed on the side of the chassis 8. As shown in the figure, a total of 10 ultrasonic modules 12 are arranged in this scheme, numbered from A to J, and their positions are: A is in the middle of the front side of the chassis 8, B is in the middle of the rear side of the chassis 8, C is in the front left side of the chassis 8, D is in the rear left side of the chassis 8, E is in the front right side of the chassis 8, F is in the rear right side of the chassis 8, G is in the left front side of the chassis 8, H is in the right front side of the chassis 8, I is in the left rear side of the chassis 8, and J is in the right rear side of the chassis 8.
[0052] Among them, A and B are used to detect the distance of obstacles in front of and behind the robot, respectively, and the distances of the closest obstacles are recorded as L1 and L2 respectively; when the detection values of L1 and L2 are greater than the safety distance, for example, the safety distance is set to 1m, it is considered that there are no obstacles in front or behind. C to J correspond to the eight obstacle avoidance baffles 112 in this solution, and are used to detect the distances to the obstacle avoidance baffles 112 closest to them, and the distances are recorded as L3 to L10 respectively.
[0053] The specific setting of the obstacle avoidance baffles 112 was introduced above, that is, two obstacle avoidance baffles 112 are set in a group and set at the corners of the chassis 8. Taking the figure as an example, for the obstacle avoidance mechanism 11 set at the left front corner of the chassis 8, the ultrasonic modules 12 closest to the two obstacle avoidance baffles 112 on the obstacle avoidance mechanism 11 are C and G. For example, when the robot is walking, the obstacle avoidance mechanism 11 touches an obstacle. Then, the ultrasonic modules 12C and G can detect the distances L3 and L7 to the obstacle avoidance baffles 112 closest to them, and know that the obstacle is located at the approximate left front side or front left side of the robot, as well as the distance of the obstacle. After knowing this information, the robot can turn and avoid the obstacle at this position.
[0054] Since the main purpose of the robot in this solution is to conduct inspections, there are no high requirements for accurate detection of obstacles. Therefore, it is only necessary to know the approximate location of the obstacle so that the robot can avoid it to meet the design requirements.
[0055] If precise positioning is required, the obstacle avoidance mechanism 11 can be improved, that is, a sliding rod 111, a fixing column 9, and a return spring 10 mechanism are set at the rear of an obstacle avoidance baffle 112, and an obstacle avoidance baffle 112 is set on the front side of C to J respectively, so that more precise obstacle positioning can be achieved.
[0056] 5.UWB positioning system
[0057] The UWB positioning system includes a UWB positioning tag 14 arranged above the chassis 8, and four base stations arranged around the pig farm, namely the first base station to the fourth base station; the connection lines of the four base stations are not on the same straight line; the basic function of the UWB positioning system is to use UWB positioning technology, the UWB positioning tag 14 and the four base stations to measure the distance in real time, and calculate the spatial position of the robot according to the distance measurement results to achieve the positioning purpose.
[0058] 6. Surveillance camera system
[0059] The monitoring camera system includes a lifting frame 25, which is driven by a lifting drive mechanism arranged inside a stand 21; the lifting drive mechanism includes a screw rod 20 arranged between the top and the bottom of the stand and a plurality of optical axes 22, wherein a driving plate 24 is arranged on the screw rod 20, a second driving motor 18 is arranged at the bottom of the support plate 17, and the second driving motor 18 is connected to the screw rod 20 through a coupling 19; a threaded hole is provided on the driving plate 24, and the driving plate 24 is assembled on the screw rod 20 through the threaded hole;
[0060] The lifting frame 25 has a top plate 28 and a bottom plate 26. A sleeve 23 connected to the driving plate 24 is arranged on the bottom plate 26 of the lifting frame 25, and the sleeve 23 is mounted on the optical axis 22. A camera 29 is installed on the top plate 28 of the lifting frame 25 through a radial bearing 27. A display 30 is arranged on the front side of the stand 21, and an ammonia detection module 16 is arranged on the support plate 17.
[0061] The screw rod 20 rotates under the driving action of the second driving motor 18, driving the driving plate 24 to move up and down on the screw rod 20; when the driving plate 24 moves, it drives the sliding sleeve 23 to move synchronously, thereby driving the lifting frame 25 to achieve the lifting function. The camera 29 can rotate, and cooperate with the lifting frame 25 to adjust the height and plane rotation position of the camera 29 to collect image information.
[0062] 7. Main control system
[0063] The main control system includes a main controller 13 and an industrial computer 15. The main controller 13 is responsible for the overall control of the robot. The first drive motor 4, the second drive motor 18, the ultrasonic module 12, the UWB positioning tag 14, the ammonia detection module 16, the industrial computer 15, the camera 29, and the display 30 are all connected to the main controller 13; the industrial computer 15 is used to process the image information of the pig collected by the camera 29 to obtain the growth information of the pig; the main controller 13 is also connected to a wireless transceiver module, which is responsible for wireless communication and data reception and transmission with the outside world.
[0064] The main controller 13 is provided with an obstacle avoidance algorithm and a UWB positioning algorithm, so as to enable the robot to move along a set route and avoid obstacles.
[0065] Wherein, the obstacle avoidance algorithm is:
[0066] When the robot is walking, it obtains the distance L1 of the nearest obstacle in front through the ultrasonic module 12A. If L1 is greater than the set value, it is considered that there is no obstacle in front and the robot maintains the original route. When any value from L3 to L10 changes, it indicates that there is an obstacle at the changed position. At this time, the robot is controlled to stop walking, and then the robot's shock-absorbing drive wheel is turned to move in the opposite direction of the obstacle to avoid the obstacle, and then the shock-absorbing drive wheel is turned back to the original direction to continue moving.
[0067] Among them, changes in L3 and L7 indicate that there is an obstacle in the left front or the front left, changes in L5 and L8 indicate that there is an obstacle in the right front or the front right; changes in L4 and L9 indicate that there is an obstacle in the left rear or the rear left, and changes in L6 and L10 indicate that there is an obstacle in the right rear or the rear right. When there is an obstacle, the robot is controlled to move in the opposite direction, moving away from the obstacle along the axial direction of the slide bar 111 of the obstacle avoidance mechanism 11 that touches the obstacle, and the movement distance S only needs to be greater than 2 times the change (the difference between the default value of L3 to L10 when not touching the obstacle and the value after touching the obstacle) to meet the requirement of avoiding the obstacle; in the process of obstacle avoidance control, the PID controller is used to adjust the speed of the first drive motor 4.
[0068] The UWB positioning algorithm is:
[0069] Set the robot's inspection route in the pig farm and make the robot move according to the inspection route;
[0070] The UWB positioning tag 14 on the robot receives the signals of the four base stations in real time, and measures the distances to the four ground base stations A1, A2, A3, and A4, and obtains four distances R1, R2, R3, and R4 after sliding median filtering; the plane coordinates (X4, Y4) of the robot relative to the A1, A2, and A3 base stations are located by a three-point positioning algorithm;
[0071] Similarly, calculate the plane coordinates (X1, Y1) of the robot relative to the A2, A3, A4 base stations, the plane coordinates (X2, Y2) of the robot relative to the A1, A3, A4 base stations, and the plane coordinates (X3, Y3) of the robot relative to the A1, A2, A4 base stations; then reduce the positioning error by taking the average value, and the final plane coordinates (X, Y) of the robot are [X=(X1+X2+X3+4) / 4, Y=(Y1+Y2+Y3+Y4) / 4]; correct the position of the robot on the inspection route by using the plane coordinates of the robot.
[0072] In this solution, the industrial computer 15 is used to process the image information of the pigs collected by the camera 29 to obtain the growth information of the pigs, including:
[0073] (1) Obtain multiple photos of pigs from the pig farm in advance and establish an image database;
[0074] (2) Build a deep learning framework, use images in the image database to train the convolutional neural network, and save the trained network model;
[0075] (3) When the robot moves along the set inspection route, it obtains images of the same pig in different directions through the camera 29 and transmits them to the industrial computer 15. The industrial computer 15 uses the trained network model to recognize the image and obtain the outline of the pig in different directions. Then, a three-dimensional model of the pig is established based on this. The volume of the pig is calculated by the three-dimensional model and then multiplied by the average density of the pig to obtain the weight of the pig, thereby judging the growth status of the pig (if the weight is less than the threshold, it is considered to be unsatisfactory, otherwise it is considered to be up to standard); finally, the growth status of each pig is saved.
[0076] The ammonia detection module 16 is used to detect the ammonia concentration in the current environment and display it in real time on the display 30. At the same time, the display 30 also displays the current robot driving speed and the number of pigs that meet or fail to meet the standards.
[0077] The overall working process of the present invention is:
[0078] Transport the robot to the designated starting point and set multiple nodes to form the inspection route of the pig farm inspection robot;
[0079] During the walking process, the robot continuously obtains the current position of the robot through the UWB positioning algorithm and optimizes the position; when passing through small obstacle areas such as pig farm fences, the robot uses the obstacle avoidance mechanism 11 and the ultrasonic obstacle avoidance system to optimize the walking direction through the obstacle avoidance algorithm to avoid small obstacles;
[0080] During the inspection process of the inspection robot, the camera 29 is turned on and the height and angle of the camera 29 are adjusted to perform visual recognition, collect images of the inspection robot pigs and identify and judge the growth conditions of the pigs; in addition, during the inspection process, the robot turns on the ammonia detection module 16 to detect the concentration of ammonia in the environment; the display 30 displays the ammonia concentration, the current robot driving speed, and the number of pigs that meet the standards and those that do not meet the standards in real time, and sends this information to the pig farm administrator via wireless transmission.
Claims
1. A pig farm inspection robot based on UWB positioning, characterized in that: It includes a robot body, a shock-absorbing walking mechanism, an obstacle avoidance mechanism (11), an ultrasonic obstacle avoidance system, a UWB positioning system, a monitoring camera system and a main control system, wherein: The robot body comprises a chassis (8), a support plate (17) is installed above the chassis (8) via a bracket, and a stand (21) is arranged above the support plate (17); The shock-absorbing walking mechanism comprises shock-absorbing driving wheels arranged at four corners of the bottom of a chassis (8), wherein the shock-absorbing driving wheels comprise a chassis, a side frame (5) is arranged on one side of the chassis, and a shock-absorbing spring (7) is arranged on the other side; a roller (1) is installed on the side of the chassis, and a motor seat (3) is arranged on the chassis, a first driving motor (4) and a steering mechanism (2) are installed on the motor seat (3), and the first driving motor (4) and the steering mechanism (2) are connected to the roller (1); a hinge (6) is arranged on the side frame (5), and the hinge (6) and the shock-absorbing spring (7) are both connected to the bottom of the chassis (8); The obstacle avoidance mechanism (11) is arranged at four corners above the chassis (8), and comprises a fixing column (9) fixed on the chassis (8), a through hole is radially provided on the fixing column (9), a sliding rod (111) is installed through the through hole, and two obstacle avoidance baffles (112) whose ends are connected and perpendicular to each other are fixed at the front end of the sliding rod (111), and each obstacle avoidance baffle (112) is parallel to the side surface of the chassis (8) closest to it; a stopper (113) is arranged at the rear end of the sliding rod (111), and a return spring (10) is sleeved on the sliding rod (111) between the stopper (113) and the fixing column (9); The ultrasonic obstacle avoidance system comprises a plurality of (10) ultrasonic modules (12) distributed on the side of the chassis (8), numbered from A to J, and their positions are respectively: A is in the middle of the front side of the chassis (8), B is in the middle of the rear side of the chassis (8), C is in the front left side of the chassis (8), D is in the rear left side of the chassis (8), E is in the front right side of the chassis (8), F is in the rear right side of the chassis (8), G is in the left front side of the chassis (8), H is in the right front side of the chassis (8), I is in the left rear side of the chassis (8), and J is in the right rear side of the chassis (8); The UWB positioning system comprises a UWB positioning tag (14) arranged above the chassis (8) and four base stations arranged around the pig farm; using the UWB positioning technology, the UWB positioning tag (14) measures distances with the four base stations in real time, and the spatial position of the robot is calculated based on the distance measurement results to achieve the positioning purpose; The monitoring camera system comprises a lifting frame (25), the lifting frame (25) is driven by a lifting drive mechanism arranged inside a vertical frame (21); the lifting drive mechanism comprises a screw rod (20) arranged between the top and the bottom of the vertical frame (21) and a plurality of optical axes (22), wherein a driving plate (24) is arranged on the screw rod (20), a second driving motor (18) is arranged at the bottom of the support plate (17), and the second driving motor (18) is connected to the screw rod (20) via a coupling (19); the driving plate (24) A threaded hole is provided on the lifting frame (25), and the driving plate (24) is assembled on the screw rod (20) through the threaded hole; a sliding sleeve (23) connected to the driving plate (24) is provided on the bottom plate (26) of the lifting frame (25), and the sliding sleeve (23) is sleeved on the optical axis (22); a camera (29) is installed on the top plate (28) of the lifting frame (25) through a radial bearing (27); a display (30) is provided on the front side of the stand (21), and an ammonia detection module (16) is provided on the support plate (17); The main control system comprises a main controller (13) and an industrial computer (15), wherein the main controller (13) is responsible for the overall control of the robot, and the first drive motor (4), the second drive motor (18), the ultrasonic module (12), the UWB positioning tag (14), the ammonia detection module (16), the industrial computer (15), the camera (29), and the display (30) are all connected to the main controller (13); the industrial computer (15) is used to process the image information of the pig collected by the camera (29) to obtain the growth information of the pig; The main controller (13) is provided with an obstacle avoidance algorithm, which is: When the robot is walking, the ultrasonic module (12) A obtains the distance L1 of the nearest obstacle in front. If L1 is greater than a set value, it is considered that there is no obstacle in front and the robot maintains the set inspection route. When any value from L3 to L10 changes, it indicates that there is an obstacle at the changed position. At this time, the robot is controlled to stop walking, and then the shock-absorbing driving wheel of the robot is turned to move in the opposite direction of the position where the obstacle is located to avoid the obstacle, and then the shock-absorbing driving wheel is turned back to the original direction to continue moving. Wherein, the L3 to L10 refer to the distance between the ultrasonic modules (12) numbered from C to J and the obstacle avoidance baffle (112) closest thereto; The inspection process of the robot is as follows: Transport the robot to the designated starting point and set multiple nodes to form the inspection route of the pig farm inspection robot; During the walking process, the robot continuously obtains the current position of the robot through the UWB positioning algorithm and optimizes the position; when passing through small obstacle areas such as pig farm fences, the robot uses the obstacle avoidance mechanism (11) and the ultrasonic obstacle avoidance system to optimize the walking direction through the obstacle avoidance algorithm to avoid small obstacles; During the inspection process of the inspection robot, the camera (29) is turned on and the height and angle of the camera (29) are adjusted to perform visual recognition, collect images of the inspection robot pigs and identify and judge the growth conditions of the pigs; in addition, during the inspection process, the robot turns on the ammonia detection module (16) to detect the concentration of ammonia in the environment; the display (30) displays the ammonia concentration, the current robot driving speed, and the number of pigs that meet the standards and those that do not meet the standards in real time, and sends this information to the administrator of the pig farm via wireless transmission.
2. The pig farm inspection robot based on UWB positioning as claimed in claim 1, characterized in that: The main controller is provided with a UWB positioning algorithm, which is: The UWB positioning tag (14) on the robot receives signals from four base stations in real time, and measures the distances to the four ground base stations A1, A2, A3, and A4, and obtains four distances R1, R2, R3, and R4 after sliding median filtering; the plane coordinates (X4, Y4) of the robot relative to the A1, A2, and A3 base stations are located by a three-point positioning algorithm; Similarly, calculate the plane coordinates (X1, Y1) of the robot relative to the A2, A3, A4 base stations, the plane coordinates (X2, Y2) of the robot relative to the A1, A3, A4 base stations, and the plane coordinates (X3, Y3) of the robot relative to the A1, A2, A4 base stations; then use the average value to reduce the positioning error, and the final plane coordinates (X, Y) of the robot are [X=(X1+X2+X3+4) / 4, Y=(Y1+Y2+Y3+Y4) / 4]; use the robot's plane coordinates to correct the robot's position on the inspection route.
3. The pig farm inspection robot based on UWB positioning as claimed in claim 1, characterized in that: The processing of the pig image information collected by the camera (29) to obtain the pig growth information includes: (1) Obtain multiple photos of pigs from the pig farm in advance and establish an image database; (2) Build a deep learning framework, use images in the image database to train the convolutional neural network, and save the trained network model; (3) When the robot moves along the set inspection route, it obtains images of the same pig in different directions through the camera (29) and transmits them to the industrial control computer (15). The image is recognized by the trained network model in the industrial control computer (15) to obtain the outline of the pig in different directions. A three-dimensional model of the pig is then established based on this. The volume of the pig is calculated by the three-dimensional model and then multiplied by the average density of the pig to obtain the weight of the pig, thereby judging the growth of the pig. Finally, the growth status of each pig is saved.
