Skip to content

Commit

Permalink
[ForceTorqueMonitoring] Addressing PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaKro committed Dec 2, 2024
1 parent 0dd03ac commit c4963ff
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/pycram/ros_utils/force_torque_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,15 +246,8 @@ def get_derivative(self, is_filtered=True) -> WrenchStamped:
return derivative

def human_touch_monitoring(self):
print("monitoring")
if self.robot_name == 'hsrb':
der = self.get_last_value()
if abs(der.wrench.force.x) > 10.30:
print("sensor")
return SensorMonitoringCondition
elif self.robot_name == 'pr2':
rospy.loginfo_once("Now monitoring for human touch")
if self.robot_name == 'pr2':
der = self.get_derivative()
print(der.wrench.torque.x)
if abs(der.wrench.torque.x) > 3:
print("sensor")
return SensorMonitoringCondition

0 comments on commit c4963ff

Please sign in to comment.