Skip to content
Snippets Groups Projects
Select Git revision
  • big_2017_api_change
  • master default protected
  • develop protected
  • VA_v2024a
  • VA_v2023b
  • VA_v2023a
  • before_VANet_update
  • VA_v2022a
  • before_cmake_rework
  • v2021.a
  • v2020.a
  • v2019.a
  • v2018.b
  • v2017.c
  • v2017.a
  • v2016.a
16 results

VAMatlabExecutable.cpp

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    turtle_go.py 484 B
    #!/usr/bin/env python
    import rospy
    from geometry_msgs.msg import Twist
    
    def turtle_go():
        pub = rospy.Publisher('/turtle1/cmd_vel', Twist, queue_size=10)
        rospy.init_node('turtle_go', anonymous=True)
        rate = rospy.Rate(10) # 10Hz
        twist = Twist()
        twist.linear.x = 1.0
        while not rospy.is_shutdown():
            pub.publish(twist)
            rate.sleep()
            
    if __name__ == '__main__':
        try:
            turtle_go()
        except rospy.ROSInterruptException:
            pass