-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
about "no response" #9
Comments
i debug the code, you can following my flow:
here you will see the n == 0 i know that will be valid if i reboot the laser, but i cann't find reboot command |
i add "BM" command to debug it, but the response messages is "BM01Q" Code Detail |
use “GE” command, i can't understand the '0N' ?i find more answer about these on P27 so there is some wrong with the laser hardware |
i have resolve this problem,you can see this https://github.com/comwise/urg_node |
i have the same following problem, but i use UAM-05LP.
->Still for a long time, the laser will occur it
->reboot node process, it is not invalid, but reboot robot will be ok
i see the code, the problem will be here
`//! 距離データの取得
static int receive_data(urg_t *urg, long data[], unsigned short intensity[],
long *time_stamp, unsigned long long *system_time_stamp)
{
urg_measurement_type_t type;
char buffer[BUFFER_SIZE];
int ret = 0;
int n;
int extended_timeout = urg->timeout
+ 2 * (urg->scan_usec * (urg->scanning_skip_scan) / 1000);
i don't debug this code, the problem only happens sometimes
The device I used is: UST-10LX.
The version of Lib I used is: urg_library-1.2.2.zip.
The test environment is: Windows10 64bit and Visual Studio 2015.
Open the device through the network port, starts to measure, and gets the data by calling get_distance_intensity().
Sometimes there is a "no response" error in a few minutes (and it may take a few days to meet this problem). After this error, you can no longer continue to get data through get_distance_intensity().
The error is returned even when close () is called and open () is invoked. Only by closing the program and run it again can continue to receive data through the get_distance_intensity().
Do you have the same problem? Or could you give me some advice?
I look forward to your reply very much. I hope my poor English does not affect your reading.
The text was updated successfully, but these errors were encountered: