Skip to content

Commit 917ff6e

Browse files
committed
Changes in run.py to change factor; for KickToP
1 parent 818fc20 commit 917ff6e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test_KickToP.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
print "In test GoToPoint"
23
from kubs import kubs, cmd_node
34
from velocity.run import *

velocity/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def distance_(a, b):
3030
dy = a.y-b.y
3131
return sqrt(dx*dx+dy*dy)
3232

33-
def Get_Vel(start, t, kub_id, target, homePos_, awayPos_,avoid_ball=False):
33+
def Get_Vel(start, t, kub_id, target, homePos_, awayPos_,avoid_ball=False, f=1.5):
3434
# print("Get_Vel: t - start = ",t-start)
3535
global expectedTraverseTime, REPLAN, v, errorInfo, pso, FIRST_CALL, homePos, awayPos, kubid, prev_target
3636
REPLAN = 0
@@ -53,7 +53,7 @@ def Get_Vel(start, t, kub_id, target, homePos_, awayPos_,avoid_ball=False):
5353
findPath(startPt, target, avoid_ball)
5454
FIRST_CALL = 0
5555

56-
if distance < 1.5*BOT_BALL_THRESH:
56+
if distance < f*BOT_BALL_THRESH:
5757
return [0,0,0,0]
5858
# print("ex = ",expectedTraverseTime)
5959
# print("t = ",t," start = ",start)

0 commit comments

Comments
 (0)