39 import roslib; roslib.load_manifest(
'kobuki_testsuite')
42 from kobuki_msgs.msg
import SensorState
46 sys.stdout.write(
"\r\x1b[KAnalog input: [%d, %d, %d, %d]" \
47 %(data.analog_input[0], data.analog_input[1], \
48 data.analog_input[2], data.analog_input[3]))
51 rospy.init_node(
"test_analog_input")
52 rospy.Subscriber(
"/mobile_base/sensors/core", SensorState, SensorStateCallback)