Real-World Modeling of a Pathfinding Robot Using Robot Operating System (ros)



Download 0,7 Mb.
Pdf ko'rish
bet4/9
Sana27.06.2022
Hajmi0,7 Mb.
#709393
1   2   3   4   5   6   7   8   9
3.
 
SYSTEM IMPLEMENTATION 
Now as we have a clear idea of system’s structure, we can 
implement control blocks and OBC nodes in order to setup a 
working pathfinding model. Starting with the control block, we 
need to create a closed feedback loop for precise calculation. 
Fig 4.
Observing the control loop-consider a single motor drive scenario, 
the OBC serially sends the number of steps and direction it wants 
the agent to move. The control block feeds the coefficients to the 
movement function sitting inside the microcontroller. The 
function then commands the H-Bridge to make drives moves up to 
desired steps, however the drives would not exactly follow the 
+
>
F(x,num) 
Input from OBC 
Stochastic Drift 
EN.Steps
d(|Steps-Stochastic Drift|)/dx 
ENCODER FEEDBACK 



number of steps due to stochastic drift. We take the derivative 
Δ
steps and feed it back to the summation node with the input 
stimulus. This procedure can happen for both motors. Another 
closed loop will handle the second motor, but the 
Δ
steps
will be 
calculated by adding a comparator at the output of both loops. The 
comparator then compares 
EN.Steps
(R)
vs. 
EN.Steps
(L)
, and 
takes the one with the higher number of steps. Then the 
comparator output is sent back to either left or right control 
function (whichever skipped more steps) directly and it sets off 
the counterbalance. The cascaded feedback function offsets both 
motor drives equally. And because both outputs are fed to 
comparator block, therefore positive and negative both offsets are 
balanced as required. The interesting thing here is to observe that 
we can easily manage the movements keeping the velocities 
constant. The trick is that the differential drives are constantly 
being checked for their feedback steps using hardware interrupt 
pins of arduino. Also we have simplified each step move by a unit 
revolution of both wheels. Generally it’s not always a good idea to 
restrict the step size of agent model, but since we are considering 
only deterministic grids, our system gets more predictable. 
Moving ahead from low-level controls boxes, we move on to ROS 
running on our OBC. 
Fig 5
Recalling—refreshing our memories; ROS runs by creating a 
network of nodes. Each node is connected within a plumbing style 
structure and has a subscriber and publisher nodes as we discussed 
earlier. We are using ROS as the master controller over low-level 
microcontroller based miniature control boxes (fig 5). The ROS 
environment has a node that publishes the actions our agent needs 
to take in specific states. Those actions are generated based on the 
input arguments to the planner. Planner is like a manager who 
checks up with the occupancy grid and goal location and 
generates heuristics for finding a traversable path towards goal. 
We are using A* search algorithm for finding the optimum path 
towards the goal. The pseudo-code is described below: 
1.
Place start node in 

Download 0,7 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish