/
planner.py
605 lines (505 loc) · 24.5 KB
/
planner.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#Modules
import os
import sys
import copy
import rospy
import readline # autocompletion
import serial #arduino serial connection
from progress.bar import Bar #progress bar
from multiprocessing import Process
import signal
import moveit_commander
import time
from math import pi, sqrt, pow, ceil
from tf.transformations import quaternion_from_euler, quaternion_multiply,quaternion_conjugate
from niryo_one_python_api.niryo_one_api import *
#Messages
from std_msgs.msg import String, Header
from moveit_msgs.msg import RobotState as RbState #changing name to avoid conflict with newly made RobotState msg by Niryo
from moveit_msgs.msg import RobotTrajectory, Constraints
from moveit_msgs.srv import GetCartesianPath
from sensor_msgs.msg import JointState
from geometry_msgs.msg import Pose
n = NiryoOne()
offsets_niryo = [0.20,-0.1,0.0275] #offsets for 2D+ printing (gcode origin: 0,0,0)
#Colors to enhance HMI
cplanner = '\033[1;104m'
cred = '\033[91m'
cend = '\033[0m'
cgreen = '\033[1;42m'
cyellow = '\033[1;93m'
cblue = '\033[1;94m'
#Global variables
dir = os.getcwd() + "/Trajectories"
files = os.listdir(dir)
def completer(text, state): #This function is doing the autocompletion to choose a file easier
options = [x for x in files if x.startswith(text)]
try:
return options[state]
except IndexError:
return None
def time_bar(duration): #This function is updating a loading bar while printing (visual effect)
state = Bar('Progress',max=duration - 1,empty_fill='-',fill=cblue + '>' + cend,suffix='%(percent).1f%% - Remaining:%(eta)ds')
for i in range(0,duration):
time.sleep(1)
state.next()
state.finish()
def check_trajectory(cartesian_plan, end_joints, frac, way, distance_btwn_points):
print("-> Auto-check trajectory module")
error_time = 0
if(frac != 1.0):
a = raw_input(cyellow + "Delete singularities ?(y/n)" + cend)
if(a == 'y'): #-Skip unreachable points
avoided = 0
total_trajectory = len(way)
while(frac < 1.0 and avoided < 0.15 * total_trajectory): #need 100% of the trajectory or <15% of the total trajectory avoided
os.system('clear')
print(cgreen + "\n\t > - - Niryo One - Surmoul 3D - - < \n" + cend)
print "\nPoints avoided: %d\n" % (avoided)
i = int(ceil(frac * len(way))) #get last point to calculate: frac represents the already calculated path and
#ceil rounds the number up so we get the next point that caused the problem
del way[i]
distance_btwn_points[i + 1]+=distance_btwn_points[i] #-updating distance_btwn_points
del distance_btwn_points[i]
avoided+=1
b_cartesian_plan, b_end_joints ,frac = Instance.plan_cartesian_path(1,way,end_joints)
cartesian_plan = b_cartesian_plan
end_joints = b_end_joints
print "\nPoints avoided to satisfy trajectory %d on %d (%.1f %%)" % (avoided,total_trajectory, avoided * 100 / (total_trajectory))
for i in range(0,len(cartesian_plan.joint_trajectory.points) - 1):
t = cartesian_plan.joint_trajectory.points[i].time_from_start.secs + cartesian_plan.joint_trajectory.points[i].time_from_start.nsecs * pow(10,-9)
t1 = cartesian_plan.joint_trajectory.points[i + 1].time_from_start.secs + cartesian_plan.joint_trajectory.points[i + 1].time_from_start.nsecs * pow(10,-9)
if(t1 <= t):
cartesian_plan.joint_trajectory.points[i+1].time_from_start.nsecs +=1 #- to avoid time not increasing error
error_time+=1
print "error occuring at : "+str(t)
print "-Time not increasing- errors fixed : %d" % (error_time)
#- debug purpose only
traj_saved=open("traj_saved.txt",'w')
traj_saved.write(str(cartesian_plan))
traj_saved.close()
return(cartesian_plan, end_joints, frac, distance_btwn_points)
#----------------------------
#------- OUTILS Arduino------
#----------------------------
'''Actions possibles:
t1-chauffe
t2-maj objectif temperature
t3-affiche temperature
t4-chargement materiau
t5-déchargement materiau
t6-remplir tableau d extrusion
t7-extrusion vitesse donnee
t8-stop extrusion
t9-stop chauffe
'''
class Arduino():
n.pin_mode(GPIO_1B,PIN_MODE_OUTPUT)
n.pin_mode(GPIO_1C,PIN_MODE_OUTPUT)
com = serial.Serial('/dev/ttyACM0',57600)
time.sleep(1) #delay to safely start serial communication
com.reset_input_buffer() #emptying previous data transfers
com.reset_output_buffer()
def empty(self):
self.com.reset_input_buffer()
self.com.reset_output_buffer()
def send(self,message):
self.com.write(message)
time.sleep(0.1)
n.digital_write(GPIO_1B,True) #rising signal
time.sleep(0.1)
print self.com.readline()
n.digital_write(GPIO_1B,False)
def heat(self):
self.send('t1')
def temperature_objective(self):
temp = int(raw_input('Temperature to reach ? '))
self.send('t2x' + str(temp))
def print_temperature(self):
self.send('t3')
print self.com.readline()
def filament_load(self):
self.send('t4')
def filament_unload(self):
self.send('t5')
def extrusion_tab(self,tab,distance_btwn_points):
print "Start sending"
self.send('t6')
coeff_extru = 0.5#0.25
coeff_hotend = 0.209
max_speed = 8
self.com.write('x' + str(len(tab) - 1)) #Send number of orders
for i in range(0,len(tab) - 1): #Send orders
t_next = tab[i].time_from_start.secs + tab[i].time_from_start.nsecs * pow(10,-9)
dt = tab[i + 1].time_from_start.secs + tab[i + 1].time_from_start.nsecs * pow(10,-9) - t_next
speed = int(distance_btwn_points[i] * coeff_hotend * coeff_extru / dt * 1000)
if(speed > max_speed): #extrusion limit
speed = max_speed
if(speed < 0):
speed = -2
self.com.write('x' + str(speed)) #Send necessary speed
time.sleep(0.001) #delay to be sure there is no loss while transferring via serial connection
print "Sending finished"
print self.com.readline()
def manual_extrusion(self):
speed = int(raw_input("Extrusion speed ? "))
self.send('t7x' + str(speed))
def stop_extrusion(self):
self.send('t8')
def stop_heating(self):
self.send('t9')
class PlannerInterface(object):
def __init__(self):
super(PlannerInterface, self).__init__()
# First initialize `moveit_commander`_ and a `rospy`_ node:
moveit_commander.roscpp_initialize(sys.argv)
rospy.init_node('PlannerInterface')
# Instantiate a `MoveGroupCommander`_ object. This object is an interface to
# a planning group (group of joints).
group_name = "arm"
move_group = moveit_commander.MoveGroupCommander(group_name)
move_group.allow_replanning(True)# Set planning parameters
print("Arm Moveit Commander has been started")
self.move_group = move_group
def create_path(self): #This function is used to build a list of waypoints
move_group = self.move_group
# --- Getting pose message
wpose = Pose()
waypoints = []
# --- Adding points to follow in path
print(cblue + "\n\t === Acquire a trajectory === \n" + cend)
print "Current directory: ", dir
print "Files found: \n"
print '\n'.join(files)
readline.set_completer(completer)#active autocompletion on filenames
readline.parse_and_bind("tab: complete")
filename = raw_input(cyellow + "\nGetting path from file: " + cend)
filepath = "Trajectories/" + filename
#-- Test to check file availability
try:
way = open(filepath,'r')
except IOError:# in case of mispelling filename
print(cred + "Looks like the file doesnt exist" + cend)
return None,None
os.system('clear')
print(cgreen + "\n\t > - - Niryo One - Surmoul 3D - - < \n" + cend)
print("\n-> file : " + '\033[4m' + filename + cend + " - Modified : " + time.ctime(os.path.getmtime(filepath)))
line = way.readline()
nbr = 1
#-- Counting lines and looking for errors
while line:
nbr += 1
line = way.readline()
data = len(line.split(' '))
if(( data != 7 and data != 8) and line != ""):
print(cred + "Error line " + str(nbr) + " does not contain 3 positions + 4 quaternions values :" + cend)
print "contains %d values"%(data)
print line
return None,None
way.seek(0)
debug = False
if(filename == 'interactive.txt'):
debug = True
nbr = int(raw_input('Nbr of lines to read : '))
traveling_distance = 0 #to calculate travelling distance
bar = Bar('Processing waypoints', max=nbr - 1,width=10)
i = 0
distance_btwn_points = []
prev_x = 0
prev_y = 0
prev_z = 0
while(i <= nbr - 2):
i+=1
bar.next()
tab = way.readline().split(' ')
q1 = [float(tab[3]),float(tab[4]),float(tab[5]),float(tab[6])]
wpose.orientation.w = q1[0] #- Quaternion
wpose.orientation.x = q1[1]
wpose.orientation.y = q1[2]
wpose.orientation.z = q1[3]
wpose.position.x = float(tab[0]) + offsets_niryo[0] #- Position #
wpose.position.y = float(tab[1]) + offsets_niryo[1]
wpose.position.z = float(tab[2]) + offsets_niryo[2]
distance_btwn_points.append(sqrt(pow(wpose.position.x - prev_x,2) + pow(wpose.position.y - prev_y,2) + pow(wpose.position.z - prev_z,2)))
if(len(tab) == 8 ): # if gcode
if(not(int(tab[7])) and (distance_btwn_points[-1] != -2) ): # if extrusion 0 then retractation
distance_btwn_points[-1] = -2 #overwrite last point with retractation in mm
else:
traveling_distance += distance_btwn_points[-1]
prev_x = wpose.position.x
prev_y = wpose.position.y
prev_z = wpose.position.z
waypoints.append(copy.deepcopy(wpose))
#-- Outing trajectory---------------
if(divmod(i,5990)[1] == 0 or i == nbr - 1): #the trajectory is splitted in 5990 points, robot goes to a specific pose
#where he can wait then will execute next part of trajectory
wpose.position.x += -0.07
wpose.position.z+=0.05
wpose.orientation.x = 0 #- Quaternion
wpose.orientation.y = 0.259
wpose.orientation.z = 0
wpose.orientation.w = 0.966
waypoints.append(copy.deepcopy(wpose))
distance_btwn_points.append(0)
way.close()
bar.finish()
for i in range(0,len(distance_btwn_points)):
if(divmod(i,5990)[1] == 0):
distance_btwn_points[i] = 0.005 #5mm to empty and fill nozzle
error_way = 0
is_error = True
while(is_error):
temp_way = copy.deepcopy(waypoints)
is_error=False
for i in range(0,len(waypoints) - 1): #- delete duplicated points in the path
if(waypoints[i] == waypoints[i + 1]):
del temp_way[i - error_way]
error_way +=1
is_error=True
#print "line %d"%(i)#-debug
waypoints = copy.deepcopy(temp_way)
print "-Duplicated points on path- errors fixed : %d" % (error_way)
traveling_distance = round(traveling_distance * 0.209 , 2) # filament diameter 1.75mm / nozzle 0.8mm
a,b = divmod(traveling_distance,1000)
print "Trajectory points found: %d" % (len(waypoints) - 1)
print "Approx. Necessary Filament: %2dm %3dmm" % (a,b * 100)
return waypoints, distance_btwn_points
def plan_cartesian_path(self, max_tries, waypoints, start_joints): # Call the planner
move_group = self.move_group
#------------------------------------------------------------------------------------------------------------
#- inforamtions on move_group http://docs.ros.org/jade/api/moveit_commander/html/move__group_8py_source.html
#- http://docs.ros.org/melodic/api/moveit_msgs/html/index-msg.html
#------------------------------------------------------------------------------------------------------------
#-- Check for robot stability
if(n.get_learning_mode()):
print "Make sure that Niryo is not in learning mode and in a safe position close to where you want to print"
raw_input("Then press enter..")
#-- Saving start state
tab_joints = [start_joints[0], start_joints[1],start_joints[2],start_joints[3],start_joints[4],start_joints[5]]
#-- Sending start state
joint_state = JointState()
joint_state.header = Header()
joint_state.header.stamp = rospy.Time.now()
joint_state.name = ['joint_1', 'joint_2','joint_3','joint_4','joint_5','joint_6']
joint_state.position = tab_joints
initial_state = RbState()
initial_state.joint_state = joint_state
move_group.set_start_state(initial_state)
#-- Parameters
fraction = 0.0
tries = 0
max_tries = max_tries #maximum tries allowed
eef_step = 1.0 #eef_step at 1.0 considering gcode is already an interpolation
velocity = 0.06 #velocity scaling factor applied to max velocity
#print "\n --- Computing parameters ---"
#print "| Max tries authorized : %2d \n| Eef step : %.4f \n| Velocity :
#%3d %%" %(max_tries,eef_step,velocity*100)
#print " ------------------------------\n"
#-- Call cartesian service
try:
moveit_cartesian_path = rospy.ServiceProxy('compute_cartesian_path', GetCartesianPath)
except rospy.ServiceException,e:
print("Service call failed:",e)
return(None)
#-- Computation
best_frac = 0.0
t_in = time.time()
while(fraction < 1.0 and tries < max_tries):
rospy.wait_for_service('compute_cartesian_path',2) #wait for service to be ready
response = moveit_cartesian_path(Header(), initial_state, 'arm', 'tool_link',waypoints, eef_step, 0.0, True, Constraints())#send request
#------------------------------------------------------------------------------------------------------------
#- see http://docs.ros.org/melodic/api/moveit_msgs/html/srv/GetCartesianPath.html for more info
#------------------------------------------------------------------------------------------------------------
tries+=1
fraction = round(response.fraction,5)
if(fraction < 1.0): #in case solution is not complete we print iteration info in red (missing points)
print(cred + "---try:" + str(tries) + "\t---completed:" + str(fraction * 100) + "% error code: " + str(response.error_code) + cend)
if(fraction > best_frac): #saving best plan
best_plan = response.solution
best_frac = response.fraction
else:
print("---try:" + str(tries) + "\t---completed:" + str(fraction * 100) + "%")#printing iterations
best_plan = response.solution
best_frac = response.fraction
time.sleep(0.5) #time sleep to cut CPU usage and let some cooling time
t_out = time.time()
c_time = round(t_out - t_in,2)
print "\n==> tries: %d complete: %d %% in: %.2f sec" % (tries, best_frac * 100,c_time)#print process results
if(best_frac < 1.0):
print "In most cases if the service doesnt compute 100% of the trajectory it is due to unreachable points or orientation"
print "The problem is occuring at line (approx) : %d" % (round(fraction * len(waypoints)))
#-- Scaling speeds for Niryo One
if(velocity < 1.0 and best_frac == 1.0):
print"==> Retiming trajectory at %3d%% speed.." % (velocity * 100)
best_plan = move_group.retime_trajectory(initial_state, best_plan, velocity) #ref_state_in, plan, velocity sc
#-- Case where absolutely no points can be computed
if(best_frac == 0):
return 0, tab_joints, best_frac # this returns a 0 for empty trajectory, the original start joints and best frac which value is 0
else:
expect_m, expect_s = divmod(best_plan.joint_trajectory.points[-1].time_from_start.secs , 60)
expect_h, expect_m = divmod(expect_m , 60)
print "\nExpected printing time : %dh%02dm%02ds" % (expect_h,expect_m,expect_s)
end_joints = list(best_plan.joint_trajectory.points[-1].positions)# returns last joint position in case of using multiple trajectories that are
# following each other
return best_plan , end_joints , best_frac
def execute_plan(self, plan): # execute the trajectory
move_group = self.move_group
t_in = time.time()
print "Started at : ", time.asctime(time.localtime(t_in))
move_group.execute(plan,wait=True)
t_out = time.time()
print "Finished at : ", time.asctime(time.localtime(t_out))
m,s = divmod(t_out - t_in,60)
h,m = divmod(m,60)
print "Elapsed : %dh%02dm%02ds" % (h,m,s)
def timing_extrusion(self, traj): # times the extrusion, aiming to be a real-time function
tref = time.time()
a = True
for i in range(0,len(traj.points) - 1):
t_next = traj.points[i].time_from_start.secs + traj.points[i].time_from_start.nsecs * pow(10,-9)
t = tref + t_next
#dt= traj.points[i+1].time_from_start.secs +
#traj.points[i+1].time_from_start.nsecs * pow(10,-9) - t_next
if(traj.points[i].time_from_start.secs - traj.points[i - 1].time_from_start.secs > 1):
time.sleep(traj.points[i].time_from_start.secs - traj.points[i - 1].time_from_start.secs - 0.5) #sleep to reduce CPU usage when high duration between points
while(time.time() < (t)): #void loop to wait for the right time
pass
n.digital_write(GPIO_1C,a) #send change signal on gpio interrupt
a = not(a)
n.digital_write(GPIO_1C,a) # last point (should be the 0 to stop extrusion)
#------------------------------------------------------------
# -------- MAIN --------------------
#------------------------------------------------------------
os.system('clear')
os.system('figlet Mini - Surmoul ')
Instance = PlannerInterface()
quit = False
while(not(quit)):
os.system('clear')
print(cgreen + "\n\t > - - Niryo One - Surmoul 3D - - < \n" + cend)
print("\n\t1 - Trajectory execution\n\t2 - Tools\n\t0- Quit")
choix = int(raw_input("\nChoice ? "))
if(choix == 0): #-----------------------------------------
quit = True
if (choix == 1) : #-----------------------------------------
way, distance_btwn_points = Instance.create_path()
# -------------
if(way == None): #Error while creating path
raw_input()
else:
#Store divided path in tabs if needed
way_parts = divmod(len(distance_btwn_points), 5990)[0] + 1
tab_way = []
tab_distance_btwn_points = []
for i in range(0, way_parts): #divide path
tab_way.append(copy.deepcopy(way[i * 5990 : (i + 1) * 5990]))
tab_distance_btwn_points.append(copy.deepcopy(distance_btwn_points[i * 5990 : (i + 1) * 5990]))
print "Path has been divided in %d paths" % (way_parts)
end_joints = n.get_joints()
tab_cartesian_plan = [0] * way_parts
for i in range(0,way_parts): #compute paths
print "Computing trajectory %d on %d" % (i+1,way_parts)
tab_cartesian_plan[i], calctd_end_joints, frac = Instance.plan_cartesian_path(3, tab_way[i], end_joints)
tab_cartesian_plan[i], end_joints, frac, tab_distance_btwn_points[i] = check_trajectory(tab_cartesian_plan[i], end_joints,frac, tab_way[i], tab_distance_btwn_points[i])
a = raw_input(cyellow + "Execute trajectory ? (yes/print/no/quit) " + cend)
if(a == 'print'): #-----------------------------------------
arduino = Arduino() #initialize arduino communication
execution_time = 0
for i in range(0,way_parts): #calculate complete execution time
execution_time += tab_cartesian_plan[i].joint_trajectory.points[-1].time_from_start.secs
job = Process(target=time_bar, args=(execution_time ,)) #Multiprocessing to approx real-time control the extrusion and visual effect
for i in range(0, way_parts): #executing paths one by one
print "executing trajectory %d on %d" % (i + 1, way_parts)
arduino.extrusion_tab(tab_cartesian_plan[i].joint_trajectory.points, tab_distance_btwn_points[i])
job2 = Process(target=Instance.timing_extrusion, args=(tab_cartesian_plan[i].joint_trajectory,))
time.sleep(0.5)
if(not(job.is_alive())):
job.start()
job2.start()
Instance.execute_plan(tab_cartesian_plan[i])
time.sleep(0.5)
os.kill(int(job2.pid), signal.SIGKILL) #kill process by the hard method (terminate and join doesnt always work)
os.kill(int(job.pid), signal.SIGKILL) #this process is out of the loop to prevent him to restart (execute until the
#end)
arduino.stop_extrusion() #stop everything for security
arduino.stop_heating()
quit = True
if(a == 'yes'): #-----------------------------------------
execution_time = 0
for i in range(0,way_parts):
execution_time += tab_cartesian_plan[i].joint_trajectory.points[-1].time_from_start.secs
job = Process(target=time_bar, args=(execution_time ,), name='LoadBar') #Multiprocessing to approx real-time control the extrusion and visual effect
job.start()
for i in range(0, way_parts):
print "executing trajectory %d on %d" % (i + 1, way_parts)
Instance.execute_plan(tab_cartesian_plan[i])
os.kill(int(job.pid), signal.SIGKILL) #kill process by the hard method (terminate and join doesnt work)
quit = True
if(a == 'quit'):
quit = True
if(choix == 2): #-----------------------------------------
arduino = Arduino()
quit_tools = False
while not(quit_tools):
print('''\n1-Heat
2-Update temperature objective
3-Print temperature
4-Load filament
5-Unload filament
6-Fill extrusion tab (unavailable)
7-Extrude at constant speed
8-Stop extrusion
9-Stop heat
10-Empty buffers
0--Quit
''')
action = int(raw_input("Action ? "))
if(action == 0):
quit_tools = True
if(action == 1):
arduino.heat()
if(action == 2):
arduino.temperature_objective()
if(action == 3):
arduino.print_temperature()
if(action == 4):
arduino.filament_load()
if(action == 5):
arduino.filament_unload()
if(action == 6):
print("Not available")
if(action == 7):
arduino.manual_extrusion()
if(action == 8):
arduino.stop_extrusion()
if(action == 9):
arduino.stop_heating()
if(action == 10):
arduino.empty()
print("\n" + cgreen + "\t\t --- Program end --- " + cend + "\n")
#--- GitHub repository ---
# https://github.com/Tmehault/cartesian-path.git
#-------------------------
#--- Topics started on niryo forums -------------------
#
# Trajectory timeout using Python API
# https://niryo.com/forums/topic/trajectory-timeout-using-python-api/
#
# Add and pilot a tool
# https://niryo.com/forums/topic/add-and-pilot-a-tool/
#
# Control an external stepper motor
# https://niryo.com/forums/topic/control-an-external-stepper-motor/
#
# Add Object collision
# https://niryo.com/forums/topic/add-object-collision/
#
# Dynamixel motors
# https://niryo.com/forums/topic/dynamixel-motors/
#
# Raspberry pi 4 upgrade
# https://niryo.com/forums/topic/raspberry-4-upgrade/
#
#---------------------------------------------------