00001 #!/usr/bin/env python 00002 import rospy 00003 from jsk_network_tools.msg import FC2OCS 00004 00005 if __name__ == "__main__": 00006 rospy.init_node("fc2ocs_test_publisher") 00007 pub = rospy.Publisher("fc2ocs_original", FC2OCS) 00008 r = rospy.Rate(10) 00009 while not rospy.is_shutdown(): 00010 msg = FC2OCS() 00011 msg.joint_angles = [10] * 32 00012 msg.servo_state = True 00013 pub.publish(msg) 00014 r.sleep() 00015