-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
101 lines (100 loc) · 3.08 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# Robotic Arm Motion Generator Configuration
preset:
sequence1: &seq1 # Motion Sequence of Robotic Arm
task_coordinates:
- { x: 1, y: 5 }
- { x: 2, y: 1 }
- { x: 5, y: 1 }
sequence2: &seq2 # Motion Sequence of Robotic Arm
task_coordinates:
- { x: 2, y: 3 }
- { x: 7, y: 5 }
- { x: 5, y: 7 }
sequence3: &seq3 # Motion Sequence of Robotic Arm
task_coordinates:
- { x: 7, y: 7 }
- { x: 6, y: 5 }
- { x: 4, y: 9 }
sequence4: &seq4 # Motion Sequence of Robotic Arm
task_coordinates:
- { x: 2, y: 3 }
- { x: 3, y: 4 }
- { x: 5, y: 4 }
amq: # AMQP Broker Information
broker: &amq_connect_info
address: "rabbitmq"
port: 5672
credentials: &amq_credential
username: "admin"
password: "rabbit"
pub_sub:
- pub_sub_1: &pub_generator_robot
type: "amq"
broker: *amq_connect_info
credential: *amq_credential
exchange: "generator_robot"
binding_keys: # Default Queue Logic will be: <binding_key>.robot.<id>
- "generator.robot."
- pub_sub_2: &sub_control_robot
type: "amq"
broker: *amq_connect_info
credential: *amq_credential
exchange: "control_robot"
binding_keys: # Default Queue Logic will be: <binding_key>.robot.<id>
- "control.robot."
- pub_sub_3: &pub_visual
type: "amq"
broker: *amq_connect_info
credential: *amq_credential
exchange: "visual"
binding_keys: # Default Queue Logic will be: <binding_key>.robot.<id>
- "visual.generator.robot."
robot_arm_design:
two_arm_robot_1: &two_arm_robot_1
count: 2 # Number of Joints (excluding Wrist)
length:
shoulder_to_elbow: 6.0 # Length in Meters
elbow_to_gripper: 6.0 # Length in Meters
robot_controllers:
- controller_1: &controller_1
sample_rate: 0.1
proportional_gain: 3
goal_threshold: 0.1
pub_sub_protocols:
- pub_sub_protocol_1: &pub_sub_protocol_1
publishers:
- *pub_generator_robot
- *pub_visual
subscribers:
- *sub_control_robot
robot_generator:
version: "0.1" # Configuration Version
robots: # List of Robots to be simulated with unique ID
- id: "1"
arm: *two_arm_robot_1
base: { x: 35.0, y: 50.0 }
motion:
control: *controller_1
pattern: *seq2 # Motion Pattern of the Robot
protocol: *pub_sub_protocol_1
- id: "2"
arm: *two_arm_robot_1
base: { x: 130.0, y: 120.0 }
motion:
control: *controller_1
pattern: *seq2 # Motion Pattern of the Robot
protocol: *pub_sub_protocol_1
# - id: "3"
# arm: *two_arm_robot_1
# base: { x: 130.0, y: 50.0 }
# motion:
# control: *controller_1
# pattern: *seq2 # Motion Pattern of the Robot
# protocol: *pub_sub_protocol_1
# - id: "4"
# arm: *two_arm_robot_1
# base: { x: 35.0, y: 120.0 }
# motion:
# control: *controller_1
# pattern: *seq2 # Motion Pattern of the Robot
# protocol: *pub_sub_protocol_1