Skip to content

Instantly share code, notes, and snippets.

@syanyong
Created January 30, 2021 08:49
Show Gist options
  • Save syanyong/947f106969798341e9539ed6d609a05b to your computer and use it in GitHub Desktop.
Save syanyong/947f106969798341e9539ed6d609a05b to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import rospy
def main ():
rospy.init_node('turtle_commander', anonymous=True)
rate = rospy.Rate(10) # 10 Hz
while not rospy.is_shutdown():
# TODO
# END
rate.sleep()
if __name__ == '__main__':
try:
main()
except rospy.ROSInterruptException:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment