Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 import rospy
00020
00021
00022 from nao_sensors.ros_sonar import SonarSensor, SonarPublisher
00023
00024 if __name__ == '__main__':
00025
00026 leftSonar = SonarSensor('Device/SubDeviceList/US/Left/Sensor/Value',
00027 'LSonar_frame',
00028 '~/nao/sonar_left')
00029
00030 rightSonar = SonarSensor('Device/SubDeviceList/US/Right/Sensor/Value',
00031 'RSonar_frame',
00032 '~/nao/sonar_right')
00033
00034 publisher = SonarPublisher( (leftSonar,rightSonar))
00035 publisher.start()
00036
00037 rospy.spin()
00038 exit(0)
nao_sensors
Author(s): Séverin Lemaignan, Vincent Rabaud, Karsten Knese, Jack O'Quin, Ken Tossell, Patrick Beeson, Nate Koenig, Andrew Howard, Damien Douxchamps, Dan Dennedy, Daniel Maier
autogenerated on Sun Nov 2 2014 11:27:42