Abstract
This article deals with the novel concept of ambiguous mono axial vehicle robot. Such robot is a combination of Segway and dicycle, which utilizes the advantages of each chassis. The advantage of dicycle is lower energy consumption during the movement and the higher safety of carried payload. The movable platform inside the ambiguous mono axial vehicle allows using the various sensors or devices. This will change the ambiguous mono axial vehicle to the Segway type robot. Both these modes are necessary to control in the stable mode to ensure the safety of the ambiguous mono axial vehicle’s movement. The main contents of the article contain description of generalized dynamic model of ambiguous mono axial vehicle and related control of ambiguous mono axial vehicle. The proposal is unique in that the same controller is used for both modes. Several simulations verify proposed control schemes and identified parameters. Moreover, the dicycle type of platform has never been used in robotics and that is another novelty.
Keywords
Introduction
Many constructions of two-wheeled differential robots without any supporting wheels appeared after introduction of Segway™ in December 2001. 1 Significant characteristic of this chassis is that the gravity center is high above wheels axis, and therefore it is needed to actively control the chassis. 2 The research on balancing two-wheeled robots is very strong in recent years. This is due to that the control consists not only from control of required motion, but it includes also the stability control of inherent unstable system. After introduction of Segway, a lot of similar chassis appeared. The idea of balancing such chassis is based on the concept of inverted pendulum. As an example of the mobile-inverted pendulum, JOE robot can be mentioned. 3 Control of this chassis was solved by pole placement using state feedback controller. Other similar chassis were constructed as simple demonstrational chassis. 4 Another had more complicated chassis used for mobile robots. 5 The simpler constructions used feedback control of angle of inclination by Proportional Derivative (PD) controller. In these solutions, parameters of controller were not so much analyzed. PD controller was usually adjusted only by estimation. The reason of not using integral parameter “I” is stated in the study by Sridharan and Zoghi, 6 as its demand of large amount of processing power. Complex solutions were based on the thoroughgoing analysis of dynamical and state model. These solutions used for example state feedback control by Linear Quadratic Regulator (LQR) controller, 2,7 sliding mode control, 8 fuzzy LQR control, 9 or fuzzy PD-like control. 10,11 Most of the mentioned works validated only the controllability of the chassis. One of the most important contributions discussing the dynamics of inverted pendulum robot is the work done by Kim et al. 12 All of these works analyzed only differential two-wheeled chassis 13 with the gravity center above the wheels’ axis. Such construction is advantageous when the payload is above the axis. However, this is disadvantageous for the safety of payload during the transport. Therefore, it is needed to analyze dicycle and to transfer this knowledge into the control of ambiguous mono axial vehicle (AMAV).
In the case of dicycle, the body is smaller than wheels’ diameter. This makes the body protected from the potential collisions during the flips. Moreover, dicycle has the gravity center under wheels axis. Due to this, it is not needed to solve the stabilization of this chassis during the movement. On the contrary, it is needed to solve damping of oscillations, which are excited due the changes in the movement or due to external disturbances. Such constructions were used only as hobby transport vehicles 14 and they have never been used in mobile robotics. For this reason, our proposed concept is innovative and it can be considered as prototype of such chassis in mobile robotics.
The advantages of two-wheeled differential drive 15 of any type are the lower energy consumption compared to other wheeled drives and its high dexterity. If this chassis is used in structured environment with narrow surface, the usage of odometry is much more accurate than in the case of slipping controlled chassis. On the basis of this, new concept of two-wheeled differential robot was proposed. This concept combines Segway and dicycle into one chassis (Figure 1).

Ambiguous mono axial vehicle.
The basis of this structure is that diameter of used wheels is bigger than the body. This is similar to dicycle. However, structure also contains movable platform, which allows the pushing out of payload above wheels axis. This is similar to Segway. This is significantly changing the parameters of the vehicle (or more precisely the center of gravity), as it can be seen in Figure 2.

The change of CG’s position after the payload is pushed out of moving platform. CG: center of gravity.
This hybrid vehicle can hide useful device in retracted position. As a consequence, vehicle has less energy consumption during the transport. In the case that the useful device (camera or other sensor unit needed to be hold in certain height above the ground during its operation) should be used, it can be pushed out by movable platform. Consequently, the vehicle becomes unstable and the energy consumption increases. However, this uplift is not so significant like it is in the Segway chassis. The chassis is designed to adapt the changes in real time during any type of movement.
If the movable platform is inside the body, the center of gravity is under wheels axis. Behavior of the vehicle will be similar to dicycle. Therefore, it will be equivalent to system of pendulum hung on the wheels axis. Vehicle will be stable, but it will tend to oscillate. These oscillations are excited by the changes in movement (velocity) or external disturbances. If the movable platform is pushed out, the center of gravity is above wheels axis. Behavior of the vehicle will be similar to Segway. It will be equivalent to inverted pendulum hung on the wheels axis. In this case, the vehicle is unstable and it tends to flip forward or backward. This must be compensated by suitable control. It is clear that this hybrid vehicle can operate in two modes and both modes must be reliably controlled.
The article is organized as follows: section “Kinematics of AMAV” describes the kinematics of AMAV based on standard two-wheeled robot kinematics. Section “Dynamics of AMAV” analyzes the dynamics with Lagrange equations of the second kind. Section “Simulations” verifies the proposed model for stable (dicycle) and unstable (Segway) mode. Consequently, in section “Generalized dynamic model of AMAV,” the generalized model of AMAV is derived. Finally, in section “Synthesis of control,” the control of such vehicle is proposed and verified.
Kinematics of AMAV
Kinematics of AMAV is similar to classical differential two-wheeled drive (Figure 3). The movement of the AMAV is controlled by the change of rotational speeds of individual drives. Center of gravity (CG) is in the middle of the wheels axis. Distance D is the half of the wheels distance, R is the wheel radius, v L and v R are the velocities of wheels, and v T is the velocity of CG. CG is defined by the coordinates x T and y T. Angle Ψ defines the rotation of the vehicle, more precisely this angle is defined as the angle between v T and axis x.

Kinematics of AMAV. AMAV: ambiguous mono axial vehicle.
The following relations define the kinematics of AMAV 16
The velocity of CG in particular axis is defined
Dynamics of AMAV
There is an assumption that the mass of the AMAV is symmetrical. Therefore, the kinematics will influence dynamic behavior of the system in a very small way. Body of AMAV may be replaced by the inverted pendulum hung on the wheels axis (Figure 4). Wheels axis also defines the rotational linkage between the wheels and AMAV body.

Substitution of AMAV by inverted pendulum. AMAV: ambiguous mono axial vehicle.
Such model is described by parameters defined in Figure 5: m w represents the wheels weight, J w is the moment of inertia, R is the wheel radius, l is the pendulum length, θ is the deflection angle, and m p is the pendulum weight.

AMAV, its parameters, and coordinate system. AMAV: ambiguous mono axial vehicle.
First, the external forces (driving and damping forces) will not be considered to derive the dynamics of AMAV. Differential equations, which describe the dynamics of AMAV, can be defined by the usage of Lagrange equations of the second kind. Kinetic (translational and rotational) and potential energy of the wheel is defined

Lagrangian of AMAV is defined
Where T is the kinetic energy of AMAV and U is the potential energy of AMAV. Therefore, the Lagrangian of AMV is described by equation
It is clear that these parameters describe the coordinates of the system:
The equations, which describe the dynamics of AMAV, are defined as Lagrange equations of the second kind
Individual members of equations are defined
Then the equations describing the dynamics of the system without the influence of external forces are described
Actuator is located in rotational linkage of AMAV. This actuator affects the wheels and body with torque M
P according to the rules of release in the opposite direction. Viscous friction M
DW counteracts against the movement of the wheels, damping with torque M
DP counteracts against the movement of pendulum, and viscous resistance with torque M
P is active in the rotational linkage (Figure 6). These torques are defined

Driving and damping torques acting on the AMAV. AMAV: ambiguous mono axial vehicle.
After integration of these equations in a dynamic description of the system
The value

Simulation model of AMAV in Matlab Simulink. AMAV: ambiguous mono axial vehicle.
Simulations
As it was mentioned above, AMAV in stabile mode is similar to dicycle model and in unstable mode when the payload is pushed out is similar to Segway. Despite the model of AMAV was derived for the stable mode, the change into unstable mode can be performed by setting of initial angle value to π radians. In reality, it means that the chassis is reversed by 180° and the CG is pushed out above the wheels axis. During the simulations, angular position is evaluated for both cases. The simulation model is illustrated in Figure 7. The input value Initial Phi for the stable case is equal to 0 radians, and, for the unstable case, it is equal to π radians. The parameters of models are derived from the real robotic AMAV chassis (Figure 8). The parameters of this chassis are defined in the Table 1.

