Skip to content
Snippets Groups Projects
Commit fa4d81e5 authored by holzheim's avatar holzheim
Browse files

Added missing colon at function head for turtle_go

parent 905002fe
Branches
No related tags found
No related merge requests found
...@@ -157,7 +157,7 @@ Inside the package *exercise_1* we will now create a `node` that **publishes** ` ...@@ -157,7 +157,7 @@ Inside the package *exercise_1* we will now create a `node` that **publishes** `
import rospy import rospy
from geometry_msgs.msg import Twist from geometry_msgs.msg import Twist
def turtle_go() def turtle_go():
pub = rospy.Publisher('/turtle1/cmd_vel', Twist, queue_size=10) pub = rospy.Publisher('/turtle1/cmd_vel', Twist, queue_size=10)
rospy.init_node('turtle_go', anonymous=True) rospy.init_node('turtle_go', anonymous=True)
rate = rospy.Rate(10) # 10Hz rate = rospy.Rate(10) # 10Hz
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment