Skip to content

Commit 7903b38

Browse files
committed
Remove motor start delay
Signed-off-by: Florian Vahl <florian@flova.de>
1 parent 78b593f commit 7903b38

2 files changed

Lines changed: 0 additions & 17 deletions

File tree

src/bitbots_motion/bitbots_hcm/bitbots_hcm/hcm_dsd/actions/wait.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,3 @@ def perform(self, reevaluate=False):
3636
if self.blackboard.node.get_clock().now().nanoseconds / 1e9 > self.start_time + self.duration:
3737
self.pop()
3838

39-
40-
class WaitRosControlStartDelay(Wait):
41-
"""
42-
The motors need some time to start up,
43-
the time at which we start sending commands is defined in the config of the ros_control node.
44-
This action waits for that time.
45-
"""
46-
47-
def __init__(self, blackboard, dsd, parameters):
48-
super().__init__(blackboard, dsd, parameters)
49-
self.duration = self.blackboard.motor_start_delay
50-
self.blackboard.node.get_logger().info("Waiting for the motors to start up...")

src/bitbots_motion/bitbots_hcm/bitbots_hcm/hcm_dsd/hcm_blackboard.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ def __init__(self, node: Node):
3737
self.visualization_active: bool = self.node.get_parameter("visualization_active").value
3838
self.pickup_accel_threshold: float = self.node.get_parameter("pick_up_accel_threshold").value
3939
self.pressure_sensors_installed: bool = self.node.get_parameter("pressure_sensors_installed").value
40-
self.motor_start_delay: int = 0
41-
if not self.simulation_active: # The hardware interface is obviously not available in simulation
42-
self.motor_start_delay = get_parameters_from_other_node_sync(
43-
self.node, "/wolfgang_hardware_interface", ["start_delay"]
44-
)["start_delay"]
4540

4641
# Create service clients
4742
self.motor_switch_pub = self.node.create_publisher(PowerSwitch, "/power_switch_control")

0 commit comments

Comments
 (0)