Menu

#6 _getSickErrors() in SickLMS.cc not functioning properly

open
nobody
None
5
2011-06-30
2011-06-30
No

_getSickErrors() in /c++/drivers/lms/sicklms-1.0/SickLMS.cc Ln. 3118 is not functioning properly.
The values of the error numbers and error types are not assigned to the arrays given as parameters.
In my opinion, the reason is that the payload_buffer is not extracted from the response message. It is still the payload_buffer from the message which was send. (only containing the command to request the LMS status)

Fix:
It works if the function call:
response.GetPayload(payload_buffer);
is for example inserted in line 3165, after extracting the length of the payload_buffer.
This function is, as far as i know, not used in the SickLMS in a way this would cause errors, but i wanted to get detailed information on the types of errors, therefore it was necessary to fix this bug.

Discussion


Log in to post a comment.