-
Notifications
You must be signed in to change notification settings - Fork 22
Feature/rl framework integration #858
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jgueldenstein
wants to merge
4
commits into
main
Choose a base branch
from
feature/rl_framework_integration
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
36136d0
Merge remote-tracking branch 'origin/feature/kid_field_mujoco'
jgueldenstein 13bc3b2
partially working version of walk with rl framework
jgueldenstein 7e792da
integrate playground walk in bitbots_rl_motion
jgueldenstein 980a415
formatting
jgueldenstein File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ | |
| <arg name="sim" default="false"/> | ||
| <arg name="viz" default="false"/> | ||
| <arg name="torqueless_mode" default="false" description="start without torque, for example for testing the falling detection"/> | ||
| <arg name="tts" default="true" description="Whether to enable text-to-speech"/> | ||
| <arg name="tts" default="false" description="Whether to enable text-to-speech"/> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this disabled now? |
||
|
|
||
| <include file="$(find-pkg-share bitbots_parameter_blackboard)/launch/parameter_blackboard.launch"> | ||
| <arg name="sim" value="$(var sim)"/> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,7 @@ | |
| <arg name="teamcom" default="false" description="Whether the team communication system should be started" /> | ||
| <arg name="vision" default="true" description="Whether the vision system should be started" /> | ||
| <arg name="world_model" default="true" description="Whether the world model should be started"/> | ||
| <arg name="rl_motion" default="true" description="Whether to use the RL motion system instead of the regular one" /> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here. |
||
|
|
||
| <!-- load the general simulator --> | ||
| <include file="$(find-pkg-share bitbots_mujoco_sim)/launch/simulator.launch" /> | ||
|
|
@@ -29,5 +30,6 @@ | |
| <arg name="teamcom" value="$(var teamcom)" /> | ||
| <arg name="vision" value="$(var vision)"/> | ||
| <arg name="world_model" value="$(var world_model)"/> | ||
| <arg name="rl_motion" value="$(var rl_motion)"/> | ||
| </include> | ||
| </launch> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 7 additions & 18 deletions
25
src/bitbots_motion/bitbots_rl_motion/bitbots_rl_motion/phase.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
src/bitbots_motion/bitbots_rl_motion/configs/mjlab_walk_model.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,87 @@ | ||
| mjlab_walk_node: | ||
| ros__parameters: | ||
| model: walk_mjlab.onnx | ||
|
|
||
| joints: | ||
| ordered_relevant_joint_names: [ | ||
| "r_hip_pitch_joint", | ||
| "l_hip_pitch_joint", | ||
| "r_hip_roll_joint", | ||
| "l_hip_roll_joint", | ||
| "r_thigh_joint", | ||
| "l_thigh_joint", | ||
| "r_calf_joint", | ||
| "l_calf_joint", | ||
| "r_ankle_pitch_joint", | ||
| "l_ankle_pitch_joint", | ||
| "r_ankle_roll_joint", | ||
| "l_ankle_roll_joint", | ||
| "r_shoulder_roll_joint", | ||
| "l_shoulder_roll_joint", | ||
| "r_shoulder_pitch_joint", | ||
| "l_shoulder_pitch_joint", | ||
| "r_upper_arm_joint", | ||
| "l_upper_arm_joint", | ||
| "r_elbow_joint", | ||
| "l_elbow_joint", | ||
| ] | ||
| walkready_state: [ | ||
| 0.25, -0.25, | ||
| 0.0, 0.0, | ||
| 0.0, 0.0, | ||
| 0.65, -0.65, | ||
| 0.4, -0.4, | ||
| 0.0, 0.0, | ||
| 0.0, 0.0, | ||
| 0.0, 0.0, | ||
| 0.0, 0.0, | ||
| 0.0, 0.0, | ||
| ] | ||
| kp: [ | ||
| # legs | ||
| 55.0, 55.0, | ||
| 55.0, 55.0, | ||
| 55.0, 55.0, | ||
| 55.0, 55.0, | ||
| 55.0, 55.0, | ||
| 55.0, 55.0, | ||
| # arms | ||
| 6.0, 6.0, | ||
| 6.0, 6.0, | ||
| 6.0, 6.0, | ||
| 6.0, 6.0, | ||
| ] | ||
| kd: [ | ||
| # legs | ||
| 1.1, 1.1, | ||
| 1.4, 1.4, | ||
| 1.1, 1.1, | ||
| 1.1, 1.1, | ||
| 1.1, 1.1, | ||
| 1.1, 1.1, | ||
| # arms | ||
| 0.6, 0.6, | ||
| 0.6, 0.6, | ||
| 0.6, 0.6, | ||
| 0.6, 0.6, | ||
| ] | ||
| action_scales: [ | ||
| # legs | ||
| 0.5, 0.5, | ||
| 0.5, 0.5, | ||
| 0.5, 0.5, | ||
| 0.5, 0.5, | ||
| 0.5, 0.5, | ||
| 0.5, 0.5, | ||
| # arms | ||
| 0.5, 0.5, | ||
| 0.5, 0.5, | ||
| 0.5, 0.5, | ||
| 0.5, 0.5 | ||
| ] | ||
| phase: | ||
| control_dt: 0.02 | ||
| gait_frequency: 99.99 | ||
| use_phase: False | ||
|
|
||
| providers: ["CPUExecutionProvider"] |
57 changes: 57 additions & 0 deletions
57
src/bitbots_motion/bitbots_rl_motion/configs/playground_walk_model.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| walk_node: | ||
| ros__parameters: | ||
| model: policy_walk.onnx | ||
|
|
||
| joints: | ||
| ordered_relevant_joint_names: [ | ||
| "r_hip_pitch_joint", | ||
| "r_hip_roll_joint", | ||
| "r_thigh_joint", | ||
| "r_calf_joint", | ||
| "r_ankle_pitch_joint", | ||
| "r_ankle_roll_joint", | ||
| "l_hip_pitch_joint", | ||
| "l_hip_roll_joint", | ||
| "l_thigh_joint", | ||
| "l_calf_joint", | ||
| "l_ankle_pitch_joint", | ||
| "l_ankle_roll_joint" | ||
| ] | ||
| walkready_state: [ | ||
| 0.6, 0.0, 0.0, 1.2, 0.6, 0.0, | ||
| -0.6, 0.0, 0.0, -1.2, -0.6, 0.0 | ||
| ] | ||
| kp: [ | ||
| # legs | ||
| 30.0, 30.0, | ||
| 30.0, 30.0, | ||
| 30.0, 30.0, | ||
| 30.0, 30.0, | ||
| 30.0, 30.0, | ||
| 30.0, 30.0 | ||
| ] | ||
| kd: [ | ||
| # legs | ||
| 1.1, 1.1, | ||
| 1.1, 1.1, | ||
| 1.1, 1.1, | ||
| 1.1, 1.1, | ||
| 1.1, 1.1, | ||
| 1.1, 1.1 | ||
| ] | ||
| action_scales: [ | ||
| # legs | ||
| 0.5, 0.5, | ||
| 0.5, 0.5, | ||
| 0.5, 0.5, | ||
| 0.5, 0.5, | ||
| 0.5, 0.5, | ||
| 0.5, 0.5 | ||
| ] | ||
| phase: | ||
| use_phase: True | ||
| control_dt: 0.02 | ||
| gait_frequency: 0.75 | ||
| initial_phase: [1.5707963267948966, -1.5707963267948966] | ||
|
|
||
| providers: ["CPUExecutionProvider"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the regular one in this case. It seems to replace the other one.