Skip to content

Commit 06678d1

Browse files
committed
test yaml file added
1 parent 5bd4221 commit 06678d1

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed

io_gripper_controller/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ install(
6464
)
6565

6666
if(BUILD_TESTING)
67+
add_definitions(-DTEST_FILES_DIRECTORY="${CMAKE_CURRENT_SOURCE_DIR}/test")
6768

6869
ament_add_gmock(test_load_io_gripper_controller test/test_load_io_gripper_controller.cpp)
6970
target_include_directories(test_load_io_gripper_controller PRIVATE include)
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
test_io_gripper_controller:
2+
ros__parameters:
3+
use_action: true
4+
timeout: 5.0
5+
open_close_joints: [gripper_clamp_jaw]
6+
7+
open:
8+
joint_states: [0.0]
9+
set_before_command:
10+
high: [Release_Break_valve]
11+
low: [Release_Something] # comment out otherwise throws an error
12+
command:
13+
high: [Open_valve]
14+
low: [Close_valve]
15+
state:
16+
high: [Opened_signal]
17+
low: [Closed_signal]
18+
set_after_command:
19+
high: [Release_Something]
20+
low: [Release_Break_valve]
21+
22+
possible_closed_states: ['empty_close', 'full_close']
23+
24+
close:
25+
set_before_command:
26+
high: [Release_Break_valve]
27+
low: [Release_Something]
28+
command:
29+
high: [Close_valve]
30+
low: [Open_valve]
31+
state:
32+
empty_close:
33+
joint_states: [0.16]
34+
high: [Closed_signal]
35+
low: [Part_Grasped_signal]
36+
set_after_command_high: [a]
37+
set_after_command_low: [Release_Break_valve]
38+
full_close:
39+
joint_states: [0.08]
40+
high: [Part_Grasped_signal]
41+
low: [Closed_signal]
42+
set_after_command_high: [Release_Something]
43+
set_after_command_low: [Release_Break_valve]
44+
45+
configurations: ["narrow_objects", "wide_objects"]
46+
configuration_joints: [gripper_gripper_distance_joint]
47+
48+
configuration_setup:
49+
stichmass_125:
50+
joint_states: [0.1]
51+
command_high: [Narrow_Configuration_Cmd]
52+
command_low: [Wide_Configuration_Cmd]
53+
state_high: [Narrow_Configuraiton_Signal]
54+
state_low: [Wide_Configuration_Signal]
55+
stichmass_250:
56+
joint_states: [0.2]
57+
command_high: [Wide_Configuration_Cmd]
58+
command_low: [Narrow_Configuration_Cmd]
59+
state_high: [Wide_Configuration_Signal]
60+
state_low: [Narrow_Configuraiton_Signal]
61+
62+
gripper_specific_sensors: ["part_sensor_top", "part_sensor"]
63+
sensors_interfaces:
64+
hohenabfrage:
65+
input: "Part_Sensor_Top_signal"
66+
bauteilabfrage:
67+
input: "Part_Grasped_signal"

0 commit comments

Comments
 (0)