Skip to content

Code becomes stuck when no objects within lidar range #2

@ShaphanJ

Description

@ShaphanJ

Thanks for providing the Python code for the CygLiDAR. I was able to implement it on the Jetson Nano. It seems to be working seamlessly for cases in which objects are in the range of the lidar; however, my algorithm gets stuck/returns no data for cases in which no objects are within the lidar maximum range. It seems that the “if Parser(readdata[i]):” line returns false in this case. I’m not sure if the code returns an error in that case, which cannot be handled by the parser. (I see that error codes are listed in the manual but am not sure how/when these errors are generated.) The output returns as soon as an object(s) comes back in range, but the code has to “catch up” to receive real-time data, i.e., a lag occurs afterwards. It would be preferred to read data continuously and/or eliminate the lag in some other way after output returns. I am using the lidar on a vehicle that will be used in an outdoor environment in which obstacles are not present at some intervals. Any help would be much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions