Simulation parameters deployed with high-density range scanner Hokuyo URG 04LX.

## Abstract

This work discloses a kinematic control model to describe the geometry of motion of a two-wheeled biped’s limbs. Limb structure is based on a four-bar linkage useful to alleviate damping motion during self-balance. The robot self-balancing kinematics geometry combines with user-customized polynomial vector fields. The vector fields generate safe reference trajectories. Further, the robot is forced to track the reference path by a model-based time-variant recursive controller. The proposed formulation showed effectiveness and reliable performance through numerical simulations.

### Keywords

- rolling-biped
- path planning
- motion control
- navigation
- underactuation

## 1. Introduction

Motion planning is an essential function and a critical aspect in robotics engineering. Motion planning allows increasing the robot’s degree of autonomy. Fundamentally a wide area of robotic tasks needs planning models such as: transportation and vehicular technology, service robotics, search, exploration, surveillance, biomedical robotic applications, spatial deployment, industry, and so forth. Moreover, motion planning is inherently impacted by the degree of holonomy and kinematic constraints in all robotic modalities: robot arms, legged robots, rolling platforms, marine/underwater vehicles, aerial robots, and including their end effectors. Depending on the robotic application, motion planning is designed either global or local. When the robot has an environmental map in advance, it is called global planning even with possibility to globally optimize routes. Alternatively, when there is only robot’s local sensor data and the whole environment is unknown, it uses feedback from local observations. Planning methods can be generalized into four types: deterministic (based on mathematical numeric/analytic functions and models) [1, 2, 3], stochastic (recursive numerical methods based on probabilistic uncertainties) [4, 5, 6], heuristic (algorithms based on logical control and human-heuristic decision-making) [7, 8, 9, 10], and mixed planning methods [11, 12, 13].

In this chapter, a kinematic motion/path planning method for path tracking of an inverted pendulum self-balancing rolling biped is deduced and discussed. This work is focused on the rolling biped motion modeling and simulation of the robot shown in Figure 1. The principal component of a rolling biped is self-balancing by controlling its pitch motion through in-wheel motors that allow rolling motion (inverted-pendulum-like). The robot’s yaw motion is accomplished by the angular velocity resulting from the differential lateral speeds, which is a nonholonomic constrained model. The robot’s design is purposed for missions to collect solid garbage in outdoors (a park), similar to other works [14]. Nevertheless, the robotic mission/task is out of this chapter’s scope, instead a detailed geometry of motion is described in three parts: (i) motion planning for biped’s balance, (ii) navigational path generation, and (iii) path tracking control. The work [15] proposed a balancing and dynamic speed control of a unicycle robot based on variable structure and linear quadratic regulator to follow a desired trajectory. The work [16] modeled a wheeled bipedal robot with analytic solutions of closed-form expressions in kinematic control loops. The work [17] reported a self-balancing two-wheeled robot with a manipulator on-board, using auto-balancing system to maintain force equilibrium. The work [18] applied a proportional integral derivative (PID) control and active disturbance rejection control to balance and steer a two-wheeled self-balancing robot modeled by Lagrange formula. In [19], an adaptive robust control of a self-balancing two-wheeled underactuated robot to estimate uncertainty bound information, using deterministic system performance by Lyapunov method, was reported. In [20], a navigational two-wheeled self-balancing robot control using a PD-PI controller based on the Kalman filter algorithm was reported. Similarly, [21] used variable structure combining proportional integral differential controllers for balance and locomotion deriving a kinematic model based on the center of gravity constraint. Lagrangian-based with Kane’s approach for dynamic balancing was reported in [22]. Moreover, [23] conducted a study using model predictive control for trajectory tracking of an inverted-pendulum wheeled robot. The work [24] reported a self-balancing robot controller using Euler-Lagrange and geometric control, and planar motion is controlled by logarithmic feedback and Lie group exponential coordinates. The work [25] developed a balancing and trajectory tracking system for an inverted-pendulum wheeled robot using a Lagrange-based backstepping structure variable method. This work’s main contributions are an original design of limbs based on four-bar linkages to alleviate damping motion yielded from irregular terrains, from which a kinematic balancing condition is deduced. Further, polynomial vector fields with limit conditions are deduced from user-customized interpolation functions as path-generator models to yield safe routes in advance. Moreover, a recursive time-varying kinematic controller forces the robot to track resulting routes. The proposed system is demonstrated at the level of simulation. This chapter is organized in the following sections. Section 2 deduces the limb kinematics and its effects in the biped’s balance. Section 3 presents the polynomial approach to trajectory generation by directional fields. Section 4 describes a navigation recursive controller for path tracking control. Finally, Section 5 presents the work’s conclusions.

## 2. Balancing motion planning model

The main issue of an inverted-pendulum-like rolling biped is its capability to self-balance by controlling its pitch angle through the wheels velocity longitudinally (Figure 2(b)). This section deduces the balancing kinematics of the limb’s planar linkage shown in Figure 2(a). As a difference from other biomechanical inspired muscle-tendon limbs [26], in this work each limb is comprised of a four-bar linkage operating as a double crank, where bars r and d are linked by a coupling link l with limited rotary angles.

The expressions provided in Proposition 2.1 are obtained from deductions in Appendix A. The passive joint point

** Proposition 2.1**Limbs motion estimation.

The four-bar linkage’s passive joint

P

_{2}

is analytically described by.

_{2}

From Eq. (56) deduced in Appendix A, there are two possible solutions for * θ*, described as opened or crossed motion. For this work, the type of motion should be

Furthermore, the wheels position is tracked by _{f} (Figure 2(a)). This design assumes the robot’s center of gravity (cog) located at the same length

** Definition 2.1**Robot’s center of gravity (cog).

The robot’s cog is assumed to be located at Cartesian body’s position,

and

Hence, in accordance to Definition 2.1, it follows that the robot’s falling speed v_{f} due to vertical unbalance is

Taking into account that the robot is a dual differential drive kinematic structure, where v_{R} and v_{L} are the right-sided and left-sided velocities, respectively

where * s*is the robot displacement over the ground, and

*is the wheel’s radius [m]. Likewise, the dual differential velocity is*r

Hence, the robot’s angular velocity * v*and constrained by its wheels lateral baseline distance

_{diff}

*and*b

_{l}

*is substituted to yield:*v

_{diff}

The biped’s falling angle and angular falling speed are * v*[m/s] be the falling velocity affecting the robot’s balance

_{f}

which makes the robot’s pitch turn around the wheel’s center. Unbalancing velocity * v*[m/s] is an horizontal component such that

_{u}

The wheel’s axis point moves at balancing speed * v*that is parallel to the ground. Wheel’s tangential speed is

_{b}

Therefore, the balancing condition is described by Definition 2.2:

** Definition 2.2**Kinematic balancing condition.

The robot’s vertical equilibrium condition is assumed for balancing and unbalancing velocities of equal magnitudes (or very approximated). Thus,

Therefore, it is of interest to find the wheel’s rotary speed that balances the biped motion and from Definition 2.2, the following Proposition 2.2 arises,

** Proposition 2.2**Robot’s balancing speed.

The wheel’s rolling velocity to satisfy the robot’s body balance is proposed as

Thus, let us redefine the state variables as

and dropping off the highest-order derivative of the system

The system total energy

and substituting

For

## 3. Polynomial vector fields

This section introduces the proposed path planning strategy to dynamically generate local paths. Two polynomial models are enhanced as vector fields to exert attractive and repulsive robot’s accelerations. In principle, the desired acceleration functions are designed from the interpolating attractive/repulsive accelerations with respect to (w.r.t.) distance. The method used to fit points is the Lagrange formula:

where the human-user establishes a desired numerical acceleration * a*w.r.t. a desired distance

_{i}

*, from either goal or obstacle. Therefore, the following general cubic polynomial forms attractive*δ

_{i}

*and repulsive*a

_{A}

*are obtained with their respective numeric coefficients*a

_{R}

*and*λ

_{i}

*,*β

_{i}

