一个使用hokuyo-urg激光测距传感器的python库
pyurg的Python项目详细描述
pyurg是一个在python中使用hokuyo-urg激光测距传感器的库。
示例
>>>importpyurg# inport this library>>>urg=pyurg.UrgDevice()# for Initializing>>>urg.connect()# connect to the URG deviceTrue>>>data,timestamp=urg.capture()# get length datas and timestamp>>>data# print length datas[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,117,117,118,119,118,120,120,120,116,120,117,118,117,117,117,118,119,120,120,120,120,127,2413,2413,2413,...111,111,113,113,113,113,114,112]