20 from sr_robot_msgs.msg
import BiotacAll, ShadowPST, UBI0All
26 Module that receives the tactile values. 31 Receives the tactile information from a Shadow Hand 32 @param prefix - prefix for the tactile topic 35 if not prefix.endswith(
"/"):
37 if prefix.endswith(
"_"):
58 rospy.wait_for_message(
59 self.
_prefix +
"tactile", ShadowPST, timeout=1.0)
61 except (rospy.ROSException, rospy.ROSInterruptException):
65 rospy.wait_for_message(
66 self.
_prefix +
"tactile", BiotacAll, timeout=1.0)
68 except (rospy.ROSException, rospy.ROSInterruptException):
72 rospy.wait_for_message(
73 self.
_prefix +
"tactile", UBI0All, timeout=1.0)
75 except (rospy.ROSException, rospy.ROSInterruptException):
77 "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)