<?xml version="1.0" encoding="UTF-8"?>
<TEI xml:space="preserve" xmlns="http://www.tei-c.org/ns/1.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.tei-c.org/ns/1.0 https://raw.githubusercontent.com/kermitt2/grobid/master/grobid-home/schemas/xsd/Grobid.xsd"
 xmlns:xlink="http://www.w3.org/1999/xlink">
	<teiHeader xml:lang="en">
		<fileDesc>
			<titleStmt>
				<title level="a" type="main">Using Artificial Neural Network for Solving Inverse Kinematic Task of 2R Planar Robot-Manipulator</title>
			</titleStmt>
			<publicationStmt>
				<publisher/>
				<availability status="unknown"><licence/></availability>
			</publicationStmt>
			<sourceDesc>
				<biblStruct>
					<analytic>
						<author>
							<persName><forename type="first">Kamila</forename><surname>Tanyrbergenova</surname></persName>
							<email>kamila.tanyrbergen@gmail.com</email>
							<affiliation key="aff0">
								<orgName type="institution">N. Gumilyov Eurasian National University</orgName>
								<address>
									<postCode>010000</postCode>
									<settlement>Astana</settlement>
									<country key="KZ">Kazakhstan</country>
								</address>
							</affiliation>
						</author>
						<author>
							<persName><forename type="first">Tolkyn</forename><surname>Mirgalikyzy</surname></persName>
							<affiliation key="aff0">
								<orgName type="institution">N. Gumilyov Eurasian National University</orgName>
								<address>
									<postCode>010000</postCode>
									<settlement>Astana</settlement>
									<country key="KZ">Kazakhstan</country>
								</address>
							</affiliation>
						</author>
						<author>
							<persName><forename type="first">Balgaisha</forename><surname>Mukanova</surname></persName>
							<affiliation key="aff1">
								<orgName type="institution">Astana IT University</orgName>
								<address>
									<postCode>010000</postCode>
									<settlement>Astana</settlement>
									<country key="KZ">Kazakhstan</country>
								</address>
							</affiliation>
						</author>
						<author>
							<persName><forename type="first">Mikhail</forename><surname>Posypkin</surname></persName>
							<email>mposypkin@frccsc.ru</email>
							<affiliation key="aff2">
								<orgName type="department">Federal Research Center &quot;Computer Science and Control&quot;</orgName>
								<orgName type="institution">Russian Academy of Sciences</orgName>
								<address>
									<postCode>119991</postCode>
									<settlement>Moscow</settlement>
									<country key="RU">Russia</country>
								</address>
							</affiliation>
						</author>
						<title level="a" type="main">Using Artificial Neural Network for Solving Inverse Kinematic Task of 2R Planar Robot-Manipulator</title>
					</analytic>
					<monogr>
						<imprint>
							<date/>
						</imprint>
					</monogr>
					<idno type="MD5">40E00CD9135FE8CB90CC767F18753E29</idno>
				</biblStruct>
			</sourceDesc>
		</fileDesc>
		<encodingDesc>
			<appInfo>
				<application version="0.7.2" ident="GROBID" when="2023-06-19T14:24+0000">
					<desc>GROBID - A machine learning software for extracting information from scholarly documents</desc>
					<ref target="https://github.com/kermitt2/grobid"/>
				</application>
			</appInfo>
		</encodingDesc>
		<profileDesc>
			<textClass>
				<keywords>
					<term>2R robot-manipulator, Neural Networks, ANN, robotics 0000-0002-0703-4057 (Kamila Tanyrbergenova)</term>
					<term>0000-0002-0248-9220 (Tolkyn Mirgalikyzy)</term>
					<term>0000-0002-0823-6451 (Balgaisha Mukanova), 0000-0002-4143-4353 (Mikhail Posypkin)</term>
				</keywords>
			</textClass>
			<abstract>
<div xmlns="http://www.tei-c.org/ns/1.0"><p>The research considered the motion control of a 2R planar robot consisting of two links connected in series through two revolute joints, suitable for the task of simulating the human arm and other similar mechanisms. The aim of the study was to apply Machine Learning (artificial neural networks, ANN) methods to control the position of the 2R planar robot's end-effector within the workspace along a given trajectory. The possibility of using ANNs to achieve a single solution of the Inverse Kinematics Task is shown.</p></div>
			</abstract>
		</profileDesc>
	</teiHeader>
	<text xml:lang="en">
		<body>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>Nowadays, robots have deeply penetrated into our everyday life and are used in a variety of practical tasks. Robotics is an actively developing field, the achievements of which are used in manufacturing, medicine and many other spheres. For example, the work <ref type="bibr" target="#b0">[1]</ref> gives a voluminous overview of robot models used in the medical sphere. Today, robotic manipulators of the "multi-link" type are popular and have not lost their relevance for research purposes for many years. Palleschi and his co-authors <ref type="bibr" target="#b1">[2]</ref> "presented a time-optimal trajectory planning algorithm for moving a flexible joint robot along smooth parametrized paths" for a 2R planar robot. In work <ref type="bibr" target="#b2">[3]</ref> 2R planar robot is also considered, and the authors "designed a genetic algorithm to perform time-optimal control of robotic manipulators along specified paths, subject to torque constraints". Work <ref type="bibr" target="#b3">[4]</ref> also deals with canonical SCARA 2DoF. Based on all of the above, robotic manipulators of the "multi-link" type are popular and in demand due to their simple design and convenience in performing calculations and experiments.</p><p>The Inverse Kinematics Task (IKT) in robotics is important. The solution of the IKT is often the basis for solving other problems facing the mechanical system, for example, for calculating the workspace of a robot. It is known that the IKT is often has more than one solution. The solution of robot's IKT is considered in many works, the problem does not lose its relevance <ref type="bibr" target="#b4">[5]</ref>- <ref type="bibr" target="#b7">[8]</ref>. It is solved in different ways for different mechanical systems. The most popular are classical mathematical (including geometric) methods, as well as widely used methods of machine learning. In work <ref type="bibr" target="#b4">[5]</ref> solution of GLC for multilink with spherical joints (7 links) with application of mathematical apparatus is considered. In the work of Mukanova B.G. solves IKT and Direct Kinematics Task (DKT) for RPR robot also with the use of classical mathematical methods and transformations <ref type="bibr" target="#b5">[6]</ref>.</p><p>W.H. Zayer with co-authors proposed the use of FuzzyNeuralPetriNet to solve the IKT and the DKT of a 2DoF robot manipulator <ref type="bibr" target="#b6">[7]</ref>. Using ANN to solve the IKT for multi-link is also applied in <ref type="bibr" target="#b7">[8]</ref> for PUMA 560 robot, and the training result equals to 90 %. Solving IKT is an important step in solving robotics problems.</p><p>Machine learning methods are extensively used in robotics not only for solving DKT (direct kinematics task) and IKT. Machine learning makes it possible to solve problems where it is difficult to derive dependencies by classical methods. The review by Laith Alzubaidi and his co-authors <ref type="bibr" target="#b8">[9]</ref> states that "recently, machine learning (ML) has become very widespread in research and has been incorporated invariety of applications,including text mining, spam detection, video recommendation, image classification, and multimedia concept retrieval" and that "the effectiveness of an algorithm is highly dependent on the integrity of the input-data representation". For example, holonomy systems in solving DKT, IKT have the problem of geometric inaccuracy of the obtained result. Article <ref type="bibr" target="#b9">[10]</ref> discusses a solution to this problem using the Artificial Neural Network (ANN) and "is trained to predict the position error in the workspace for the given input coordinates of the planar geometry to be sewed in the fabrics".</p><p>Robotics is an actively developing field, but it is likely that the highest peak of development in this area has not yet been reached. First, there is no single solution (framework) that fits all robot models. You have to use highly specialized tools to solve narrow problems. Second, each robot is a mechanism with unique features that require an individual approach. This relates to the description of the kinematics, the dynamics of a robot, how links are connected and their order, whether closed or open kinematic chains are used, whether the system is holonomous or whether odometry must be used, whether a solid body forms the basis of the mechanical system, and other nuances. Therefore, there are still many discoveries to be made in robotics, and often today they refer to specific robot models aimed at solving a narrow range of problems. In <ref type="bibr" target="#b10">[11]</ref> described trends in the industrial robotics sector and graphically shows the growth of number of publications in the field of industrial robotics. The paper <ref type="bibr" target="#b11">[12]</ref> shows trends in the evolution of service robots and lists some unresolved issues in robotics, such as "the lack of generalization and formalism in classifications and taxonomy, the current perceived utilitarian value, battery and autonomy modelling and estimation, ethics, and even design problems related to gender biases based on the occupation of the robot".</p><p>It is a well-known fact that in robotics there are two kinematics tasks: direct and inverse (IKT and DKT). The solution of the DKT gives us an unambiguous answer, while the IKT does not always give a single or unambiguous solution. We must rely on the goal pursued in solving the IKT, which may be to find multiple solutions and further process the results, or to derive a single solution that fits the criteria. IKT is an important step in solving many kinematics problems in robotics, e.g., solving IKT is an important step in computing the Workspace of a robot. It should be noted that the application of Artificial Intelligence (AI) increasingly overlaps with robotics problems and provides many fresh ways to solve different problems. The exact location of not only the end-effector, but also other links in the path can be critical, depending on the tasks the robot is designed to perform. For example, when teaching a robot to repeat movements to train flexor-extensor muscles for those in need of rehabilitation, it is not enough for a robot to follow the end-effector movement along a given trajectory; we also need the most precise movement of all links due to the limited degree of freedom of the human hand. There are many tasks where this criterion is important according to the condition or formulation of the problem. Also, the IKT solution is important in calculating the robot's workspace. Knowing the robot's workspace helps to ensure that the robot's mechanisms and parts work less traumatically for the robot. This study proposes to solve the inverse kinematics problem for 2R planar robot-arm using Artificial Neural Networks (ANN) apparatus and further use the results to build the workspace of the robot, to move the robot along the trajectory taking into account the more exact location of all links. The features and advantages of the proposed solution are given in further sections of the paper.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Description of the robot-manipulator</head><p>In this work we operate with 2R planar robot-arm to test hypotheses and do research. Due to the simple design and ease of prototyping the robot, the demand for this model in different industries, its accessibility and canonicality, the significance of the results for both, training purposes and practical purposes, is achieved.</p><p>This work considers the IKT for a 2R planar robot manipulator using Machine Learning methods to obtain a single (unambiguous) solution on output.</p><p>As mentioned above, the study deals with a 2R planar robot because it has a simple construction consisting of two links connected in series through two revolute joints, and is suitable for the task of simulating the human hand and other similar mechanisms. The robot mechanism under consideration is a holonomous system and can be described geometrically. The geometrical scheme of 2R planar robot with notations is shown in Figure <ref type="figure">1</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Figure 1: 2R Planar Robot Geometric Schema</head><p>Let introduce the following notations: Ois the center of the first link (base) or the junction point of the base and the first link, OBis the first link, BAis the second link, pointВ-is point of connection of the first and second links, pointАis the end-effector coordinate, Q1is the angle between the x-axis and the link OB, Q2is the angle between the OB link and the BA link, L1-length of the first link, L2length of the second link, rxb, ryb -projections of the length of link L1 on coordinate axes, rxa, rya-projections of the radius-vector determining the position of the end-effector on coordinate axes, 𝑟̅ -the radius-vector determining the position of the end-effector in space (the vector connecting the 0 and the target point).</p><p>The degree of freedom of the robot equals two (DOF=2).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Figure 2: 2R Planar Robot Prototype</head><p>According to the described geometrical scheme, the prototype 2R Planar Robot -manipulator was assembled using the ArduinoUno platform based on the ATMEGA328 microcontroller and using two servo motors at the points O and B.</p><p>Thus, two servo motors (model SG 90) play actuators roles in the physical implementation. The implemented physical model of the 2R Planar Robot prototype is shown in Figure <ref type="figure">2</ref>.</p><p>The principal model of the robot, implementedin the CoppeliaSim environment, is shown in Figure <ref type="figure">3</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Figure 3: 2R Planar Robot CoppeliaSim model</head><p>Note that due to the fact that 2R Planar Robot is a holonomous system, only the dimensions of the first and second links mattered for calculations. The links length of the mechanical system prototype was L1 =0.16 m and L2 =0.1 m. The parameters of the robot adopted in the study are described in Table <ref type="table" target="#tab_0">1</ref>. Robot design was chosen based on characteristics of used servomotor models specifications and the weight of the elements that were used in the construction. The characteristics of the SG 90 servomotor can be taken from the manufacturer's official website. According to them the servomotor can hold up to 1 kg of weight on the end of the arm with the length 0,01 m, the servomotor force is 1.2-1.6 kg•cm at voltage 4.8 V. The maximum speed of the SG 90 servomotor is 1.046 radians in 0.1 s (the specification show it as 60 degrees/ 0.1 s).  <ref type="table">2</ref>). As you can see from the table, SG 90 servomotor is restricted and can rotate from 0 to 180 degrees (90 degrees to one side and 90 degrees to the other side). In the calculations we denote the range of motion from -90 to 90 degrees for a convenient representation on the Cartesian coordinate system. In fact, the maximum boundary values are not attainable for the working area. We take this fact into account when constructing the robot workspace. By projecting the radius-vector𝑟̅ onto the coordinate axes, express the values of its projections onto the coordinate axes using the law of cosines. Thus, we obtain the kinematic equations of motion describing the mathematical solution to the DKT (1).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>{</head><p>𝒓 𝒙𝒂 = 𝑳 𝟏 * 𝐜𝐨𝐬(𝑸 𝟏 ) + 𝑳 𝟐 * 𝐜𝐨𝐬(𝑸 𝟏 + 𝑸 𝟐 ) 𝒓 𝒚а = 𝑳 𝟏 * 𝐬𝐢𝐧(𝑸 𝟏 ) + 𝑳 𝟐 * 𝐬𝐢𝐧(𝑸 𝟏 + 𝑸 𝟐 ) (𝟏)</p><p>Performing calculations by formula (1) in the loop, taking into account the constraints on the servomotors, we obtain the set of workspace points of the robot-manipulator. The boundaries of the workspace are unreachable for the end-effector, so we remove them from the set of points of the workspace (highlighted in black). The calculation step equal to 1 degree, angles from -90 to 90 degrees. Then subtract from the set the points being the boundary points. Based on this, with regard to the given lengths of the links, the workspace has the surface shown in Figure <ref type="figure" target="#fig_0">4</ref>. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Problem Formulation</head><p>The following definitions and terms should be introduced for the convenience of the following presentation:</p><p>• A Transitional link-is any movable link that participates in the movement and affects the coordinates of the end-effector, on which the end-effectoris not located and the coordinates of which do not coincide with the coordinates of the end-effector. In our case, we highlight the link L1as the only intermediate link.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>•</head><p>The coordinates of point B are coordinates of the Transitional link.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>•</head><p>The set of allowable coordinate points of the Transitional link is called a workspace of the Transitional link. Obviously, in this case the workspace of the Transitional link is an arc of a circle with radius L1.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>•</head><p>A Target linkis a link those coordinates are associated with the coordinates of the endeffector.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>•</head><p>When controlling the motion of the robot, we will be based on the "exactly-the-same" principle. This principle implies that all intermediate links of the robot and the target link of the robot will repeat the necessary movements as accurately as possible, and not only the trajectory set for the end-effector.</p><p>• Thus, we implement the ESM method with with application to ANNs with different topologies and models, inputs and outputs, to obtain a single output. This makes it possible to train the robot to move by following the correct location of the target and intermediate links on the selected surface according to the "exactly-the-same" principle. The formulation of the problem is below:</p><p>Given: The workspace of the robot is defined and the trajectory is given by a sequence of discrete points along which the end-effector should move, with a given time step Δt=(t1-t0)/H -H number of steps.</p><p>It is required to set the angles of rotation on the actuators in real time, so that at the next moment of time +Δt the working tool moves to a given point on the trajectory. Perform a calculation for a given time interval, with regular step Δt, such that the robot follows the given trajectory from the initial to the final position.</p><p>The restrictions on the workspace and the technical limitations on the torques on the actuators must be satisfied.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">Concept of the proposed method</head><p>We propose the following method for solving IKT for a 2R multi-link robot:</p><formula xml:id="formula_0">•</formula><p>The IKTis solved using Artificial Neural Networks (ANN). The trajectory, time step of links rotations is given.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>•</head><p>At the input of the ANN is the coordinates of the intermediate link and the coordinates of the end-effector.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>•</head><p>The proposed ANN model gives a single solution on output. Thus, ANN gives a single and unambiguous output result. The input data, which contain the coordinates of the intermediate link, gives opportunity to avoid the ambiguity of the solution. The specific feature of the proposed solution is that the input of the ANN is consist of, in addition to the coordinates of the end-effector, also the coordinates of the intermediate link (point B).</p><p>When data are sequentially sent to the input of the ANN, it should be noted next statements:</p><p>• taking into account that each subsequent input vector is the coordinates of points of an arbitrary trajectory, when moving with a step Δt; • taking into account that the coordinates of points are taken with a fixed time step, by the results of the output vector it is possible to reproduce the laws of change of linear speeds, linear and angular accelerations on the route, if necessary.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.">ANN Model</head><p>The advantage of the proposed ANN topology, that implements the ESM method, is that, with taking into account of the intermediate link position, the output is a single solution of the IKT for 2R planar robot-arm. This allows the trained robot not just to repeat the required trajectory by the endeffector, but also to repeat completely the movements of all intermediate links.</p><p>So, using these solutions, it is possible to set the trajectory and positions of its intermediate links to the robot and teach it to repeat exactly all movements according to the "exactly the same" principle. The total time, the resulting law of velocity change, the energy expended on the motion, and other dynamic indicators are not optimal. These indicators are called intuitive outputs based on the results of the conversion of the ANN output data.</p><p>The modules developed to implement the goal of the research were written in Python. Different models of a fully coupled ANN with different topologies were implemented using the frameworks Tensor Flow and Keras. The graphs were constructed with the help of ТensorBoard, Matplotib, and Graphviz libraries.</p><p>Implemented research steps to make work on the simulator and the robot model prototype and to find a suitable ANN topology are below:</p><p>1. Designing the circuit of the future robot prototype, description of the robot kinematics, model implementation in CoppeliaSimEDU environment.</p><p>2. Developing of a module to build the robot's workspace and its boundaries.</p><p>3. Developing of a module for generating a pseudo-random trajectory within the workspace. 4. Assembling the construction of the robot prototype on the ArduinoUno board using Atmega328 microcontroller. The training samples was generated in 1-degree increments, because a larger increment had insufficient effect on the learning process of the ANN, while a smaller increment did not produce better learning results.</p><p>Pre-testing of the training results was performed using the simulation on the robot model implemented in the CoppeliaSim environment. Then, after passing the pre-test, the learning results were tested physically on the prototype of the serial 2R Planar robot assembled on the ArduinoUno board with the Atmega328 microcontroller. The computational load of working of the Neural Network was performed on the PC, and training results was transferred to the microcontroller through the interface Firmata. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1.1.">The ANN model implements the "exactly the same" principle. Topology description and training result</head><p>The injection of the coordinates of the Transitional link into the ANN allows us to avoid the problem of choosing solution between many solutions of the IKT (in our case is two solutions). At the output we have two parameters: Q1 and Q2-angles of rotation of the actuator that determine the position of the links in the angular coordinate system.</p><p>The ANN, which gave the best result in realization of "exactly the same" principle consists of an input layer of dimension 4, hidden layers of dimension 9 and 12 neurons, an output layer of two neurons (see Table2). Visual diagram (topology) of the full-connected ANN is shown in Figure <ref type="figure" target="#fig_2">5</ref>. The following activation functions built into Keras are used for the layers:</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Table2</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>•</head><p>The activation function -hyperbolic tangent calculates according to the following formula (3) and gives the result at the neuron output in the range <ref type="bibr">[-1,1]</ref>.</p><formula xml:id="formula_2">𝑓(𝑥) = tanh(𝑥) = 2 1 + 𝑒 −2𝑥 − 1(3) •</formula><p>The sigmoid activation function, gives a result on the neuron output in the range [0,1] (Formula 4):</p><formula xml:id="formula_3">𝑓(𝑥) = 1 1 + 𝑒 −𝑥 (4)</formula><p>These activation functions were used in the final ANN model because they gave the best learning results and are suitable for solving similar problems, are the most commonly used and well-proven. The custom activation functions were not necessary and their development was not the purpose of the study.</p><p>To measure the accuracy we used Accuracy metric, which is also an embedded metric. This metric was chosen for the task due to its simplicity and clarity. The built-in losses was chosen as Loss function MAPE (mean absolute percentage error) calculated using formula (5) below. The Inverse Error Propagation Algorithm was used for training. The Adamax function was used as an optimizer and the learning rate parameter for the ANN was equal to 0.01. More details on metrics, loss functions, and optimizers can be found in the Keras documentation.</p><formula xml:id="formula_4">𝑀𝐴𝑃𝐸 = 100% 𝑛 ∑ | (y_true − y_pred) y_true | 𝑛 𝑡=1 ,<label>(5)</label></formula><p>Where 𝑦 𝑡𝑟𝑢𝑒 is the actual value and 𝑦 𝑝𝑟𝑒𝑑 is the forecast value. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.">Results and Discussion</head><p>The results of training and testing of the ANN are given in this section. The evaluation of the trained ANN during testing with test samples (model.predict()) was performed with the standard function model.evaluate().</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.1.">Model Training and Testing Results</head><p>The designed ANN model was trained with a final Accuracy equals 98.84% (see Figure <ref type="figure" target="#fig_3">6a</ref>). A total of 500 epochs were allocated for training to achieve the specified Accuracy. The final value of the loss function was 5.16% (see Figure <ref type="figure" target="#fig_3">6b</ref>). Optimizer Adamax was used with a learning rate equal to 0.01. Next, the Random Trajectory Generation module generated a test sample with a step Δt=10 ms and an angle of no more than 50 degrees, taking into account the maximum speed (Figure <ref type="figure" target="#fig_4">7</ref>). It represents the points of the trajectory that the robot prototype should repeat.  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7.">Conclusion</head><p>The main result of the study is the proposed model of the ANN for solving the IKT, which implements the proposed ESM method. The ANN model solves the problem of finding angles Q1 and Q2, having information about the coordinates of the target link and the coordinates of the transitional link, it implements the "exactly the same" principle. The accuracy of the proposed final ANN was 98% in training and not lower than 95% in test samples. The proposed ANN model is called ESMNeuralNetwork 1.0v.</p><p>The results of this study can be applied to robots with a similar configuration, if:</p><p>• It is important to obtain a single solution of IKT;</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>•</head><p>The working area of an end-effector and transitional links is known.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>•</head><p>There is a need to specify or calculate the total time taken to move along a trajectory.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>•</head><p>There is a need to obtain the law of angular velocity change on a trajectory and other characteristics of movement.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>•</head><p>The coordinates of target trajectory coordinates and transitional links coordinates. The results of the work can be adapted for flat artist robots, flexor-extensor muscle trainer robots, and others with a similar configurations and problem formulation.</p><p>Results of work can be developed for other robot models, as well as to improve the mechanical characteristics of motion, continue research in the direction of calculating the optimal trajectory, the laws of change of the control moments on the actuators, improve the comfort of movement and minimize energy costs.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="8.">Conflicts of Interest</head></div><figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_0"><head>Figure 4 :</head><label>4</label><figDesc>Figure 4: 2R Planar Robot Workspace with given constraints</figDesc><graphic coords="5,204.10,254.71,201.97,149.90" type="bitmap" /></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_1"><head></head><label></label><figDesc>Preparation of the training and test samples. The set of consecutively arranged trajectory points from the working area, calculated in the range of the angular actuator [-90⁰, 90⁰] with step 1⁰ and the corresponding set of intermediate points is a training sample for the ANN. The training sample with this step is chosen due to the good result obtaining while working. A larger step did not give a better result in the test. A smaller step did not give a better result. The size of the training sample is 32040. Four parameters are input: • rxa, ryadetermine the coordinates of point A on the coordinate plane; • rxb, rybdetermine the coordinates of point B on the coordinate plane. Calculated by the following formula (Formula 2): { 𝑟 𝑥𝑏 = 𝐿 1 * cos(𝑄 1 ) 𝑟 𝑦𝑏 = 𝐿 1 * sin(𝑄 1 )</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_2"><head>Figure 5 :</head><label>5</label><figDesc>Figure 5: Neural network graph indicating the activation function on the layer</figDesc><graphic coords="8,138.23,402.95,355.10,227.50" type="bitmap" /></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_3"><head>Figure 6 :</head><label>6</label><figDesc>Figure 6: a) Accuracy b) Loss</figDesc><graphic coords="9,123.15,153.79,177.27,130.70" type="bitmap" /></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_4"><head>Figure 7 :</head><label>7</label><figDesc>Figure 7: Random generated trajectory</figDesc><graphic coords="9,178.60,348.51,253.44,221.20" type="bitmap" /></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_5"><head>Figure 8 :</head><label>8</label><figDesc>Figure 8: a) Q2 is Theta2 angle b) Q1 is Theta1 angle</figDesc><graphic coords="10,72.00,72.00,450.91,223.40" type="bitmap" /></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" type="table" xml:id="tab_0"><head>Table 1</head><label>1</label><figDesc></figDesc><table><row><cell>Robot parameters</cell><cell></cell><cell></cell><cell></cell><cell></cell></row><row><cell>Parameter</cell><cell>Length (m)</cell><cell>Width (m)</cell><cell>Height(m)</cell><cell>Weight(kg)</cell></row><row><cell>First Link (L1 )</cell><cell>0,16</cell><cell>0,017</cell><cell>0,002</cell><cell>0,016</cell></row><row><cell>SecondLink (L2 )</cell><cell>0,10</cell><cell>0,017</cell><cell>0,002</cell><cell>0,023</cell></row><row><cell>Base</cell><cell>0,095</cell><cell>0,095</cell><cell>0,05</cell><cell>Not considered</cell></row></table><note>Let's present the specifications of servomotors in table (see Table</note></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" type="table" xml:id="tab_2"><head></head><label></label><figDesc>5. Developing of a module for generating training and test samples based on the movements of the robot model in the CoppeliaSim environment. 6. Designing the ANN topologies, verification, training, testing. 7. Visualization of results, evaluation of ANN performance, and selection of the best models. 8. Developing of module for testing, verification of training results and recreation of robot movements on robot model in CoppeliaSim environment. 9. Testing of the model implemented on ArduinoUno board.</figDesc><table /></figure>
		</body>
		<back>

			<div type="acknowledgement">
