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

reading scan error #3

Open
kc944201 opened this issue Jul 14, 2021 · 0 comments
Open

reading scan error #3

kc944201 opened this issue Jul 14, 2021 · 0 comments

Comments

@kc944201
Copy link

kc944201 commented Jul 14, 2021

Hi, I try to use wall_follower.py with my real robot, but the terminal show some errors.

[ERROR] [1626273548.479396, 943.979000]: bad callback: <function clbk_laser at 0x7f2f5d2606d0> Traceback (most recent call last): File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/topics.py", line 750, in _invoke_callback cb(msg) File "./test.py", line 93, in clbk_laser 'front': min(min(msg.ranges[432:575]), inf), ValueError: min() arg is an empty sequence

@ssscassio Could you please help me the problem?
I have no idea how to define the laser region.
I use ydlidar TX20 and angle is 126~-126 degrees, also I reversion it.

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