File tree Expand file tree Collapse file tree
nxt/nxt_python/test_scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,22 +19,20 @@ def test_sensors(b):
1919 us .command (us .Commands .CONTINUOUS_MEASUREMENT )
2020 start = rospy .Time .now ()
2121 while rospy .Time .now () < start + rospy .Duration (5.0 ):
22- print ' CONTINUOUS MEASUREMENT DISTANCE:' , us .get_distance ()
23- time .sleep (0.1 )
22+ print " CONTINUOUS MEASUREMENT DISTANCE:" , us .get_distance ()
23+ time .sleep (0.1 )
2424
2525 us .command (us .Commands .OFF ) # Turn off the sensor
26- print ' \n '
26+ print " \n "
2727
2828 start = rospy .Time .now ()
2929 while rospy .Time .now () < start + rospy .Duration (6.0 ):
3030 print "SENSOR WILL MEASURE SINGLE-SHOT DISTANCE IN 2 sec..."
3131 time .sleep (2.0 )
32-
33- us .command (us .Commands .SINGLE_SHOT )
34-
35- print 'DISTANCE:' , us .get_distance ()
36- time .sleep (0.5 )
37- print '\n '
32+ us .command (us .Commands .SINGLE_SHOT )
33+ print "DISTANCE:" , us .get_distance ()
34+ time .sleep (0.5 )
35+ print "\n "
3836
3937 us .command (us .Commands .OFF ) # Turn off the sensor
4038
You can’t perform that action at this time.
0 commit comments