<reponame>kaitoyamazaki/mypkg<filename>scripts/kame.py
#!/usr/bin/env python

"""
BSD 3-Clause License

"""

import rospy
from geometry_msgs.msg import Twist

def operator():

    rospy.init_node('operator',anonymous = True)
    pub = rospy.Publisher('/turtle1/cmd_vel',Twist,queue_size = 10)
    vel_msg = Twist()
        
    vel_msg.linear.x = 10
    vel_msg.linear.y = 0
    vel_msg.linear.z = 0

    vel_msg.angular.x = 0
    vel_msg.angular.y = 0
    vel_msg.angular.z = 9.8

    rate = rospy.Rate(1)

    while not rospy.is_shutdown():
        pub.publish(vel_msg)
        rate.sleep()
    

if __name__ == '__main__':
    try:
        operator()
    except rospy.ROSInterruptException:
        pass
