19 from sr_robot_commander.sr_hand_commander
import SrHandCommander
20 from sr_utilities.hand_finder
import HandFinder
22 rospy.init_node(
"tactile_reader", anonymous=
True)
23 hand_finder = HandFinder()
25 hand_parameters = hand_finder.get_hand_parameters()
26 hand_serial = hand_parameters.mapping.keys()[0]
28 hand_commander = SrHandCommander(hand_parameters=hand_parameters,
29 hand_serial=hand_serial)
33 print "Tactile type: ", hand_commander.get_tactile_type()
34 print "Tactile state: ", hand_commander.get_tactile_state()