fc2ocs_publisher.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 import rospy
3 from jsk_network_tools.msg import FC2OCS
4 
5 if __name__ == "__main__":
6  rospy.init_node("fc2ocs_test_publisher")
7  pub = rospy.Publisher("fc2ocs_original", FC2OCS)
8  pub_rate = rospy.get_param("~pub_rate", 1000)
9  r = rospy.Rate(pub_rate)
10  while not rospy.is_shutdown():
11  msg = FC2OCS()
12  msg.joint_angles = [10] * 32
13  msg.servo_state = True
14  pub.publish(msg)
15  r.sleep()
16 


jsk_network_tools
Author(s): Yusuke Furuta
autogenerated on Tue Feb 6 2018 03:45:07