Skip to content

Commit 11281d5

Browse files
committed
remove more pressure leftovers
1 parent 580df11 commit 11281d5

4 files changed

Lines changed: 1 addition & 40 deletions

File tree

src/bitbots_misc/bitbots_diagnostic/config/analyzers.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,4 @@ analyzers:
4444
startswith: ['SYSTEM']
4545
timeout: 1.0
4646
find_and_remove_prefix: ['SYSTEM']
47-
#Pressure:
48-
# type: diagnostic_aggregator/GenericAnalyzer
49-
# path: Pressure
50-
# startswith: ['PS']
51-
# timeout: 0.2
52-
# find_and_remove_prefix: ['PS']
47+

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

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,6 @@ def perform(self, reevaluate=False):
2121
)
2222

2323

24-
class WaitForPressureStartup(AbstractHCMActionElement):
25-
"""
26-
Waits for the pressure sensors to connect and not complain since we are still starting up.
27-
"""
28-
29-
def perform(self, reevaluate=False):
30-
pass
31-
32-
33-
class WaitForPressure(AbstractHCMActionElement):
34-
"""
35-
Waits for the pressure sensors to connect and publishes warnings while doing so
36-
"""
37-
38-
def perform(self, reevaluate=False):
39-
self.blackboard.node.get_logger().warn(
40-
"HCM gets no correct pressure data. Waiting for pressure sensors to connect.\n"
41-
"Use rqt_monitor to check hardware status. "
42-
"Please check if the pressure sensors are correctly zeroed. If you "
43-
"have no pressure sensors installed, you may want to set the HCM config "
44-
"accordingly. If you just running a visualization on your computer you may want to "
45-
"set the visualization_active parameter to True.",
46-
throttle_duration_sec=30,
47-
)
48-
49-
5024
class WaitForMotors(AbstractHCMActionElement):
5125
"""
5226
Waits for the motors to connect and publishes warnings while doing so

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,6 @@ def __init__(self, node: Node):
119119
self.previous_imu_msg: Optional[Imu] = None
120120
self.last_different_imu_state_time: Optional[Time] = None
121121

122-
# Pressure sensors
123-
# Initialize values high to prevent wrongly thinking the robot is picked up during start or in simulation
124-
self.pressures: list[float] = [100.0] * 8
125-
self.previous_pressures: list[float] = self.pressures.copy()
126-
self.last_different_pressure_state_time: Optional[Time] = None
127-
128122
# Diagnostics state
129123
self.servo_diag_error: bool = False
130124
self.servo_overload: bool = False

src/bitbots_motion/bitbots_hcm/bitbots_hcm/humanoid_control_module.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,6 @@ def diag_cb(self, msg: DiagnosticArray):
160160
self.blackboard.servo_diag_error = status.level in (DiagnosticStatus.ERROR, DiagnosticStatus.STALE)
161161
elif "/IMU" in status.name:
162162
self.blackboard.imu_diag_error = status.level in (DiagnosticStatus.ERROR, DiagnosticStatus.STALE)
163-
elif "/Pressure" in status.name:
164-
self.blackboard.pressure_diag_error = status.level in (DiagnosticStatus.ERROR, DiagnosticStatus.STALE)
165163

166164
def get_state(self) -> T_RobotControlState:
167165
"""Returns the current state of the HCM."""

0 commit comments

Comments
 (0)