diff --git a/src/bitbots_behavior/bitbots_blackboard/bitbots_blackboard/capsules/world_model_capsule.py b/src/bitbots_behavior/bitbots_blackboard/bitbots_blackboard/capsules/world_model_capsule.py index 6578b7c50..5c2d8a129 100644 --- a/src/bitbots_behavior/bitbots_blackboard/bitbots_blackboard/capsules/world_model_capsule.py +++ b/src/bitbots_behavior/bitbots_blackboard/bitbots_blackboard/capsules/world_model_capsule.py @@ -58,9 +58,10 @@ def __init__(self, node, blackboard): self.map_margin: float = self._node.get_parameter("map_margin").value # Ball state + # The ball in the map frame (default to the center of the field if ball is not seen yet) self._ball: PointStamped = PointStamped( - header=Header(stamp=Time(clock_type=ClockType.ROS_TIME), frame_id=self.map_frame) - ) # The ball in the map frame (default to the center of the field if ball is not seen yet) + header=Header(stamp=Time(clock_type=ClockType.ROS_TIME).to_msg(), frame_id=self.map_frame) + ) self._ball_covariance: np.ndarray = np.zeros((2, 2)) # Covariance of the ball # Publisher for visualization in RViZ