19 from sr_robot_msgs.msg
import BiotacAll, ShadowPST, UBI0All
25 Module that receives the tactile values. 30 Receives the tactile information from a Shadow Hand 31 @param prefix - prefix for the tactile topic 34 if not prefix.endswith(
"/"):
36 if prefix.endswith(
"_"):
57 rospy.wait_for_message(
58 self.
_prefix +
"tactile", ShadowPST, timeout=1.0)
60 except (rospy.ROSException, rospy.ROSInterruptException):
64 rospy.wait_for_message(
65 self.
_prefix +
"tactile", BiotacAll, timeout=1.0)
67 except (rospy.ROSException, rospy.ROSInterruptException):
71 rospy.wait_for_message(
72 self.
_prefix +
"tactile", UBI0All, timeout=1.0)
74 except (rospy.ROSException, rospy.ROSInterruptException):
76 "No tactile topic found. This is normal for a simulated hand")
def tactile_callback(self, tactile_msg)
def __init__(self, prefix="")
def get_tactile_type(self)
def find_tactile_type(self)
def get_tactile_state(self)