19 from std_msgs.msg
import Float64
20 from sr_robot_msgs.msg
import JointMusclePositionControllerState
31 rospy.init_node(
'example_reading_sensors')
35 rospy.Subscriber(
'/sh_ffj3_muscle_position_controller/state',
36 JointMusclePositionControllerState, state_cb)
38 print "Try moving ffj3" 40 while not rospy.is_shutdown():
42 print "ffj3 position:%s radians pressure0:%s pressure1:%s" % (status.process_value,
43 status.muscle_pressure_0,
44 status.muscle_pressure_1)