simondlevy / BreezySLAM

Simple, efficient, open-source package for Simultaneous Localization and Mapping
GNU Lesser General Public License v3.0
758 stars 251 forks source link

hokuyo_connect:_connect:_get_sensor_info: response does not match: #6

Closed joelmaranhao closed 8 years ago

joelmaranhao commented 8 years ago

Environment

~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.4 LTS
Release:    14.04
Codename:   trusty
$ uname -a
Linux mycomputer 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Error

This error isn't systematic. If I try enough times it will eventually work (?)

~$ ./BreezySLAM/examples/urgslam.py
breezylidar.URG04LX:hokuyo_connect:_connect:_get_sensor_info: response does not match:
breezylidar.URG04LX:hokuyo_connect:_connect:_get_sensor_info_and_params: unable to get status!
breezylidar.URG04LX:hokuyo_connect:_connect: could not get status data from sensor
Traceback (most recent call last):
  File "./BreezySLAM/examples/urgslam.py", line 36, in <module>
    lidar = Lidar(LIDAR_DEVICE)
TypeError: Wrong/insufficient arguments passed to URG04LX.__init__() 
simondlevy commented 8 years ago

Yeah, sorry ... this error is certainly related to the BreezyLidar problems you were having before. The command you issued always works with my Hokuyo URG04LX. Unfortunately, because of the high cost of the Hokuyo units, I cannot reproduce the problem here. If you figure it out and manage to fix it, please post a pull request.

joelmaranhao commented 8 years ago

May be we don't have the same firmware, could you check?

Here after the output to my terminal

~/BreezyLidar/examples$ python urgtest.py 
===============================================================
Model:    URG-04LX(Hokuyo Automatic Co.,Ltd.)
Firmware: 3.3.01(23/Jun./2008)
Serial #: H1002589
Protocol: SCIP 2.0
Vendor:   Hokuyo Automatic Co.,Ltd.
===============================================================
simondlevy commented 8 years ago

Yes, you're right, Joel. You are running firmware 3.3.01, whereas mine is 3.4.03:

levy@kern:~/Desktop/BreezyLidar/examples$ ./urgtest.py

Model: URG-04LX-UG01(Simple-URG)(Hokuyo Automatic Co.,Ltd.) Firmware: 3.4.03(17/Dec./2012) Serial #: H1320770 Protocol: SCIP 2.0

Vendor: Hokuyo Automatic Co.,Ltd.

Iteration: 1: Got 682 data points Iteration: 2: Got 682 data points Iteration: 3: Got 682 data points Iteration: 4: Got 682 data points Iteration: 5: Got 682 data points Iteration: 6: Got 682 data points Iteration: 7: Got 682 data points Iteration: 8: Got 682 data points Iteration: 9: Got 682 data points Iteration: 10: Got 682 data points 10 scans in 0.906507 seconds = 11.031354 scans/sec

On Wed, Jul 6, 2016 at 9:48 AM, joelmaranhao notifications@github.com wrote:

May be we don't have the same firmware, could you check?

~/BreezyLidar/examples$ python urgtest.py

Model: URG-04LX(Hokuyo Automatic Co.,Ltd.) Firmware: 3.3.01(23/Jun./2008) Serial #: H1002589 Protocol: SCIP 2.0

Vendor: Hokuyo Automatic Co.,Ltd.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/simondlevy/BreezySLAM/issues/6#issuecomment-230776374, or mute the thread https://github.com/notifications/unsubscribe/AGc_ydsbuIu9GRwhitTyw0JsAgyEaxckks5qS7IjgaJpZM4JCE94 .

Simon D. Levy Professor Computer Science Department 407 Parmly Hall Washington & Lee University Lexington, VA 24450

540-458-8419 (voice) 540-458-8255 (fax)