How can I subscribe joint_controller/state from dynamixel
Hi,
I write the following code to subscribe . How can I get the current pos data.
import rospy
from dynamixel_msgs import JointState
def callback(data):
print "callback"
print data
def listener():
rospy.init_node('starter', anonymous=True)
rospy.Subscriber("/joint6_controller/state", current_pos, callback)
rospy.spin()
if __name__ == '__main__':
listener()