You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/bitbots_motion/bitbots_rl_motion/README.md
+8-12Lines changed: 8 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,28 +4,24 @@ The package contains a framework which is a capsule for the application of polic
4
4
5
5
## Framework structure
6
6
7
-
The code is divided in five sections: Configs, Handlers, Models, Nodes and rest.
8
-
9
-
The Models-folder contains all policy models. Node, the framework expects that policies are in .onnx-format.
7
+
The code is divided in five sections: Configs, Handlers, Nodes, Launch and rest.
10
8
11
9
The Nodes-folder contains all relevant ROS-Nodes regarding policy models. These nodes are responsible for starting the policies correctly, feeding them with correct data and publishing their outputs correctly.
12
10
The name of the node describes for which kind of policy it is suitable.
13
11
The RL Node is a special case. All other nodes are kids of the RL Node. It centralizes the execution loop and minimizes boiler plate code.
14
12
15
13
The Handlers-folder contains all handlers. A handler is a specific type of object which is responsible for processing external data such that they are comprehensible for the policy models. All handlers are kids of the Handler class.
16
14
17
-
The Configs-folder contains all robot/policy specific configurations. Files in the Configs-folder should be in .yaml-format.
15
+
The Configs-folder contains all robot/policy specific configurations. Files in the Configs-folder should be in .yaml-format. They also contain the paths to the onnx-policy models.
16
+
17
+
The Launch-folder contains a launch file which starts all relevant policy nodes.
18
18
19
-
phase.py, policy_nodes.py and previous_action.py are two files, which do not fall in any of the aforementioned categories.
20
-
phase.py defines a PhaseObject, which is responsible for the phase management. previous_action.py defindes a PreviousAction object, which is responsible for saving and provide the previous action. policy_nodes.py can be looked as the launch file. It defines, which nodes and policies will be used.
19
+
phase.py and previous_action.py are two files, which do not fall in any of the aforementioned categories.
20
+
phase.py defines a PhaseObject, which is responsible for the phase management. previous_action.py defindes a PreviousAction object, which is responsible for saving and provide the previous action.
21
21
Both files are located in the bitbots_rl_motion folder.
22
22
23
23
## Execution
24
24
25
-
For proper starting you need a policy model and a config file. The config file should have the same structure as the wolfgang_config.yaml file.
25
+
For proper starting you need a policy model and a config file. The config file should have the same structure as the wolfgang_dribbling_model_config.yaml file.
26
26
Furthermore, you have to create or adjust a node file to your needs. walk_node.py can be used for orientation. If chages are conducted on the RL_Node class, it should be announced.
27
-
Finally, you define which nodes and policies you wanna use in the policy_nodes.py file.
28
-
29
-
30
-
31
-
27
+
Finally, you define which nodes and policies you wanna use in the launch file.
0 commit comments