It follows that, Definition 3.1 establishes the acceleration path planning model toward a goal of interest.

** Definition 3.1**Planning toward a goal.

Given the kinematic parameters

, the attraction path model

is defined by

Similarly, Definition 3.2 establishes the acceleration path planning model that avoids obstacles zones.

** Definition 3.2**Planning obstacles avoidance.

Given the kinematic parameters

, the avoidance path model

is defined by

Figure 4(a) shows the robot’s instantaneous acceleration toward a goal of interest. The attraction acceleration starts when the goal-robot distance

Therefore, extending to two-dimension Cartesian space, let us deduce the following algebraic process for the goal-attraction planner

as well as

Similarly, for the robot’s acceleration to avoid obstacles, let us develop the following

subsequently by applying the gradient operator,

and

Thus, by substituting terms in both local planners, the general attractive motion planning is a negative function with amplitude coefficient

The attractive field is a positive function working within limits

and the repulsive with

The repulsive field is a negative function that works within range

The direction fields produced are shown in Figure 5, where for both cases the coordinates origin represents either goal or obstacle locations.

Moreover, when neither goals of interest nor obstacles are within the observation field of the robot, it must keep navigating along a prior route plan. The routing plan is map comprised of a sequence of Cartesian points

When the robot accomplishes either

where * a*is an ideal or averaged acceleration toward the next route point

^{o}

g

_{2}from

g

_{1}. Therefore, the total path planner mode is given by Proposition 3.1.

** Proposition 3.1**Total mission path planning.

The total path planning model subjected to adaptive environmental changes is proposed as a vector fields sum:

and the robot’s instantaneous navigational total velocity

Thus, to automatically limit the speed until the robot’s maximal velocity _{max}, the real physical velocity * v*is constrained by the final planning motion

_{ph}

Figure 6 shows simulation results of the total navigation planner.

## 4. Path tracking

This section deduces an algebraic trajectory tracking linearized controller based on the kinematics geometry of the reference path: linear and angular velocities. Considering from previous Section 3, let * v*be called the reference velocity that is going to be tracked. Likewise, let (

_{ph}

x

_{1,2},

y

_{1,2}) be the next local planning coordinates to be reached (from location 1 to location 2). Hence, let us define

Similarly, by obtaining the desired robot’s orientation

It follows that, the tracking control vector is

thus, by factorizing both, the common term

Likewise, as the inverse tracking law is of our interest, it is inversely dropped off

For notation simplicity, let us redefine as

_{t}

thus from Section 3, let be the global reference planning model during time segment

^{ref}

Therefore, the recursive path tracking control law is stated as

where _{t + 1} is the control vector global prediction (Table 1).

Parameter | Value | Parameter | Value | Parameter | Value | Parameter | Value |
---|---|---|---|---|---|---|---|

[m] | 0.03 | [m] | 0.25 | 3/75 | [kg_{x}^{2}] | 0.12 | |

[m] | 0.15 | [m]_{l} | 0.4 | 1/440 | [kg_{y}^{2}] | 0.12 | |

a [m] | 0.08 | 0.75 | [m/s^{o}^{2}] | 0.5 | [kg_{z}^{2}] | 0.13 | |

[m] | 0.15 | [kg] | 0.76 | [m]_{w} | 0.1 | 1.5 |

## 5. Conclusion

The mechanical design of the biped’s lower-limb mechanical structure was configured as a double-crank four-bar linkage with passive-allowed motions. Motion planning began from determining the limbs’ linkage positions causing the robot’s height and pitch varying overtime producing unbalanced motions. Inferring balancing velocities to yield robot’s vertical balance was possible and worked stable. The proposed balancing rolling condition was analyzed throughout its total energy model as a Lyapunov candidate function resulting stable in three criteria: ** V**(0) = 0,

*(*v

*) = 0, and*x

t

_{0}. Physically, the model is applied to any motion in equilibrium. For goal attraction the maximal acceleration is reached at the 55% of the distance, subsequently decreases monotonically until the goal position.

