Skip to content
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

Open
wants to merge 5 commits into
base: Working
Choose a base branch
from
Open

Add sGoalKeeping #17

wants to merge 5 commits into from

Conversation

americast
Copy link
Contributor

sGoalKeeping has been added. Python equivalent for goToPointFast() (line 37) has not been found.

@americast americast changed the title Add sGoalKeeping [WIP] Add sGoalKeeping May 16, 2017
@americast americast changed the title [WIP] Add sGoalKeeping Add sGoalKeeping May 16, 2017
@americast americast changed the title Add sGoalKeeping [WIP] Add sGoalKeeping May 17, 2017
@americast americast changed the title [WIP] Add sGoalKeeping Add sGoalKeeping May 17, 2017
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)):
Copy link
Contributor Author

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.

Copy link
Contributor

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)

@americast
Copy link
Contributor Author

@MayankB11



for i,bot in enumerate(state.homePos):
if state.homeDetected[i]:
Copy link
Contributor

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:

if(rot_theta < 45):
v_t = -rot_theta / 10
else:
v_t = -4.5
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct the indentation here

@americast
Copy link
Contributor Author

@kvmanohar22 Incorporated changes requested! Thanx!

@americast americast changed the base branch from master to Working May 23, 2017 06:49
@americast
Copy link
Contributor Author

@MayankB11 Please run the build for this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants