IMAGE-BASED TRAJECTORY PLANNING METHOD AND MOVEMENT CONTROL METHOD AND MOBILE MACHINE USING THE SAME
20220339786 · 2022-10-27
Inventors
Cpc classification
B25J9/1664
PERFORMING OPERATIONS; TRANSPORTING
G06T3/20
PHYSICS
International classification
G06F17/11
PHYSICS
G06T3/20
PHYSICS
Abstract
Image-based trajectory planning for a mobile machine having a camera is disclosed. A trajectory for the mobile machine to move to a referenced target is planned by obtaining, a desired image of the referenced target captured at a desired pose of the trajectory and an initial image of the referenced target captured at an initial pose of the trajectory through the camera of the mobile machine, calculating a homography of the desired image and the initial image; decomposing the homography into an initial translation component and an initial rotation matrix, obtaining optimized translation component(s) corresponding to constraint(s) for the mobile machine based on the initial translation component, obtaining optimized homography(s) based on the optimized translation component(s) and the initial rotation matrix, and obtaining objective image features corresponding to the trajectory based on the optimized homography(s).
Claims
1. A method for planning a trajectory for a mobile machine having a camera, wherein the trajectory comprises a plurality of poses, and the method comprises: obtaining, through the camera of the mobile machine, a desired image of a referenced target captured at a desired pose of the trajectory and an initial image of the referenced target captured at an initial pose of the trajectory, wherein the initial pose is the first of the plurality of poses, and the desired pose is the last of the plurality of poses; calculating a homography of the desired image and the initial image: decomposing the homography into an initial translation component and an initial rotation matrix: obtaining one or more optimized translation components corresponding to one or more constraints for the mobile machine based on the initial translation component; obtaining one or more optimized homographies based on the one or more optimized translation components and the initial rotation matrix; and obtaining a plurality of objective image features corresponding to the trajectory based on the one or more optimized homographies.
2. The method of claim 1, wherein the decomposing the homography into the initial translation component and the initial rotation matrix comprises: decomposing the homography H(t) into a rotation matrix R(t) and a translation component b(t) through an equation of:
3. The method of claim 1, wherein the obtaining the one or more optimized translation components corresponding to the one or more constraints for the mobile machine based on the initial translation component comprises: planning one or more intermediate poses of the trajectory meeting the one or more constraints for the mobile machine based on the initial translation component, wherein the one or more intermediate poses are between the initial pose and the desired pose in the trajectory; and obtaining the one or more optimized translation components based on the initial pose, the one or more planned intermediate poses, and the desired pose of the trajectory.
4. The method of claim 3, wherein each constraint for the mobile machine is represented through one objective function of a translation component, and the obtaining the one or more optimized translation components based on the initial pose, the one or more planned intermediate poses, and the desired pose of the trajectory comprises: minimizing the sum of the objective function of the one or more constraints for the mobile machine; and taking the translation component corresponding to each objective function as an optimized translation component.
5. The method of claim 1, wherein the obtaining the one or more optimized homographies based on the one or more optimized translation components and the initial rotation matrix comprises: calculating the one or more optimized homographies H.sub.r(t) through an equation of:
6. The method of claim 1, wherein the obtaining the plurality of objective image features corresponding to the trajectory based on the one or more optimized homographies comprises: obtaining a plurality of feature points of each of the initial image, the desired image, and one or more intermediate images corresponding to one or more intermediate poses of the trajectory based on the one or more optimized homographies, wherein the one or more intermediate poses are between the initial pose and the desired pose in the trajectory; obtaining a plurality of objective feature points of each of the initial image, the desired image, and the one or more intermediate images by projecting the plurality of obtained feature points of each of the initial image, the desired image, and the one or more intermediate images onto a virtual unitary sphere; and obtaining the plurality of objective image features of each of the initial image, the one or more intermediate images, and the desired image using the plurality of obtained objective feature points of each of the initial image, the one or more intermediate images, and the desired image.
7. A method for controlling a mobile machine having a camera to move according to a trajectory, wherein the trajectory comprises a plurality of poses, and the method comprises: obtaining, through the camera of the mobile machine, a desired image of a referenced target captured at a desired pose of the trajectory and an initial image of the referenced target captured at an initial pose of the trajectory, wherein the initial pose is the first of the plurality of poses, and the desired pose is the last of the plurality of poses; calculating a homography of the desired image and the initial image: decomposing the homography into an initial translation component and an initial rotation matrix; obtaining one or more optimized translation components corresponding to one or more constraints for the mobile machine based on the initial translation component: obtaining one or more optimized homographies based on the one or more optimized translation components and the initial rotation matrix; obtaining a plurality of objective image features corresponding to the trajectory based on the one or more optimized homographies; and controlling the mobile machine to move according to the objective image features corresponding to the trajectory.
8. The method of claim 7, wherein the controlling the mobile machine to move according to the objective image features corresponding to the trajectory comprises: obtaining, through the camera of the mobile machine, a current image of the referenced target captured at a current pose of the mobile machine; obtaining a plurality of feature points of the current image matched with a plurality of feature points of the desired image; obtaining a plurality of objective feature points by projecting the plurality of obtained feature points onto a virtual unitary sphere; obtaining a plurality of current image features of the current image using the plurality of obtained objective feature points: calculating a difference between the current image features of the current image and the objective image features corresponding to the current pose; and controlling the mobile machine to move according to the calculated difference.
9. The method of claim 7, wherein the decomposing the homography into the initial translation component and the initial rotation matrix comprises: decomposing the homography H(t) into a rotation matrix R(t) and a translation component b(t) through an equation of:
10. The method of claim 7, wherein the obtaining the one or more optimized translation components corresponding to the one or more constraints for the mobile machine based on the initial translation component comprises: planning one or more intermediate poses of the trajectory meeting the one or more constraints for the mobile machine based on the initial translation component, wherein the one or more intermediate poses are between the initial pose and the desired pose in the trajectory; and obtaining the one or more optimized translation components based on the initial pose, the one or more planned intermediate poses, and the desired pose of the trajectory.
11. The method of claim 10, wherein each constraint for the mobile machine is represented through one objective function of a translation component, and the obtaining the one or more optimized translation components based on the initial pose, the one or more planned intermediate poses, and the desired pose of the trajectory comprises: minimizing the sum of the objective function of the one or more constraints for the mobile machine; and taking the translation component corresponding to each objective function as an optimized translation component.
12. The method of claim 7, wherein the obtaining the one or more optimized homographies based on the one or more optimized translation components and the initial rotation matrix comprises: calculating the one or more optimized homographies H.sub.r(t) through an equation of:
13. The method of claim 7, wherein the obtaining the plurality of objective image features corresponding to the trajectory based on the one or more optimized homographies comprises: obtaining a plurality of feature points of each of the initial image, the desired image, and one or more intermediate images corresponding to one or more intermediate poses of the trajectory based on the one or more optimized homographies, wherein the one or more intermediate poses are between the initial pose and the desired pose in the trajectory; obtaining a plurality of objective feature points of each of the initial image, the desired image, and the one or more intermediate images by projecting the plurality of obtained feature points of each of the initial image, the desired image, and the one or more intermediate images onto a virtual unitary sphere; and obtaining the plurality of objective image features of each of the initial image, the one or more intermediate images, and the desired image using the plurality of obtained objective feature points of each of the initial image, the one or more intermediate images, and the desired image.
14. A mobile machine, comprising: a camera; one or more processors; and one or more memories storing one or more programs configured to be executed by the one or more processors, wherein the one or more programs comprise instructions to: obtain, through the camera of the mobile machine, a desired image of a referenced target captured at a desired pose of a trajectory and an initial image of the referenced target captured at an initial pose of the trajectory, wherein the trajectory comprises a plurality of poses, and the initial pose is the first of the plurality of poses, and the desired pose is the last of the plurality of poses; calculate a homography of the desired image and the initial image; decompose the homography into an initial translation component and an initial rotation matrix; obtain one or more optimized translation components corresponding to one or more constraints for the mobile machine based on the initial translation component; obtain one or more optimized homographies based on the one or more optimized translation components and the initial rotation matrix; and obtaining a plurality of objective image features corresponding to the trajectory based on the one or more optimized homographies.
15. The mobile machine of claim 14, wherein the one or more programs further comprise instructions to: control the mobile machine to move according to the objective image features corresponding to the trajectory.
16. The mobile machine of claim 15, wherein the controlling the mobile machine to move according to the objective image features corresponding to the trajectory comprise: obtaining, through the camera of the mobile machine, a current image of the referenced target captured at a current pose of the mobile machine; obtaining a plurality of feature points of the current image matched with a plurality of feature points of the desired image; obtaining a plurality of objective feature points by projecting the plurality of obtained feature points onto a virtual unitary sphere; obtaining a plurality of current image features of the current image using the plurality of obtained objective feature points; calculating a difference between the current image features of the current image and the objective image features corresponding to the current pose; and controlling the mobile machine to move according to the calculated difference.
17. The mobile machine of claim 15, wherein the decomposing the homography into the initial translation component and the initial rotation matrix comprises: decomposing the homography H(t) into a rotation matrix R(t) and a translation component b(t) through an equation of:
18. The mobile machine of claim 15, wherein the obtaining the one or more optimized translation components corresponding to the one or more constraints for the mobile machine based on the initial translation component comprises: planning one or more intermediate poses of the trajectory meeting the one or more constraints for the mobile machine based on the initial translation component, wherein the one or more intermediate poses are between the initial pose and the desired pose in the trajectory; and obtaining the one or more optimized translation components based on the initial pose, the one or more planned intermediate poses, and the desired pose of the trajectory.
19. The mobile machine of claim 15, wherein the obtaining the one or more optimized homographies based on the one or more optimized translation components and the initial rotation matrix comprises: calculating the one or more optimized homographies H.sub.r(t) through an equation of:
20. The mobile machine of claim 15, wherein the obtaining the plurality of objective image features corresponding to the trajectory based on the one or more optimized homographies comprises: obtaining a plurality of feature points of each of the initial image, the desired image, and one or more intermediate images corresponding to one or more intermediate poses of the trajectory based on the one or more optimized homographies, wherein the one or more intermediate poses are between the initial pose and the desired pose in the trajectory; obtaining a plurality of objective feature points of each of the initial image, the desired image, and the one or more intermediate images by projecting the plurality of obtained feature points of each of the initial image, the desired image, and the one or more intermediate images onto a virtual unitary sphere; and obtaining the plurality of objective image features of each of the initial image, the one or more intermediate images, and the desired image using the plurality of obtained objective feature points of each of the initial image, the one or more intermediate images, and the desired image.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0005] In order to more clearly illustrate the technical solutions in this embodiment, the drawings used in the embodiments or the description of the prior art will be briefly introduced below. In the drawing(s), like reference numerals designate corresponding parts throughout the figures. It should be understood that, the drawings in the following description are Only examples of the present disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative works.
[0006]
[0007]
[0008]
[0009]
[0010]
[0011]
[0012]
[0013]
[0014]
[0015]
[0016]
DETAILED DESCRIPTION
[0017] In order to make the objects, features and advantages of the present disclosure more obvious and easy to understand, the technical solutions in this embodiment will be clearly and completely described below with reference to the drawings. Apparently, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present disclosure without creative efforts are within the scope of the present disclosure.
[0018] It is to be understood that, when used in the description and the appended claims of the present disclosure, the terms “including”, “comprising”, “having” and their variations indicate the presence of slated features, integers, steps, operations, elements and/or components, hut do not preclude the presence or addition of one or a plurality of other features, integers, steps, operations, elements, components and/or combinations thereof.
[0019] It is also to be understood that, the terminology used in the description of the present disclosure is only for the purpose of describing particular embodiments and is not intended to limit the present disclosure. As used in the description and the appended claims of the present disclosure, the singular forms “one”, “a”, and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise.
[0020] It is also to be further understood that the term “and/or” used in the description and the appended claims of the present disclosure refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0021] In the present disclosure, the terms “first”, “second”, and “third” are for descriptive purposes only, and are not to be comprehended as indicating or implying the relative importance or implicitly indicating the amount of technical features indicated. Thus, the feature limited by “first”, “second”, and “third” may include at least one of the feature either explicitly or implicitly. In the description of the present disclosure, the meaning of “a plurality” is at least two, for example, two, three, and the like, unless specifically defined otherwise.
[0022] In the present disclosure, the descriptions of “one embodiment”, “some embodiments” or the like described in the specification mean that one or more embodiments of the present disclosure can include particular features, structures, or characteristics which are related to the descriptions of the descripted embodiments. Therefore, the sentences “in one embodiment”, “in some embodiments”, “in other embodiments”, “in other embodiments” and the like that appear in different places of the specification do not mean that descripted embodiments should be referred by all other embodiments, but instead be referred by “one or more but not all other embodiments” unless otherwise specifically emphasized.
[0023] The present disclosure relates to trajectory planning and movement control or a mobile machine. As used herein, the term “mobile machine” refers to a machine such as a vehicle or a mobile robot that has the capability to move around in its environment. The term “trajectory planning” refers to find a sequence of valid configurations that moves a mobile machine from the source to the destination and is parametrized by time, where “trajectory” denotes a sequence of poses with time stamp (cf. “path” denotes a sequence of poses or position without time stamp). The term “pose” refers to position (e.g., x and v coordinates on x and y axes) and posture (e.g., a yaw angle along z axis). The term “nonholonomic constraint” refers to constraint for the movement manners of a mobile machine, for example, can move straightly and rotate while cannot move left and right directly). The term “navigation” refers to the process of monitoring and controlling the movement of a mobile machine from one place to another, and the term “collision avoidance” refers to prevent or reduce the severity of a collision. The term “sensor” refers to a device, module, machine, or subsystem such as ambient light sensor and image sensor (e.g., camera) whose purpose is to detect events or changes in its environment and send the information to other electronics (e.g., processor).
[0024]
[0025]
[0026] In some embodiments, the navigation and/or the trajectory planning of the mobile machine 100 may be actuated through the mobile machine 100 itself (e.g., a control interface on the mobile machine 100) or a control device 200 such as a remote control, a smart phone, a tablet computer, a notebook computer, a desktop computer, or other electronic device by, for example, providing a request for the navigation and/or the trajectory planning of the mobile machine 100. The mobile machine 100 and the control device 200 may communicate over a network which may include, for example, the Internet, intranet, extranet, local area network (LAN), wide area network (WAN), wired network, wireless networks (e.g., Wi-Fi network, Bluetooth network, and mobile network), or other suitable networks, or any combination of two or more such networks.
[0027]
[0028] The navigation module 121 in the storage unit 120 of the mobile machine 100 may be a software module (of the operation system of the mobile machine 100), which has instructions I.sub.n (e.g., instruction for actuating motor(s) M of the mobile machine 100 to move the mobile machine 100) for implementing the navigation of the mobile machine 100, a map builder 1211, and trajectory planners) 1212. The map builder 1211 may be a software module having instructions I.sub.b for building map for the mobile machine 100. The trajectory planner(s) 1212 may be software module(s) having instructions I.sub.p for planning path for the mobile machine 100. The trajectory planner(s) 1212 may include a global trajectory planner for planning global trajectories (e.g., trajectory TO for the mobile machine 100 and a local trajectory planner for planning local trajectories (e.g., trajectory T.sub.2) for the mobile machine 100. The global trajectory planner may be, for example, a trajectory planner based on Dijkstra's algorithm, which plans global trajectories based on map(s) built by the map builder 1211 through, for example, simultaneous localization and mapping (SLAM). The local trajectory planner may be, for example, a trajectory planner based on TEB (timed elastic band) algorithm, which plans local trajectories based on the global trajectory P.sub.g, and other data collected by the mobile machine 100. For example, images may be collected through the camera C of the mobile machine 100, and the collected images may be analyzed so as to identify obstacles, so that the local trajectory can be planned with reference to the identified obstacles, and the obstacles can be avoided by moving the mobile machine 100 according to the planned local trajectory.
[0029] Each of the map builder 1211 and the trajectory planner(s) 1212 may be a submodule separated from the instructions I.sub.n or other submodules of the navigation module 121, or a pan of the instructions I.sub.n or implementing the navigation of the mobile machine 100. The trajectory planner(s) 1212 may further have data (e.g., input/output data and temporary data) related to the trajectory planning of the mobile machine 100 which may be stored in the one or more memories and accessed by the processing unit 110. In some embodiments, each of the trajectory planners) 1212 may be a module in the storage unit 120 that is separated from the navigation module 121.
[0030] In some embodiments, the instructions I.sub.n may include instructions for implementing collision avoidance of the mobile machine 100 (e.g., obstacle detection and path replanning). In addition, the global trajectory planner may replan the global trajectory(s) (i.e., plan new global trajectory(s)) to detour in response to, for example, the original global trajectory(s) being blocked (e.g., blocked by an unexpected obstacle) or inadequate for collision avoidance (e.g., impossible to avoid a detected obstacle when adopted). In other embodiments, the navigation module 121 may be a navigation unit communicating with the processing unit 110, the storage unit 120, and the control unit 130 over the one or more communication buses or signal lines L, and may further include one or more memories (e.g., high-speed random access memory (RAM) and non-transitory memory) for storing the instructions I.sub.n, the map builder 1211, and the trajectory planner(s) 1212, and one or more processors (e.g., MPU and MCU) for executing the stored instructions I.sub.n, I.sub.b and I.sub.p to implement the navigation of the mobile machine 100.
[0031] The mobile machine 100 may further include a communication subunit 131 and an actuation subunit 132. The communication subunit 131 and the actuation subunit 132 communicate with the control unit 130 over one or more communication buses or signal lines that may be the same or at least partially different from the above-mentioned one or more communication buses or signal lines L. The communication subunit 131 is coupled to communication interfaces of the mobile machine 100, for example, network interlaced) 1311 for the mobile machine 100 to communicate with the control device 200 via the network(s) N and I/O interfaced) 1312 (e.g., a physical button), and the like. The actuation subunit 132 is coupled to component(s)/device(s) for implementing the motions of the mobile machine 100 by, for example, actuating motor(s) M of wheels E (see
[0032] The mobile machine 100 may further include a sensor subunit 133 which may include a set of sensor(s) and related controller(s), for example, the camera C and an IMU U (or an accelerometer and a gyroscope), for detecting the environment in which it is located to realize its navigation. The sensor subunit 133 communicates with the control unit 130 over one or more communication buses or signal lines that may be the same or at least partially different from the above-mentioned one or more communication buses or signal lines L. In other embodiments, in the case that the navigation module 121 is the above-mentioned navigation unit, the sensor subunit 133 may communicate with the navigation unit over one or more communication buses or signal lines that may be the same or at least partially different from the above-mentioned one or more communication buses or signal lines L. In addition, the sensor subunit 133 may just abstract component for representing the logical relationships between the components of the mobile machine 100.
[0033] In some embodiments, the map builder 1211, the trajectory planner(s) 1212, the sensor subunit 133, and the motor(s) M (and wheels and/or joints of the mobile machine 100 coupled to the motor(s) M) jointly compose a (navigation) system which implements map building, (global and local) trajectory planning, and motor actuating so as to realize the navigation of the mobile machine 100. In addition, the various components shown in
[0034]
[0035]
[0036] According to the trajectory planning method, the processing unit 110 obtains a desired image I.sub.d of the referenced target T and an initial image I.sub.i of the referenced target T through the camera C of the mobile machine 100 (block 310 of
[0037]
[0038] The processing unit 110 may further calculate a homography H.sub.0 of the desired image I.sub.d and the initial image I.sub.i (block 320 of
[y.sub.i(t), . . . , y.sub.n(t)]∝H(t)[y.sub.1(t.sub.f), . . . , y.sub.n(t.sub.f)];
where, H(t) is the Euclidean homography of the two images, t∈[0, t.sub.f], 0 is the starting time corresponding to the initial image and is the ending time (which is with respect to the starting time, in seconds) corresponding to the desired image I.sub.d (the sequence of H.sub.0-H(t.sub.f) can be seen as the trajectory of homography); y.sub.i(t) is the i-th image point on the image plane coordinate (unit in pixel) of an image which is captured at the time t (the image will be the initial image I.sub.i when t=0, and will be the desired image I.sub.d when t=t.sub.f), and there are n points in the initial image h which are matched with n points in the desired image I.sub.d (n is larger than or equal to three); and y.sub.i(t.sub.f) is the i-th image point on the image plane coordinate (unit in pixel) of the desired image I.sub.d which is captured at the ending time t.sub.f, there are also n points in the desired image I.sub.d which are matched with the n points in the initial image I.sub.i. ∝ means the left-hand side is proportional to the right-hand side but they may not be equal. That is, the homography H(t) can be solved up to a scale rather than obtain its truth value. Having given those 2n points in the initial image I.sub.i and the desired image I.sub.d, the homography H(t) can be solved. For example, if there are 4 pairs of coplanar points (i.e., n=4) can be detected and matched in in the initial image I.sub.i and the desired image I.sub.d (here points are assumed in a plane Π (not shown)), the homography H(t) can be solved through a corresponding equation set containing 8 equations. Since the homography H(t) has 9 entries (3×3), the solution of equation set is linear dependent of the truth value as mentioned above. H.sub.0 is the homography corresponding to the initial image I.sub.i (captured at the starting time of 0) and the desired image I.sub.d, that is, the homography H(0).
[0039] The processing unit 110 may further decompose the homography H.sub.0 into an initial translation component b.sub.0 and an initial rotation matrix R.sub.0 (block 330 of
where, the rotation matrix R(t) represents a rotation between the two images corresponding to the homography H(t) in the camera coordinate system F. the translation component b(t) represents a translation between the two images corresponding to the homography H(t) in the camera coordinate system F, d.sub.f is the depth from the origin of the desired image I.sub.d to the plane Π, and α.sub.f is the unitary normal to the plane Π in the desired image I.sub.d. If d.sub.f is known ahead, the truth value of the homography H(t) can be calculated, and the truth value of the rotation matrix R(t) and the translation component b(t) can be obtained too. As mentioned above, the homography H(t) is given, hence the rotation matrix R(t) and the translation component b(t) can be obtained in an analytical form. As mentioned above, H.sub.0 is the homography H(0), hence the initial translation component b.sub.0 is b(0) that is, the translation component corresponding to the initial image I.sub.i (captured at the starting time of 0) and the desired image I.sub.d, and the initial rotation matrix R.sub.0 is R(0), that is, the rotation matrix corresponding to the initial image I.sub.i and the desired image I.sub.d.
[0040] The processing unit 110 may further obtain optimized translation components B.sub.r(t) corresponding to constraints) for the mobile machine 10 based on the initial translation component b.sub.0 (block 340 of
[0041] In some embodiments, each constraint for the mobile machine 100 may be represented through one objective function of translation component b, and the sequence of intermediate pose(s) S.sub.m may be planned (in the camera coordinate system F) based on the objective function(s) by, for example, the above-mentioned local trajectory planner using TEB algorithm. In the case that TEB algorithm is used, the optimization problem will be transformed into a hyper-graph. The poses S of the mobile machine 100 and the time interval therebetween are used as nodes of the hyper-graph, and objective functions are used as edges of the hyper-graph. Each node is connected by edge(s) to form the hyper-graph, and the hyper-graph is optimized to solve the the optimization problem accordingly.
Trajectory Optimization: with Nonholonomic Constraint
[0042]
where, x=[cosθ.sub.i, sinθ.sub.j, 0].sup.Y and x.sub.j+1=[cosθ.sub.j+1, sinθ.sub.j+1, 0].sup.Y represent the heading directions in the world coordinate system, and l.sub.j is the unit vector from the origin of the x.sub.j coordinate to the origin of the x.sub.j+1 coordinate. The objective function to penalize the nonholonomic constraint is f.sub.1(b)=∥(x.sub.i+x.sub.j+1)×l.sub.i∥.sup.2.
Trajectory Optimization: with Kinematic constraint
[0045] If the mobile machine 100 has the kinematic constraint of maximum velocity, for every two consecutive poses, the linear velocity v.sub.j and the angular velocity ω.sub.j can be approximated by:
where, dt.sub.j is the time interval between the two consecutive poses. The objective function to penalize velocity which is over the maximum value
where, g.sub.f(x) is smooth function, and
Trajectory Optimization: with Fastest Trajectory Constraint
[0046] As to the constraint of fastest trajectory for the mobile machine 100, for every two consecutive poses, the objective function for the fastest trajectory constraint is:
where, dt.sub.j is the time interval between the two consecutive poses.
[0047] The processing unit 110 may further obtain the optimized translation components b.sub.r(t) based on the initial pose S.sub.i, the planned intermediate poses) S.sub.m, and the desired pose S.sub.d of the trajectory T.sub.2 (block 342 of
where, f.sub.k(b) is an objective function corresponding to a constraint of the mobile machine 100 (each objective function corresponds to each constraint) and β.sub.k is its weight, k∈[l, m] (m is the number of the constraints of the mobile machine 100), and b is the translation component. Upon minimizing the sum of all the objective functions f.sub.k(b) of all the constraints of the mobile machine 100. the translation component b corresponding to each of the objective functions f.sub.k(b) is taken as an optimized translation component b.sub.r(t) at time t. A sequence of the optimized translation components b.sub.r(t) at the time in-between the starting time 0 and the ending time t.sub.f are obtained. The objective function f.sub.k(b) may be solved through Quasi-Newton method to obtain the optimal solution of the translation component b.
[0048] In other embodiments, the optimization against the constraints for the mobile machine 10 (block 340 of
[0049] The processing unit 110 may further obtain optimized homography(s) H.sub.r(t) based on the optimized translation component(s) b.sub.r(t) and the initial rotation matrix R.sub.0 (block 350 of
where, R.sub.0 is a rotation matrix corresponding to the initial image I.sub.i and the desired image I.sub.d, [φ.sub.0]=log(R.sub.0.sup.T)∈SO(3), d.sub.f is the depth from the origin of the desired image I.sub.d to the plane ∪, and α.sub.f is the unitary normal to the plane Π in the desired image I.sub.d; t∈[0, t.sub.f], 0 is the starting time corresponding to the initial image I.sub.i, and t.sub.f is the ending time corresponding to the desired image I.sub.d.
[0050] The processing unit 110 may further obtain objective image features s.sub.r(t) corresponding to the trajectory T.sub.2 based on the optimized homographies H.sub.r(t) (block 360 of
[0051] The processing unit 110 may further obtain objective feature points h.sub.i of each of the initial image I.sub.i, the desired image I.sub.d, and the intermediate image(s) I.sub.m by projecting the obtained feature points P.sub.i of each of the initial image I.sub.i, the desired image I.sub.d, and the intermediate image(s) I.sub.m onto a virtual unitary sphere V (see
[0052] The processing unit 110 may further obtain the objective image features s.sub.r(t) of each of the initial image I.sub.i, the intermediate image(s) I.sub.m, and the desired image I.sub.d using the plurality of obtained objective feature points h.sub.i of each of the initial image I.sub.i, the intermediate image(s) I.sub.m, and the desired image I.sub.d (block 363 of
[0053] The image-based trajectory planning method plans a trajectory for a mobile machine with constraints in terms of image features in image plane coordinate. Then, during the navigation of the mobile machine, the poses of the mobile machine can be regulated according to the image features without requirements of the poses of the mobile machine relative to either inertial frame or visual target for feedback control, so that the mobile machine can eventually reach a desired pose in the trajectory without the need for pose measurements or estimations.
[0054]
[0055] According to the movement control method, the processing unit 110 may obtain a current image I.sub.c of the referenced target T captured at a current pose S.sub.c of the mobile machine 100 through the camera C of the mobile machine 100 (block 770). The current image I.sub.c has to include the referenced target T, so that feature points P.sub.i in the current image I.sub.c that correspond to the referenced target T can be obtained. The current pose S.sub.c is the pose of the mobile machine 100 at the time when the current image I.sub.c is captured, which may be just the initial pose S.sub.i if the mobile machine 100 has not moved yet after the initial image I.sub.i is captured (i.e., at the starting point of the trajectory 12).
[0056] The processing unit 110 may further obtain the feature points P.sub.i of the current image I.sub.c that are matched with the feature points P.sub.i of the desired image I.sub.d (block 780). The matched feature points P.sub.i in the current image I.sub.c are found so as to obtain current image features s.sub.r(t) of the current image I.sub.c for comparing with the objective image features s.sub.r(t) of the intermediate image(s) I.sub.m and the desired image I.sub.d.
[0057] The processing unit 110 may further obtain objective feature points h.sub.i by projecting the obtained feature points P.sub.i onto the virtual unitary sphere V (block 790). As mentioned above, the feature points P.sub.i are projected onto the virtual unitary sphere V as the objective feature points h.sub.i (see
[0058] The processing unit 110 may further obtain the current image features s.sub.r(t) of the current image I.sub.c using the obtained objective feature points h.sub.i (block 7100). As mentioned above, in some embodiments, the invariant visual features of image are used as the objective image features s.sub.r(t), and the objective image features s.sub.r(t) may include, for example, centroid, moments, distances, areas, and other invariant visual features of image. In the case that the obtained objective image features s.sub.r(t) include distances, the inverse of the distances d.sub.ab (e.g., d.sub.01 and d.sub.02 in
[0059] The processing unit 110 may further calculate a difference D between the current image features s.sub.r(t) of the current image I.sub.c and the objective image features s.sub.r(t) corresponding to the current pose S.sub.c (block 7110). The current image features s.sub.r(t) of the current image I.sub.c are actual image features while the objective image features s.sub.r(t) corresponding to the current pose S.sub.c are expected image features, hence the current image features s.sub.r(t) of the current image I.sub.c may be compared with the objective image features s.sub.r(t) of the time of the current pose S.sub.c, that is, the current image features s.sub.r(t) and the objective image features s.sub.r(t) of the same time t are compared, so as to obtain the difference D by, for example, in the case that the objective image features s.sub.r(t) and the current image features s.sub.r(t) include distances, the above-mentioned inverse of distances d.sub.ab (e.g., d.sub.01 and d.sub.02 in
[0060] The processing unit 110 may further control the mobile machine 100 to move according to the calculated difference D (block 7120). In the case that the objective image features s.sub.r(t) and the current image features s.sub.r(t) include distances, since the current image features s.sub.r(t) are actual image features while the objective image features s.sub.r(t) are expected image features, the mobile machine 100 may be controlled to move according to the above-mentioned differences D between the distances d.sub.ab in the objective image features s.sub.r(t) and that in the current image features s.sub.r(t), so as to offset the differences therebetween so that the mobile machine 100 can be moved according to the planned trajectory (e.g., the trajectory T.sub.2).
[0061] The movement control method uses a trajectory for a mobile machine with constraints which is planned in terms of image features in image plane coordinate. The poses of the mobile machine will be regulated according to the image features during the movement of the mobile machine, and the mobile machine will be moved in a smoother way because the trajectory has planned with the optimization against the constraints tor the mobile machine. In addition, in the movement control method, natural backward movements are also allowed.
[0062] It can be understood by those skilled in the art that, all or part of the method in the above-mentioned embodiment(s) can be implemented by one or more computer programs to instruct related hardware. In addition, the one or more programs can be stored in a non-transitory computer readable storage medium. When the one or more programs are executed, all or part of the corresponding method in the above-mentioned embodiment(s) is performed. Any reference to a storage, a memory, a database or other medium may include non-transitory and/or transitory memory. Non-transitory memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), Hash memory, solid-state drive (SSD), or the like. Volatile memory may include random access memory (RAM), external cache memory, or the like.
[0063] The processing unit 110 (and the above-mentioned processor) may include central processing unit (CPU), or be other general purpose processor, digital signal processor (DSP), application specific integrated circuit (ASIC), field-programmable gate array (FPGA), or be other programmable logic device, discrete gate, transistor logic device, and discrete hardware component. The general purpose processor may be microprocessor, or the processor may also be any conventional processor. The storage unit 120 (and the above-mentioned memory) may include internal storage unit such as hard disk and internal memory. The storage unit 120 may also include external storage device such as plug-in hard disk, smart media card (SMC), secure digital (SD) card, and flash card.
[0064] The exemplificative units/modules and methods/steps described in the embodiments may be implemented through software, hardware, or a combination of software and hardware. Whether these functions are implemented through software or hardware depends on the specific application and design constraints of the technical schemes. The above-mentioned trajectory planning method and mobile machine may be implemented in other manners. For example, the division of units/modules is merely a logical functional division, and other division manner may be used in actual implementations, that is, multiple units/modules may be combined or be integrated into another system, or some of the features may be ignored or not performed. In addition, the above-mentioned mutual coupling/connection may be direct coupling/connection or communication connection, and may also be indirect coupling/connection or communication connection through some interfaces/devices, and may also be electrical, mechanical or in other forms.
[0065] The above-mentioned embodiments are merely intended for describing but not for limiting the technical schemes of the present disclosure. Although the present disclosure is described in detail with reference to the above-mentioned embodiments, the technical schemes in each of the above-mentioned embodiments may still be modified, or some of the technical features may be equivalently replaced, so that these modifications or replacements do not make the essence of the corresponding technical schemes depart from the spirit and scope of the technical schemes of each of the embodiments of the present disclosure, and should be included within the scope of the present disclosure.