The navigational general planning model is a set of partial derivatives model combined, allowing dynamic local planning among multiple obstacles, goals, and routes. The navigational general planning model worked as the reference model for the tracking control system. It consisted of a set of time-varying linear equations, with recursive feedback showing suitable performance. The work was implemented in simulation and coded in C++ under Linux. Future improvements will consider the inclusion of kinetic models and dynamic forces fitted to the proposed planer.

This appendix provides the algebraic deduction of the limb’s Cartesian motion model described in Section 2.

Let

Likewise, let * r*and

Both expressions (47) and (48) are described in terms of

where the distances * phi*and

*along the chassis, see Figure 2(a). By algebraically treating the Cartesian components separately, let us equal the*theta

*components of (48) and (49) to form the equation*x

dropping off the squared root term of (50),

and squaring both sides of the equality, the following is obtained,

and algebraically expanding the squared binomials and substituting _{1} and _{2} from expression (47) and (49) respectively into (52),

and organizing trigonometric terms by their degree, Eq. (53) becomes:

By factorizing the common terms of (47) and exchanging terms with suitable identities such as

In order to simplify the main expression, some constant terms are rewritten as

Therefore, the following simplified algebraic expression is deduced:

The trigonometric identity forms

and by multiplying both sides of the equality (57) by common denominator

Hereafter, to find a root for * θ*as independent variable, common terms are factorized and Eq. (59) is equated to zero to obtain

in order to reduce expression complexity, the following Definitions are stated:

** Definition 4.1**[term

*]. Let*P

*be defined as a Cartesian horizontal decreasing segment by expression:*P

** Definition 4.2**[term

*]. Let*Q

*be defined as a Cartesian vertical segment that is expressed by:*Q

and

** Definition 4.3**[term

*]. Let*P

*be defined as a Cartesian horizontal increasing segment by expression:*R

Therefore, by substituting the terms of Definitions 4.1–4.3 into Eq. (60), the following quadratic form is deduced,

By analytically solving (64), which is a second-degree equation using the general form, a real solution for * θ*is possible, thus

## References

- 1.
Azzabi A, Nouri K. Path planning for autonomous mobile robot using the potential field method. In: Proceedings of International Conference on Advanced Systems and Electric Technologies (IC_ASET 2017). 2017. pp. 389-394 - 2.
Reyes Muñoz JU, Martínez-García EA, Rodriguez Jorge R, Torres-Córdoba R. WMR kinematic control using underactuated mechanisms for goal-direction and evasion. In: Gorrostieta E, editor. Kinematics. IntechOpen; 2017. pp. 147-169. DOI: 10.5772/intechopen.70811 - 3.
Castro-Jiménez LE, Martínez-García EA. Thermal image sensing model for robotic planning and search. Sensors. 2016; 16 (8):1253 - 4.
Norouzi M, Valls Miro J, Dissanayake G. Probabilistic stable motion planning with stability uncertainty for articulated vehicles on challenging terrains. Autonomous Robots. 2016; 40 (2):361-381 - 5.
Kamalova A, Kim KD, Lee SG. Waypoint mobile robot exploration based on biologically inspired algorithms. IEEE Access. 2020; 8 :190342-190355 - 6.
Ma L, Xue J, Kawabata K, Zhu J, Ma C, Zheng N. Efficient sampling-based motion planning for on-road autonomous driving. IEEE Transactions on Intelligent Transportation Systems. 2015; 16 (4):1961-1976 - 7.
Bai J, Lian S, Liu Z, Wang K, Liu D. Deep learning based robot for automatically picking up garbage on the grass. IEEE Transactions on Consumer Electronics. 2018; 64 (3):382-389. DOI: 10.1109/TCE.2018.2859629 - 8.
Fang B, Ding J, Wang Z. Autonomous robotic exploration based on frontier point optimization and multistep path planning. IEEE Access. 2019; 7 :46104-46113 - 9.
Lu C, Shan L, Jiang C, Dai Y. Reinforcement based mobile robot path planning with improved dynamic window approach in unknown environment. Autonomous Robots. 2021; 45 (1):51-76 - 10.
Zakiev A, Lavrenov R, Magid E, Svinin M, Matsuno F. Partially unknown environment exploration algorithm for a mobile robot. Journal of Advanced Research in Dynamical and Control Systems. 2019; 11 (8):1743-1753 - 11.
Yoon HS, Park TH. Motion planning of autonomous mobile robots by iterative dynamic programming. Intelligent Service Robotics. 2015; 8 (3):165-174 - 12.
Qureshi AH, Ayaz Y. Potential functions based sampling heuristic for optimal path planning. Autonomous Robots. 2016; 40 (6):1079-1093 - 13.
Receveur JB, Victor S, Melchior P. Autonomous car decision making and trajectory tracking based on genetic algorithms and fractional potential fields. Intelligent Service Robotics. 2020; 13 (2):315-330 - 14.
Ferri G, Manzi A, Salvini P, Mazzolai B, Laschi C, Dario P. DustCart, an autonomous robot for door-to-door garbage collection: From DustBot project to the experimentation in the small town of Peccioli. In: 2011 IEEE International Conference on Robotics and Automation; 9–13 May 2011; Shanghai, China: IEEE; 2011. pp. 655-660. DOI:10.1109/ICRA.2011.5980254 - 15.
Han SI, Lee JM. Balancing and velocity control of a unicycle robot based on the dynamic model. IEEE Transactions on Industrial Electronics. 2015; 62 (1):405-413 - 16.
Klemm V, Morra A, Gulich L, Mannhart D, Rohr D, Kamel M, et al. LQR-assisted whole-body control of a wheeled bipedal robot with kinematic loops. IEEE Robotics and Automation Letters. 2020; 5 (2):3745-3752 - 17.
Li CG, Zhou L, Chao Y. Self-balancing two-wheeled robot featuring intelligent end-to-end deep visual-steering. IEEE/ASME Transactions on Mechatronics. 2021; 26 (5):2263-2273 - 18.
Jiang L, Qiu H, Wu Z, He J. Active disturbance rejection control based on adaptive differential evolution for two-wheeled self-balancing robot. Proceedings of the 28th Chinese Control Decision Conference (CCDC 2016). IEEE; 2016. pp. 6761-6766 - 19.
Chen X, Zhao H, Sun H, Zhen S. Adaptive robust control based on Moore-Penrose generalized inverse for underactuated mechanical systems. IEEE Access. 2021; 7 :157136-157144 - 20.
Iwendi C, Alquarni MA, Anajemba JH, Alfakeeh AS, Zhang Z, Bashir AK. Robust navigational control of a two-wheeled self-balancing robot in a sensed environment. IEEE Access. 2019; 7 :82337-82348 - 21.
Zhang C, Liu T, Song S, Meng MQH. System design and balance control of a bipedal leg-wheeled robot. International Conference on Robotics and Biomimetics (ROBIO 2019). IEEE; 2019. pp. 1869-1874 - 22.
Kim S, Kwon SJ. Dynamic modeling of a two-wheeled inverted pendulum balancing mobile robot. International Journal of Control, Automation and Systems. 2015; 13 (4):926-933 - 23.
Yue M, An C, Sun JZ. An efficient model predictive control for trajectory tracking of wheeled inverted pendulum vehicles with various physical constraints. International Journal of Control, Automation and Systems. 2018; 16 (1):265-274 - 24.
Tayefi M, Gen Z. Self-balancing controlled Lagrangian and geometric control of unmanned mobile robots. Journal of Intelligent and Robotic Systems: Theory and Applications. 2018; 90 (1–2):253-265 - 25.
Esmaeili N, Alfi A, Khosravi H. Balancing and trajectory tracking of two-wheeled mobile robot using backstepping sliding mode control: Design and experiments. Journal of Intelligent and Robotic Systems: Theory and Applications. 2017; 87 (3–4):601-613 - 26.
Sato R, Miyamoto I, Sato K, Ming A, Shimojo M. Development of Robot legs inspired by bi-articular muscle-tendon complex of cats. International Conference on Intelligent Robots and Systems (IROS). IEEE; 2015