Real construction of mobile robotic chassis of AMAV type. AMAV: ambiguous mono axial vehicle.
The parameters of real AMAV.
AMAV: ambiguous mono axial vehicle.
In the Figure 9, it can be seen AMAV response to input torque in a stable case (blue curve). The body of AMAV is unbalanced from the zero angular position (green curve) against the effecting input torque. Oscillating nature of the chassis can be seen during the transient effect in simulation time 1 s, 3 s, 5 s, and 7 s. Amplitude of these oscillations is not so high—maximum 0.01 radians. Body of AMAV has been shifted out of 0.225 radians against the zero position. Change of position during the influence of input torque was equal to 0.55 m (red curve).

Simulation of dynamic model of AMAV at a stable mode. AMAV: ambiguous mono axial vehicle.
In the Figure 10, it can be seen AMAV response to input torque in an unstable case (blue curve). This means that the initial inclination (Initial Phi) was equal to π radians. From the results, it is clear that the body immediately begins swinging to stabilize its position. While the initial torque is constant, position of the body will stabilize at 0.2 radians. This is almost the same value as in the stable case. When the initial torque stops affecting AMAV, the body will stabilize on the angular position equal to 0 radians.

Simulation of dynamic model of AMAV at an unstable mode. AMAV: ambiguous mono axial vehicle.
Proposed AMAV system is SIMO system, thus system with one input (torque generated by drive) and with two outputs (angular position of the body and angular position of the wheels). At this point, it is good to notice that only forward–backward motion is considered. This simplification will be taken into account for consequent analysis and control synthesis, because it is assumed that the essential mass constituting the body will be symmetrically distributed in it. The simulations show that non-controlled chassis is not able to hold the body position at the zero value during the application of input torque. In unstable mode, it is even worse that whole body is inverted. This may actually lead to the destruction of the chassis. Therefore, the control of AMAV is aimed to control the input torque (in fact the control of current in motors) on the basis of measured variables (angular positions and velocities of body and wheels) in such a way that the angular position of the body will change minimally from the zero value.
Generalized dynamic model of AMAV
The change from the stable case into the unstable case was realized by setting the initial position of body—either 0° or 180°. This setting is not suitable for the synthesis of united control for both modes (stable/unstable). That is why the generalized dynamic model of AMAV will be derived on the basis of generalized position of CG. The position of the CG is conceptualized as the pendulum length defined by mathematical model of AMAV (Figure 5). If the damping elements are neglected, then the AMAV model is described
The change from the unstable state into the stable one was realized by adding 180° to angular position
At the same time, the model will change consequently
Each member of the equation, which changed the sign, also contains the pendulum length l. That is why the generalized position of CG can be introduced into a dynamic model of the system and it will change consequently: If the CG is under the wheels axis, l > 0. If the CG is in the wheels axis, l = 0. If the CG is above the wheels axis, l < 0.
By this definition, the angle θ does not change when the mode is changed from stable to unstable and vice versa. Accordingly only the sign of the generalized position of CG is changed. This is very useful in consequent analysis and synthesis of control.
It is appropriate to linearize the differential equations of generalized dynamic model of AMAV for the synthesis of control. In this case, the viscous damping of rolling wheels, viscous resistance in linkage wheel-pendulum and damping of body is neglected. This assumption can be applied because if the generalized position of the CG l is positive, AMAV is in stable mode and the aim of control is to damp the oscillations of AMAV body. In such control, damping will rather aid and it will not change the sense of linkages. In like manner when the generalized position of the CG is negative and system is in unstable mode, damping will counteract against the body’s motion and this will rather aid in stabilization of the body’s position around 0°. Linearization will be done in the surrounding θ = 0 and
And then linearized equations are defined
Transfer function is then described
The simulation scheme to the corresponding linearized model is shown in Figure 11.

Scheme of the linearized dynamic model of AMAV. AMAV: ambiguous mono axial vehicle.
In the case that l = +0.06 m, system is in stable mode. The poles and zeros of system can be seen in Figure 12. In this mode system has four poles, two are placed in zero and two appear in complex conjugate pair: 0 + 18.24i and 0 − 18.24i. It is clear that the damping is neglected and, therefore, the system is on the margin of stability.

