Skip to content

data from laser scan causes error (rarely) #2

@cypressf

Description

@cypressf

[ERROR] [WallTime: 1418572031.512610] bad callback: <bound method Controller.laser_scan_received of <main.Controller instance at 0x4c66e60>>
Traceback (most recent call last):
File "/opt/ros/hydro/lib/python2.7/dist-packages/rospy/topics.py", line 682, in _invoke_callback
cb(msg)
File "/home/cypressf/catkin_ws/src/rescuebot/scripts/runner.py", line 333, in laser_scan_received
if 0 < laser_scan_message.ranges[i + 40] < 2:
IndexError: tuple index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions