18 from sr_robot_commander.sr_hand_commander
import SrHandCommander
19 from sr_robot_commander.sr_robot_state_exporter
import SrRobotStateExporter
25 from exported_states
import warehouse_states
28 Now we have a dictionary of states called warehouse_states, e.g. 41 rospy.init_node(
"use_exported_states")
44 hand_commander = SrHandCommander()
47 hand_commander.move_to_joint_value_target_unsafe(warehouse_states[
'state_2'])
49 hand_commander.move_to_joint_value_target_unsafe(warehouse_states[
'state_1'])
51 hand_commander.move_to_joint_value_target_unsafe(warehouse_states[
'state_2'])
58 'interpolate_time': 3.0
62 'interpolate_time': 3.0,
67 state_exporter = SrRobotStateExporter(warehouse_states)
68 converted_trajectory = state_exporter.convert_trajectory(trajectory)
70 hand_commander.run_named_trajectory(converted_trajectory)
75 state_exporter = SrRobotStateExporter(warehouse_states)
76 state_exporter.repopulate_warehouse()