-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add sGoalKeeping #17
base: Working
Are you sure you want to change the base?
Add sGoalKeeping #17
Conversation
scripts/skills/sGoalKeeping.py
Outdated
if state.homeDetected[i]: | ||
obs.append(Obstacle(bot.x, bot.y, 0, 0, 2*BOT_RADIUS)) | ||
|
||
for i in xrange (len(state.homeDetected), len(state.homeDetected) + len(state.awayDetected)): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this part needs some discussion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is what you are looking for :
for j in range(0,len(state.awayDetected)):
if state.awayDetected[j]:
o = Obstacle()
o.x=state.awayPos[j].x
o.y=state.awayPos[j].y
o.radius=3.3*BOT_RADIUS
obs.push_back(o)
scripts/skills/sGoalKeeping.py
Outdated
|
||
|
||
for i,bot in enumerate(state.homePos): | ||
if state.homeDetected[i]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should not treat bot_id itself as obstacle. Change the condition from
if state.homeDetected[i]:
to
if state.homeDetected[i] and i != botID:
scripts/skills/sGoalKeeping.py
Outdated
if(rot_theta < 45): | ||
v_t = -rot_theta / 10 | ||
else: | ||
v_t = -4.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct the indentation here
@kvmanohar22 Incorporated changes requested! Thanx! |
@MayankB11 Please run the build for this PR. |
sGoalKeeping has been added. Python equivalent for
goToPointFast()
(line 37) has not been found.