Skip to content
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

New param style #342

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ def perform(self, reevaluate=False):
self.blackboard.pathfinding.publish(pose_msg)

def _stay_in_front_of_goal(self, y):
# keeps the y-values of the position in between of the goalposts.
# this ensures, that y is in [-self.blackboard.world_model.goal_width / 2, self.blackboard.world_model.goal_width / 2].
# Keeps the y-values of the position in between of the goalposts.
# This ensures, that y is in [-self.blackboard.world_model.goal_width / 2, self.blackboard.world_model.goal_width / 2].
return max(-self.blackboard.world_model.goal_width / 2, min(self.blackboard.world_model.goal_width / 2, y))
16 changes: 1 addition & 15 deletions bitbots_body_behavior/config/body_behavior.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
- "offense"
- "defense"

# When False, the behavior will use a simple fallback mode in which only detected image features are
# used for decision making
use_localization: true

# Position format:
# y
# ^ ______________________
Expand Down Expand Up @@ -59,14 +55,9 @@
# it is considered lost and will be searched
ball_lost_time: 3.0

# The orientation threshold defining which range (in Degrees) is acceptable as aligned to the goal (in each direction)
# The orientation threshold defining which range (in Degrees) is acceptable as aligned to the path planning goal (in each direction)
goal_alignment_orientation_threshold: 20.0

# When the goal has not been seen for `goal_lost_time` seconds,
# it is considered lost and will be searched
goal_lost_time: 30.0


# When the ball is closer than `ball_close_distance` meters
# it is in a reachable area of the robot
ball_close_distance: 1.5
Expand Down Expand Up @@ -129,11 +120,6 @@
theta_sdev: 0.6


# Duration for which the robot tries to orient itself, when the localization precision is low.
reorientation_duration: 10.0

# Duration for which the robot pauses between reorientation runs.
reorientation_pause_duration: 30.0

# minimal difference between the current and the last path planning goal to actually send a new goal.
pathfinding_position_threshold: 0.3
Expand Down
Loading