Skip to content
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

Device Initialization/Stop Fails Intermittently – Need a More Reliable Solution #18

Open
VictorMirasierra opened this issue Oct 7, 2024 · 0 comments

Comments

@VictorMirasierra
Copy link

Hi, I am using Unitree 4D LiDAR L1. The problem is that when I try to initialize or put in stanby the LiDAR using "setLidarWorkingMode", it only works some of the time. For instance, I’ll issue a "setLidarWorkingMode(NORMAL)", and sometimes it kicks in, but other times it doesn’t. The same goes for putting it in stanby.

I’ve tried troubleshooting in various ways, but haven’t been able to pin down the exact cause. As a temporary workaround, I’ve resorted to a loop that tries to initialize/stop the device 100 times, hoping that one of those attempts will work. While this does eventually succeed, it's clearly not an ideal solution. I am using:

for( int i = 0; i < numtries ; ++i ) {
self->setLidarWorkingMode(NORMAL);
usleep( 1000 );
}

Is there a more reliable way to set the LiDAR working mode? Can I check its the current working mode?

Thanks for your support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant