-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* moved localization and firmware into folders where they belong. playing with order of folders. added an ros example that makes sense for camera. setting up a ros example that makes sense with walk but the ros layer needs some work * experimenting with placo * working on adding placo as the main walk engine * Fixed someproblems in the webots bridge and urdf/xacro. integrated placo as a walk engine alternative * added a rough draft of ros layer for placo and it works great out of the box * removed old walk engine and replaced with placo. reworked the ros layer and removed redundent parameter sharing. General clean up. Got walking loop to work from same code regardless of sim or ros. Fixed parameters and general plumbing. removed sigmanban and other description stuff to make it nicer. Fixed bez2 xacro and some improvements to firmware interface tests. should be ready to go.
- Loading branch information
Showing
259 changed files
with
2,830 additions
and
7,741 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -34,3 +34,5 @@ venv/ | |
.mypy_cache/ | ||
cuda-ubuntu2004.pin.1 | ||
*.webm | ||
|
||
.idea/ |
This file contains 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 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
Submodule hlvs_webots
updated
from d181d4 to b3dd80
This file contains 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 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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
from soccer_common.pid import PID | ||
from soccer_common.transformation import Transformation | ||
from soccer_common.transformation2d import Transformation2D | ||
|
||
try: | ||
from soccer_common.perception.camera_calculations import CameraCalculations | ||
from soccer_common.pid import PID | ||
except: | ||
print("not using camera") | ||
# try: | ||
# from soccer_object_detection.camera import CameraCalculations | ||
# | ||
# except: | ||
# print("not using camera") | ||
|
||
# TODO maybe combine with msgs and descriptions? |
87 changes: 0 additions & 87 deletions
87
soccer_common/src/soccer_common/perception/camera_calculations_ros.py
This file was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -1,48 +1,53 @@ | ||
control_frequency: 0.02 | ||
|
||
# Path parameters | ||
walking_torso_height: 0.33 # not sure | ||
|
||
torso_step_length: 0.02 | ||
torso_step_length_short_backwards: 0.01 | ||
torso_step_length_short_forwards: 0.025 | ||
|
||
steps_per_second_default: 2.6 | ||
foot_separation: 0.043 | ||
step_height: 0.02 | ||
|
||
torso_offset_x_ready: 0.012 # positive is forward | ||
torso_offset_x: 0.02 # positive is forward | ||
|
||
torso_offset_pitch_ready: -0.1 | ||
torso_offset_pitch: 0.2 | ||
|
||
torso_sidediff_sway: -0.01 | ||
get_ready_rate: 0.03 | ||
#pre_footstep_ratio: 0.05 | ||
post_footstep_ratio: 0.2 | ||
|
||
prepare_walk_time: 2 | ||
|
||
walking_Kp: 0.07 | ||
walking_Ki: 0.0000 | ||
walking_Kd: 0.5 | ||
walking_setpoint: 0.27 | ||
walking_offset: -0.06 | ||
|
||
standing_Kp: 0.07 | ||
standing_Ki: 0 | ||
standing_Kd: 0.5 | ||
standing_setpoint: 0.19 | ||
standing_offset: 0.03 | ||
|
||
walking_roll_Kp: 0.0 | ||
walking_roll_Ki: 0.05 | ||
walking_roll_Kd: 0.0 | ||
walking_roll_setpoint: 0.0 | ||
|
||
# Head rotation parameters | ||
head_rotation_yaw_center: 0.205 | ||
head_rotation_yaw_range: 0.15 | ||
head_pitch_freq: 0.01 | ||
head_yaw_freq: 0.01 | ||
# Path calibration Parameters | ||
robot_model: bez1 | ||
|
||
# KINEMATIC DATA | ||
#: Height of the robot's torso (center between two arms) while walking | ||
walking_torso_height: 0.315 | ||
arm_0_center: -0.45 | ||
arm_1_center: 2.512 | ||
# merge_fixed_links: true | ||
|
||
# STABILIZE | ||
walking_pitch_kp: 0.0 #2.3 1 | ||
walking_pitch_kd: 0 #1 | ||
walking_pitch_ki: 0.000 | ||
walking_pitch_setpoint: -0.0 | ||
walking_pitch_offset: 0.0 | ||
|
||
walking_roll_kp: 0.0 #1.5 1 | ||
walking_roll_kd: 0 #0.5 | ||
walking_roll_ki: 0.0 | ||
walking_roll_setpoint: -0.0 | ||
walking_roll_offset: 0.0 | ||
|
||
### WALK ENGINE | ||
# Walk parameters - if double_support_ratio is not set to 0, should be greater than replan_frequency | ||
# Timing parameters | ||
control_frequency: 0.005 | ||
single_support_duration: 0.25 # Duration of single support phase [s] | ||
single_support_timesteps: 10 # Number of planning timesteps per single support phase | ||
double_support_ratio: 0.0 # Ratio of double support (0.0 to 1.0) | ||
startend_double_support_ratio: 2.0 # Ratio duration of supports for starting and stopping walk | ||
planned_timesteps: 48 # Number of timesteps planned ahead | ||
replan_timesteps: 10 # Replanning each n timesteps | ||
|
||
# Posture parameters | ||
walk_com_height: 0.21 # Constant height for the CoM [m] | ||
walk_foot_height: 0.04 # Height of foot rising while walking [m] | ||
walk_trunk_pitch: 0.0 # Trunk pitch angle [rad] | ||
walk_foot_rise_ratio: 0.2 # Time ratio for the foot swing plateau (0.0 to 1.0) | ||
|
||
# Feet parameters | ||
foot_length: 0.1200 # Foot length [m] | ||
foot_width: 0.072 # Foot width [m] | ||
feet_spacing: 0.122 # Lateral feet spacing [m] | ||
zmp_margin: 0.02 # ZMP margin [m] | ||
foot_zmp_target_x: 0.0 # Reference target ZMP position in the foot [m] | ||
foot_zmp_target_y: 0.0 # Reference target ZMP position in the foot [m] | ||
|
||
# Limit parameters | ||
walk_max_dtheta: 1 # Maximum dtheta per step [rad] | ||
walk_max_dy: 0.04 # Maximum dy per step [m] | ||
walk_max_dx_forward: 0.08 # Maximum dx per step forward [m] | ||
walk_max_dx_backward: 0.03 # Maximum dx per step backward [m] |
Oops, something went wrong.