Skip to content

Commit

Permalink
Make compatible with gv
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhkgp21 committed May 16, 2018
1 parent 4278ec1 commit 58ba476
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion skills/sStop.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import skill_node

def execute(param, state, bot_id, pub):
def execute(param, state, bot_id, gv, pub):
skill_node.send_command(pub, state.isteamyellow, bot_id, 0, 0, 0, 0, False)
4 changes: 2 additions & 2 deletions tactics/TStop.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def __init__(self, bot_id, state, param=None):
self.vel_x_threshold = 0.0
self.vel_y_threshold = 0.0

def execute(self, state, pub):
sStop.execute(self.sParam, state, self.bot_id, pub)
def execute(self, state, gv, pub):
sStop.execute(self.sParam, state, self.bot_id, gv,pub)

def isComplete(self, state):
if state.homeVel[self.bot_id].x <= self.vel_x_threshold and state.homeVel[self.bot_id].y <= self.vel_y_threshold:
Expand Down

0 comments on commit 58ba476

Please sign in to comment.