Skip to content

Commit

Permalink
double obstacle, working well!
Browse files Browse the repository at this point in the history
  • Loading branch information
gerth2 committed Sep 27, 2024
1 parent 1697b3a commit 1316759
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion navigation/repulsorFieldPlanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ def setGoal(self, goal:Pose2d|None):
self.goal = goal

def add_obstcale_observaton(self, pose:Pose2d):
obstacle = PointObstacle(location=Translation2d(pose.X() + 3,pose.Y()),strength=.5)
obstacle = PointObstacle(location=Translation2d(pose.X() + 3,pose.Y()-0.5),strength=.7)
self.transientObstcales.append(obstacle)
obstacle = PointObstacle(location=Translation2d(pose.X() - 3,pose.Y()+0.5),strength=.7)
self.transientObstcales.append(obstacle)

def getGoalForce(self, curLocation:Translation2d) -> Force:
Expand Down

0 comments on commit 1316759

Please sign in to comment.