<div xmlns="http://www.tei-c.org/ns/1.0"><p>The authors declare that there are no conflicts of interest regarding the publication of this paper.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="9.">References</head></div>
			</div>

			<div type="references">

				<listBibl>

<biblStruct xml:id="b0">
	<analytic>
		<title/>
		<author>
			<persName><forename type="first">J</forename><surname>Holland</surname></persName>
		</author>
		<author>
			<persName><forename type="first">L</forename><surname>Kingston</surname></persName>
		</author>
		<author>
			<persName><forename type="first">C</forename><surname>Mccarthy</surname></persName>
		</author>
		<author>
			<persName><forename type="first">E</forename><surname>Armstrong</surname></persName>
		</author>
		<author>
			<persName><forename type="first">P</forename><surname>O'dwyer</surname></persName>
		</author>
		<author>
			<persName><forename type="first">F</forename><surname>Merz</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Mcconnell</surname></persName>
		</author>
		<idno type="DOI">10.3390/robotics10010047</idno>
	</analytic>
	<monogr>
		<title level="j">Service Robots in the Healthcare Sector</title>
		<imprint>
			<biblScope unit="volume">10</biblScope>
			<biblScope unit="issue">1</biblScope>
			<biblScope unit="page">47</biblScope>
			<date type="published" when="2021">2021</date>
		</imprint>
	</monogr>
	<note>Robotics</note>
</biblStruct>

<biblStruct xml:id="b1">
	<analytic>
		<title level="a" type="main">Time-Optimal Trajectory Planning for Flexible Joint Robots</title>
		<author>
			<persName><forename type="first">A</forename><surname>Palleschi</surname></persName>
		</author>
		<author>
			<persName><forename type="first">R</forename><surname>Mengacci</surname></persName>
		</author>
		<author>
			<persName><forename type="first">F</forename><surname>Angelini</surname></persName>
		</author>
		<author>
			<persName><forename type="first">D</forename><surname>Caporale</surname></persName>
		</author>
		<author>
			<persName><forename type="first">L</forename><surname>Pallottino</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>De Luca</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Garabini</surname></persName>
		</author>
		<author>
			<persName><surname>Manolo</surname></persName>
		</author>
		<idno type="DOI">10.1109/LRA.2020.2965861</idno>
	</analytic>
	<monogr>
		<title level="j">IEEE Robotics and Automation Letters</title>
		<imprint>
			<biblScope unit="page" from="1" to="1" />
			<date type="published" when="2020">2020</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b2">
	<analytic>
		<title level="a" type="main">An Evolutionary Approach to Time-Optimal Control of Robotic Manipulators</title>
		<author>
			<persName><forename type="first">E</forename><surname>Ferrentino</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Della Cioppa</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Marcelli</surname></persName>
		</author>
		<author>
			<persName><forename type="first">P</forename><surname>Chiacchio</surname></persName>
		</author>
		<idno type="DOI">10.1007/s10846-019-01116-9</idno>
	</analytic>
	<monogr>
		<title level="j">Journal of Intelligent &amp; Robotic Systems</title>
		<imprint>
			<date type="published" when="2019">2019</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b3">
	<analytic>
		<title level="a" type="main">Optimal Placement and Kinematic Design of 2-DoF Robotic Arm</title>
		<author>
			<persName><forename type="first">K</forename><surname>Khalid</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><forename type="middle">A</forename><surname>Zaidi</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Y</forename><surname>Ayaz</surname></persName>
		</author>
		<idno type="DOI">10.1109/IBCAST51254.2021.9393255</idno>
	</analytic>
	<monogr>
		<title level="m">Proceedings of the 2021 International Bhurban Conference on Applied Sciences and Technologies</title>
				<meeting>the 2021 International Bhurban Conference on Applied Sciences and Technologies<address><addrLine>IBCAST</addrLine></address></meeting>
		<imprint>
			<date type="published" when="2021">2021</date>
			<biblScope unit="page" from="552" to="559" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b4">
	<analytic>
		<title level="a" type="main">Inverse Kinematics Data Adaptation to Non-Standard Modular Robotic Arm Consisting of Unique Rotational Modules</title>
		<author>
			<persName><forename type="first">S</forename><surname>Ondočko</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Svetlík</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Šašala</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Z</forename><surname>Bobovský</surname></persName>
		</author>
		<author>
			<persName><forename type="first">T</forename><surname>Stejskal</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Dobránsky</surname></persName>
		</author>
		<author>
			<persName><forename type="first">L</forename><surname>Hrivniak</surname></persName>
		</author>
		<idno type="DOI">10.3390/app11031203</idno>
	</analytic>
	<monogr>
		<title level="j">Applied Sciences</title>
		<imprint>
			<biblScope unit="volume">11</biblScope>
			<biblScope unit="issue">3</biblScope>
			<biblScope unit="page">1203</biblScope>
			<date type="published" when="2021">2021</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b5">
	<analytic>
		<title level="a" type="main">Control of Actuators Torques for Optimal Movement along a Given Trajectory for the DexTAR Robot</title>
		<author>
			<persName><forename type="first">B</forename><surname>Mukanova</surname></persName>
		</author>
		<idno type="DOI">10.22055/jacm.2020.34650.2449</idno>
	</analytic>
	<monogr>
		<title level="j">Journal of Applied and Computational Mechanics</title>
		<imprint>
			<biblScope unit="volume">7</biblScope>
			<biblScope unit="issue">1</biblScope>
			<biblScope unit="page" from="165" to="176" />
			<date type="published" when="2021">2021</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b6">
	<analytic>
		<title level="a" type="main">Solving forward and inverse kinematics problem for a robot arm (2DOF) using Fuzzy Neural Petri Net (FNPN)</title>
		<author>
			<persName><forename type="first">W</forename><forename type="middle">H</forename><surname>Zayer</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Z</forename><forename type="middle">A</forename><surname>Maeedi</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><forename type="middle">J F</forename><surname>Ali</surname></persName>
		</author>
		<idno type="DOI">10.1088/1742-6596/1773/1/012009</idno>
	</analytic>
	<monogr>
		<title level="j">Journal of Physics: Conference Series</title>
		<imprint>
			<biblScope unit="volume">1773</biblScope>
			<biblScope unit="page">12009</biblScope>
			<date type="published" when="2021">2021</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b7">
	<analytic>
		<title level="a" type="main">Use of Artificial Neural Networks for the Development of an Inverse Kinematic Solution and Visual Identification of Singularity Zone(s)</title>
		<author>
			<persName><forename type="first">L</forename><surname>Aggarwal</surname></persName>
		</author>
		<author>
			<persName><forename type="first">K</forename><surname>Aggarwal</surname></persName>
		</author>
		<author>
			<persName><forename type="first">R</forename><forename type="middle">J</forename><surname>Urbanic</surname></persName>
		</author>
		<idno type="DOI">10.1016/j.procir.2014.01.107</idno>
	</analytic>
	<monogr>
		<title level="j">Procedia CIRP</title>
		<imprint>
			<biblScope unit="volume">17</biblScope>
			<biblScope unit="page" from="812" to="817" />
			<date type="published" when="2014">2014</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b8">
	<analytic>
		<title level="a" type="main">Review of deep learning: concepts, CNN architectures, challenges, applications, future directions</title>
		<author>
			<persName><forename type="first">L</forename><surname>Alzubaidi</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Zhang</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><forename type="middle">J</forename><surname>Humaidi</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Al-Dujaili</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Y</forename><surname>Duan</surname></persName>
		</author>
		<author>
			<persName><forename type="first">O</forename><surname>Al-Shamma</surname></persName>
		</author>
		<author>
			<persName><forename type="first">L</forename><surname>Farhan</surname></persName>
		</author>
		<idno type="DOI">10.1186/s40537-021-00444-8</idno>
	</analytic>
	<monogr>
		<title level="j">Journal of Big Data</title>
		<imprint>
			<biblScope unit="volume">8</biblScope>
			<biblScope unit="issue">1</biblScope>
			<date type="published" when="2021">2021</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b9">
	<analytic>
		<title level="a" type="main">Artificial neural network based geometric error correction model for enhancing positioning accuracy of a robotic sewing manipulator</title>
		<author>
			<persName><forename type="first">M</forename><forename type="middle">Praveen</forename><surname>Kumar</surname></persName>
		</author>
		<author>
			<persName><forename type="first">S</forename><forename type="middle">D</forename><surname>Ashok</surname></persName>
		</author>
		<idno type="DOI">10.1016/j.procs.2018.07.069</idno>
	</analytic>
	<monogr>
		<title level="j">Procedia Computer Science</title>
		<imprint>
			<biblScope unit="volume">133</biblScope>
			<biblScope unit="page" from="1048" to="1055" />
			<date type="published" when="2018">2018</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b10">
	<analytic>
		<title level="a" type="main">Advanced applications of industrial robotics: New trends and possibilities</title>
		<author>
			<persName><forename type="first">A</forename><surname>Dzedzickis</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Subačiūtė-Žemaitienė</surname></persName>
		</author>
		<author>
			<persName><forename type="first">E</forename><surname>Šutinys</surname></persName>
		</author>
		<author>
			<persName><forename type="first">U</forename><surname>Samukaitė-Bubnienė</surname></persName>
		</author>
		<author>
			<persName><forename type="first">V</forename><surname>Bučinskas</surname></persName>
		</author>
		<idno type="DOI">10.3390/app12010135</idno>
	</analytic>
	<monogr>
		<title level="j">Applied Sciences</title>
		<imprint>
			<biblScope unit="volume">12</biblScope>
			<biblScope unit="issue">1</biblScope>
			<date type="published" when="2022">2022</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b11">
	<analytic>
		<title/>
		<author>
			<persName><forename type="first">J</forename><forename type="middle">A</forename><surname>Gonzalez-Aguirre</surname></persName>
		</author>
		<author>
			<persName><forename type="first">R</forename><surname>Osorio-Oliveros</surname></persName>
		</author>
		<author>
			<persName><forename type="first">K</forename><forename type="middle">L</forename><surname>Rodríguez-Hernández</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Lizárraga-Iturralde</surname></persName>
		</author>
		<author>
			<persName><forename type="first">R</forename><forename type="middle">Morales</forename><surname>Menendez</surname></persName>
		</author>
		<author>
			<persName><forename type="first">R</forename><forename type="middle">A</forename><surname>Ramírez-Mendoza</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><forename type="middle">A</forename><surname>Ramírez-Moreno</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><forename type="middle">D J</forename><surname>Lozoya-Santos</surname></persName>
		</author>
		<idno type="DOI">10.3390/app112210702</idno>
		<ptr target="https://doi.org/10.3390/app112210702" />
	</analytic>
	<monogr>
		<title level="j">Service Robots: Trends and Technology</title>
		<imprint>
			<biblScope unit="volume">11</biblScope>
			<biblScope unit="page">10702</biblScope>
			<date type="published" when="2021">2021</date>
		</imprint>
	</monogr>
	<note>Appl. Sci.</note>
</biblStruct>

				</listBibl>
			</div>
		</back>
	</text>
</TEI>
