File tree Expand file tree Collapse file tree
src/bitbots_motion/bitbots_hcm/bitbots_hcm/hcm_dsd Expand file tree Collapse file tree Original file line number Diff line number Diff 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..." )
Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments