Skip to content

Commit

Permalink
WIP #8: Fixed a minor error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Gloudemans committed Mar 26, 2019
1 parent b6572c7 commit 5f52067
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions robot_navigation/scripts/path_planning.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def generate_route(self):
grid = Grid(matrix=self.map)

# Define nodes for start position and target position
start = grid.node(self.start_pose.position.x, self.start_pose.position.y)
end = grid.node(self.goal_pose.position.x, self.goal_pose.position.y)
start = grid.node(int(self.start_pose.position.x * 100), int(self.start_pose.position.y * 100))
end = grid.node(int(self.goal_pose.position.x * 100), int(self.goal_pose.position.y * 100))

# Create an A-star path finder object
finder = AStarFinder(diagonal_movement=DiagonalMovement.always)
Expand All @@ -77,7 +77,7 @@ def generate_route(self):
new_path.poses.append(new_pose)

# Publish the path message
self.route_pub.publish(path)
self.route_pub.publish(new_path)


if __name__ == "__main__":
Expand Down

0 comments on commit 5f52067

Please sign in to comment.