@@ -50,13 +50,13 @@ def procedure(self):
50
50
print (length - self .radiusRobot )
51
51
#print(self.wb.wheeledbase.getuuid())
52
52
if (length - self .radiusRobot > 0 ):
53
- self .wb .goto (stop [0 ],stop [1 ],theta = ang )
53
+ self .wb .goto_stop (stop [0 ],stop [1 ],theta = ang )
54
54
55
55
######On prends
56
56
self .barriere .nicole_oouuuuuvre ()
57
57
58
58
stop = vecPos / length * (length - self .radiusPince )+ rPos
59
- self .wb .goto (stop [0 ],stop [1 ], theta = ang , linvelmax = POSITIONCONTROL_LINVELMAX_VALUE * 0.15 )
59
+ self .wb .goto_stop (stop [0 ],stop [1 ], theta = ang , linvelmax = POSITIONCONTROL_LINVELMAX_VALUE * 0.15 )
60
60
61
61
self .wb .set_parameter_value (POSITIONCONTROL_LINVELMAX_ID , POSITIONCONTROL_LINVELMAX_VALUE , FLOAT )
62
62
@@ -77,19 +77,19 @@ def procedure(self):
77
77
print (theta )
78
78
print (ang )
79
79
80
- self .wb .goto (rPos [0 ],rPos [1 ], theta = ang , angvelmax = POSITIONCONTROL_ANGVELMAX_VALUE * 0.05 )
81
- self .wb .goto (stop [0 ],stop [1 ],theta = ang , angvelmax = POSITIONCONTROL_ANGVELMAX_VALUE , linvelmax = POSITIONCONTROL_LINVELMAX_VALUE * 0.3 )
80
+ self .wb .goto_stop (rPos [0 ],rPos [1 ], theta = ang , angvelmax = POSITIONCONTROL_ANGVELMAX_VALUE * 0.05 )
81
+ self .wb .goto_stop (stop [0 ],stop [1 ],theta = ang , angvelmax = POSITIONCONTROL_ANGVELMAX_VALUE , linvelmax = POSITIONCONTROL_LINVELMAX_VALUE * 0.3 )
82
82
83
- #On recule pour le prochain
83
+ #On recule pour le prochains
84
84
if (not self .final ):
85
85
self .barriere .nicole_oouuuuuvre ()
86
86
stop [0 ]= stop [0 ]- 150 * np .cos (ang )
87
87
stop [1 ]= stop [1 ]- 150 * np .sin (ang )
88
- self .wb .goto (stop [0 ],stop [1 ],theta = ang + np .pi )
88
+ self .wb .goto_stop (stop [0 ],stop [1 ],theta = ang + np .pi )
89
89
else :
90
90
stop [0 ]= stop [0 ]- 50 * np .cos (ang )
91
91
stop [1 ]= stop [1 ]- 50 * np .sin (ang )
92
- self .wb .goto (stop [0 ],stop [1 ],theta = ang )
92
+ self .wb .goto_stop (stop [0 ],stop [1 ],theta = ang )
93
93
self .barriere .nicole_oouuuuuvre ()
94
94
95
95
0 commit comments