19 from geometry_msgs.msg
import WrenchStamped
23 rospy.loginfo(
"At:" + str(data.header.stamp.secs) +
"." + str(data.header.stamp.nsecs) +
24 " sensor:" + str(data.header.frame_id) +
25 " Force:" + str(data.wrench.force.x) +
"," +
26 str(data.wrench.force.y) +
"," + str(data.wrench.force.z))
31 rospy.init_node(
"optoforce_tactile_reader", anonymous=
True)
32 for sensor_num
in range(num_sensors):
33 rospy.Subscriber(
"optoforce_" + str(sensor_num), WrenchStamped, callback)
36 if __name__ ==
'__main__':