<s> import rospy <EOL> from basics . msg import Complex <EOL> from random import random <EOL> rospy . init_node ( '<STR_LIT>' ) <EOL> pub = rospy . Publisher ( '<STR_LIT>' , Complex ) <EOL> rate = rospy . Rate ( <NUM_LIT:2> ) <EOL> while not rospy . is_shutdown ( ) : <EOL> msg = Complex ( ) <EOL> msg . real = random ( ) <EOL> msg . imaginary = random ( ) <EOL> pub . publish ( msg ) <EOL> rate . sleep ( ) </s>
