in robot_ws/src/hello_world_robot/nodes/rotate.py [0:0]
def rotate_forever(self):
self.twist = Twist()
r = rospy.Rate(10)
while not rospy.is_shutdown():
self.twist.angular.z = 0.1
self._cmd_pub.publish(self.twist)
rospy.loginfo('Rotating robot: %s', self.twist)
r.sleep()