burn_in.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 #
4 # Copyright 2019 Shadow Robot Company Ltd.
5 #
6 # This program is free software: you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by the Free
8 # Software Foundation, either version 2 of the License, or (at your option)
9 # any later version.
10 #
11 # This program is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 # more details.
15 #
16 # You should have received a copy of the GNU General Public License along
17 # with this program. If not, see <http://www.gnu.org/licenses/>.
18 #
19 
20 from sr_robot_commander.sr_hand_commander import SrHandCommander
21 import rospy
22 from burn_in_states import warehouse_states
23 from sr_robot_commander.sr_robot_state_exporter import SrRobotStateExporter
24 
25 rospy.init_node("burn_in_test")
26 
27 commander = SrHandCommander()
28 exporter = SrRobotStateExporter(warehouse_states)
29 
30 commander.move_to_named_target(warehouse_states["burn_4_hand"])
31 
32 test_trajectory = exporter.convert_trajectory([
33  {
34  'name': "burn_1_hand",
35  "interpolate_time": 0.5,
36  'pause_time': 1
37  },
38  {
39  'name': "burn_2_hand",
40  "interpolate_time": 0.5,
41  'pause_time': 1
42  },
43  {
44  'name': "burn_3_hand",
45  "interpolate_time": 0.5,
46  'pause_time': 0.5
47  },
48  {
49  'name': "burn_4_hand",
50  "interpolate_time": 0.5,
51  'pause_time': 0.5
52  },
53  {
54  'name': "burn_5_hand",
55  "interpolate_time": 0.5,
56  'pause_time': .5
57  },
58  {
59  'name': "burn_4_hand",
60  "interpolate_time": 0.5,
61  'pause_time': .5
62  }
63 ])
64 
65 while not rospy.is_shutdown():
66  commander.run_named_trajectory(test_trajectory)


sr_ethercat_hand_config
Author(s): Ugo Cupcic, Toni Oliver
autogenerated on Wed Oct 14 2020 03:24:13