-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
47 lines (35 loc) · 1.3 KB
/
test.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
#import imp
from common.components import Manager
from daughter_cards.wheeledbase import WheeledBase
from daughter_cards.actionneur import Actionneur
from tracking.libs.positionDetector import PositionDetector
from daughter_cards.sensors import Sensors
from setups.setup_serialtalks import *
from listeners.sensor_listener import SensorListener
# Connect to the Raspberry Pi and the different modules
manager = Manager("10.0.0.5")
manager.connect(7)
actio = Actionneur(manager)
#for i in range(0,20):
# elevator = AX12(i, manager, "actionneurs"); #AX12 avec l'ID 1
# print(i)
# print(elevator.ping())
pince = AX12(3, manager) #AX12 avec l'ID 1
pince.setMaxTorque(1023)
elevator = AX12(1, manager)
elevator.setEndlessMode(True)
elevator.setMaxTorque(1023)
elevator.turn(500)
#while(True):
# print(wb.get_position())
# ac.set_clamp_position(1,180)
# print(sensors.get_sensor3_range())
# print(sensors.get_all())
#LEFTCODEWHEEL_RADIUS_VALUE = 21.90460280828869
#RIGHTCODEWHEEL_RADIUS_VALUE = 22.017182927267537
#ODOMETRY_AXLETRACK_VALUE = 357.5722465739272
# verifier les moteurs sans assver (vrif les sens de marche) open loop velocities
# verifier les codeuses et leur sens
# Faire la metrologie et l'enregistrer
# calibrer l'odométrie (verif la precision)
# calib asservisseement