Poles and zeros of system in stable mode.
In the case that l = −0.06 m, system is in unstable mode. The poles and zeros of system can be seen in Figure 13. In this mode system has four poles, two are placed in zero, one is stable at −18.24 + 0i, and one is unstable at 18.24 + 0i. These characteristics will be used in synthesis of control for both modes.

Poles and zeros of system in unstable mode.
Synthesis of control
As it was mentioned earlier, proposed AMAV system is SIMO system with one input (torque generated by drive) and with two outputs (angular position of the body and angular position of the wheels). These two outputs correspond to relevant and practically measureable state variables, which are defined in Table 2.
State variables of AMAV system.
AMAV: ambiguous mono axial vehicle.
Controlled variable is the torque generated by drive, which is defined in the linkage between the body and the wheel. Naturally in real AMAV, the generator of this torque is electric motor. In proposed AMAV system, MAXON DC motor 17 with planetary gear controlled by converter under current-mode control is used. The original model did not taken into account this drive. Therefore, it will be added to the control structure as simplified system of first order with total gain K M and total time constant T M, which define the dynamic properties of the drive
The main requirements on the control are damping of body’s oscillations in stabile mode and stabilization of AMAV in unstable mode. That is why the state-space control with pole placement will be used. 18 Scheme for the state-space control is illustrated in Figure 14.

Scheme of state-space control for AMAV. AMAV: ambiguous mono axial vehicle.
Gains K M, K 0, and time constant T M are the values, which can be obtained from MAXON catalogue. 17 Time constants of AMAV (as it was shown earlier) are in units of seconds and time constant T M is in hundredths of seconds. That is why this time constant will be neglected in following synthesis. Then the transfer function is defined:
From the transfer function it is clear that the system will stabilize at a value −1/l 1. However, it is not desirable. Hence, the gain compensation will be introduced into the control scheme. Characteristic polynomial of the system is defined
Let the system of fourth order is divided into two subsystems of second order. First subsystem will describe the properties of AMAV body and second subsystem will describe the properties of drive. Desired characteristic polynomial is defined
Synthesis of controller by the pole placement methods allows placement the poles of system on the basis of desired dynamical characteristics of the system. If desired characteristic polynomial is equal to characteristic polynomial
Where
The gains of the controller are then defined as follows
From the characteristic polynomial, it is clear that there are two pole couples. It is needed to suitably arrange these couples in complex plane. First pole couple is slow and second couple is fast (Figures 12 and 13). Fast pole couple is represented by AMAV body (replaced by inverted pendulum) and slow pole couple is represented by overall dynamics of AMAV. This is the basic assumption when the damping parameters b 1 and b 2 and natural angular frequencies ω 01 and ω 02 will be determined. 19 Based on the empirical experience, damping coefficients are selected from the interval 0.5–0.707. In the case of pole placement controller, the values b 1 = b 2 = 1/√2 = 0.707 were selected for both pole couples. On the basis of motor parameters, maximal angular acceleration is specified:
The value ω01 is specified as

Dependency of controller gains on the desired natural angular frequency of the system (ω 02).
As it was mentioned earlier, it is necessary to introduce the compensation of gain l 1. The final scheme of the control is shown in Figure 16.

Resultant scheme of control.
The desired value of the position is characterized as trapezoidal signal from the trajectory generator, whereby the reaction of AMAV on that signal is observed. Observed variables are real position of the wheels, inclination of AMAV and consumed current.
The simulation for the linearized model in stable mode is shown in Figure 17. It can be seen that the position error during the slope and run down of desired position is equal to 0.4 rad. The AMAV body is deviated from the vertical position of about 0.3 rad and always against the opposite side of performed motion. Likewise, the current increases to around 1 A. During the steady motion, the current consumption is equal to 0, because the linearized system does not have any damping. It is clear that the motion of AMAV body has aperiodic character due to foisted damping. AMAV is also capable enough to follow the desired position. It is suitable to verify the pole placement of closed control loop in the dependency on degree of systems constrains. This means that the controller gains will change in the interval 〈0, {l1, l2, l3, l4}〉. This dependency (a geometric viewpoint) is shown in Figure 18. At the beginning, the original pole couple will slightly accelerate and the damping will increase to desired value 0.707. This couple will stabilize on the values −2.845 − 2.845i and −2.845 + 2.845i. Fast pole couple will tear away from imaginary axis to the left due to increased damping equal to 0.707 and due to increased natural frequency, which is equal to 27.36 rad.s−1. Its position will stabilize at −19.35 + 19.35i and −19.35 − 19.35i.

