Skip to content

Commit 0709f71

Browse files
authored
Merge branch 'main' into feature/python_events_executore
2 parents 80fe7c3 + 6b4a4d9 commit 0709f71

File tree

6 files changed

+15
-2
lines changed

6 files changed

+15
-2
lines changed

bitbots_behavior/bitbots_blackboard/bitbots_blackboard/capsules/costmap_capsule.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ def __init__(self, node, blackboard):
4747

4848
self.base_costmap: Optional[np.ndarray] = None # generated once in constructor field features
4949
self.costmap: Optional[np.ndarray] = None # updated on the fly based on the base_costmap
50-
self.gradient_map: Optional[np.ndarray] = None # global heading map (static) only dependent on field structure
50+
self.gradient_map: Optional[list[np.ndarray]] = (
51+
None # global heading map (static) only dependent on field structure
52+
)
5153

5254
# Calculates the base costmap and gradient map based on it
5355
self.calc_base_costmap()

bitbots_behavior/bitbots_blackboard/bitbots_blackboard/capsules/pathfinding_capsule.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ def get_ball_goal(self, target: BallGoalType, distance: float, side_offset: floa
182182

183183
elif BallGoalType.CLOSE == target:
184184
ball_u, ball_v = self._blackboard.world_model.get_ball_position_uv()
185-
angle = math.atan2(ball_v, ball_u)
185+
ball_v_from_kick_foot = ball_v + side_offset
186+
angle = math.atan2(ball_v_from_kick_foot, ball_u)
186187
goal_u = ball_u - math.cos(angle) * distance
187188
goal_v = ball_v - math.sin(angle) * distance + side_offset
188189
ball_point = (goal_u, goal_v, angle, self._blackboard.world_model.base_footprint_frame)

bitbots_behavior/bitbots_body_behavior/launch/behavior_standalone.launch

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
<launch>
33
<arg name="sim" default="false" />
44
<arg name="dsd_file" default="main.dsd" description="The behavior dsd file that should be used" />
5+
<arg unless="$(var sim)" name="fieldname" default="labor" description="Loads field settings (labor, webots, ...)." />
6+
<arg if="$(var sim)" name="fieldname" default="webots" description="Loads field settings (labor, webots, ...)." />
57

68
<include file="$(find-pkg-share bitbots_parameter_blackboard)/launch/parameter_blackboard.launch">
79
<arg name="sim" value="$(var sim)" />
10+
<arg name="fieldname" value="$(var fieldname)" />
811
</include>
912

1013
<include file="$(find-pkg-share bitbots_body_behavior)/launch/behavior.launch">

bitbots_misc/bitbots_bringup/launch/teamplayer.launch

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@
1515
<arg name="monitoring" default="true" description="Whether the system monitor and udp bridge should be started" />
1616
<arg name="record" default="false" description="Whether the ros bag recording should be started" />
1717
<arg name="tts" default="true" description="Whether to speak" />
18+
<arg unless="$(var sim)" name="fieldname" default="labor" description="Loads field settings (labor, webots, ...)." />
19+
<arg if="$(var sim)" name="fieldname" default="webots" description="Loads field settings (labor, webots, ...)." />
1820

1921

2022
<!-- load the global parameters -->
2123
<include file="$(find-pkg-share bitbots_parameter_blackboard)/launch/parameter_blackboard.launch">
2224
<arg name="sim" value="$(var sim)" />
25+
<arg name="fieldname" value="$(var fieldname)" />
2326
</include>
2427

2528
<!-- load the diagnostic aggregator -->

bitbots_misc/bitbots_bringup/launch/vision_standalone.launch

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
<arg name="sim" default="false" description="true: activates simulation time, switches to simulation color settings and deactivates launching of an image provider" />
55
<arg name="camera" default="true" description="true: launches an image provider to get images from a camera (unless sim:=true)" />
66
<arg name="debug" default="false" description="true: activates publishing of several debug images" />
7+
<arg unless="$(var sim)" name="fieldname" default="labor" description="Loads field settings (labor, webots, ...)." />
8+
<arg if="$(var sim)" name="fieldname" default="webots" description="Loads field settings (labor, webots, ...)." />
79

810
<!-- Load the global parameters-->
911
<include file="$(find-pkg-share bitbots_parameter_blackboard)/launch/parameter_blackboard.launch">
1012
<arg name="sim" value="$(var sim)" />
13+
<arg name="fieldname" value="$(var fieldname)" />
1114
</include>
1215

1316
<!-- Load the diagnostic aggregator-->

bitbots_misc/bitbots_bringup/launch/visualization.launch

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<arg name="ipm" default="false" description="if the soccer ipm should be used" />
66
<arg name="motion" default="true" description="if the motion should be started" />
77
<arg name="game_controller" default="false" description="if the game controller node should be started" />
8+
<arg name="fieldname" default="labor" description="Loads field settings (labor, webots, ...)." />
89

910
<!-- load the global parameters -->
1011
<include file="$(find-pkg-share bitbots_parameter_blackboard)/launch/parameter_blackboard.launch" />

0 commit comments

Comments
 (0)