Skip to content

Commit

Permalink
Added current_speed initialization for moveXY method, deleted by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorGrosso committed May 1, 2017
1 parent 44f5aa6 commit 478eeb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions turtle_robot/src/turtle_robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ def moveToXY(self,index, linSpeed):
self.vel_msg.angular.y = 0
self.vel_msg.angular.z = 0

#Set initial current distance
current_distance=0

#Loop to move the turtle a specified distance
self.rate = rospy.Rate(100)

Expand Down
2 changes: 1 addition & 1 deletion turtle_robot/src/turtle_robot.py~
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class turtle_robot:

self.rate.sleep()

#Force the robot to stop once the orientation is accomplished
#Force the robot to stop once the orientation is reached
self.vel_msg.angular.z = 0
self.velocity_publisher.publish(self.vel_msg)

Expand Down

0 comments on commit 478eeb1

Please sign in to comment.