Linearized model in stable mode.

Dependency of pole placement on degree of systems constrains—linearized model, stable mode.
The simulation for the linearized model in unstable mode is shown in Figure 19. The position error remained unchanged in comparison with the stable mode. However, the body of AMAV is deviated from the vertical position in the opposite direction as in the stable case. This is required in unstable mode, because the generated torque must keep the upright position of the AMAV. In the case, the body of AMAV is inclined in the opposite direction, with increased generated torque the body of AMAV would tend to fall (positive feedback). Moreover, from the current course it can be seen that the controller respond only with small input to the system in opposite direction during the small change in motion—body is deviated in the direction of the motion. Consequently, input to the system in opposite direction is generated, which performs the actual motion and control of body’s position. The dependency of pole placement on degree of systems constrains is shown in Figure 20. It is clear that with increasing degree of systems constrains the pole couples will move against each other. This will reduce the couples into the single pole, in the left half-plane −6 + 0i and in the right half-plane 7 + 0i. From this torque, the poles are divided, whereby they move from the real axis little by little up to a predefined position −2.845 − 2.845i, −2.845 + 2.845i, −19.35 + 19.35i, and −19.35 − 19.35i. It is the same pole placement as in the stable mode.

Linearized model in unstable mode.

Dependency of pole placement on degree of systems constrains—linearized model, unstable mode.
In the verification of nonlinear model, the same control scheme was used. Linearized model was replaced by nonlinear of course. The simulation for the nonlinear model in stable mode is shown in Figure 21. It can be seen that the system behaves similarly as linearized model, only inclination of body and current do not stabilize at zero. This is due to damping, which was not taken into account within the linearized model. The consumed current is stabilized around 1 A, and the inclination of the AMAV body is stabilized around 0.25 rad.

Nonlinear model in stable mode.
The simulation for the nonlinear model in unstable mode is shown in Figure 22. The difference between the nonlinear model and linear model in this mode is characterized as in the previous case. The consumed current is stabilized around 1 A, and the inclination of the AMAV body is stabilized around 0.25 rad. It can be also seen slight overshoot of current into opposite direction, which causes the deflection of AMAV body into the direction of the motion.

Nonlinear model in unstable mode.
The gains of controller are derived on the basis of the constant length of inverted pendulum (hangings), which simulates the AMAV. When this length will change, the controller will not be able to guarantee the required characteristics of control. That is why it is suitable to associate the change of gains with the change of hangings length. As it was mentioned earlier, the payload of AMAV is pushed out only when the AMAV is not in forward/backward motion. The lookup table was created to determine the dependency of controller gains on hangings length. This was identified off-line in various lengths. An estimate of the current length of inverted pendulum is defined (Figure 11)
This estimate has one serious disadvantage. Measurement of wheels angular acceleration The part of the control scheme with highlighted influence of reactive torque between the body and wheels.

Introduction of observer (Figure 24) helps to suppress the problem of angular acceleration measuring. It follows
The scheme of reactive torque observer.

It is thus possible to measure the length of hangings without the need for measurement of wheels angular acceleration. Angular acceleration of the body can be measured by gyro, which output is angular velocity of the body.
Conclusions and future work
Concept of AMAV mobile robot was introduced in this article. The key characteristic of such robot is the change of CoG’s position within the body of AMAV. This leads to the change of system’s characteristics from stable oscillating into unstable, and vice versa. Generalized mathematical model of such system was also derived. This model is based on generalized distance of CoG from the axis of wheels and it was used to propose the control by pole-placement method. This control was verified by simulations for linear and nonlinear (in operating points) model and also for stable and unstable regime. Based on the simulations analysis, estimation of parameter L (generalized distance of CoG from the axis of wheels) was also derived. Moreover, the rules for adaptation of system’s control to this parameter were also proposed. For the future work, we are working on implementation of whole control scheme into the real AMAV. We would like to exactly verify the generalized model and proposed control on real AMAV.
Footnotes
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was supported by grants Req-00347-0001, KEGA 003STU-4/2014, APVV-14-0894, and ITMS 26240220033.
