Skip to content

Some error #8

@zhang-mu-zhi

Description

@zhang-mu-zhi

when I run the code of forwaerd.py.There is some error

> [[0.3459628224372864, -0.11333124339580536, 0.9675822257995605, 0.0], [-0.12723304331302643, 0.01251344382762909, 0.9417054057121277, 1.0], [-1.7394113540649414, -0.0037579028867185116, -0.03742053359746933, 1.0], [-2.201016664505005, -0.1367340236902237, -0.09609729051589966, 0.0]]
> Traceback (most recent call last):
>   File "forward.py", line 409, in <module>
>     controller(teach_map, camera1)
>   File "forward.py", line 41, in __init__
>     self.move_init(self.start_position)
>   File "forward.py", line 49, in move_init
>     closest_point,idx = self.closest_to_teach(new_position)
>   File "forward.py", line 73, in closest_to_teach
>     closest_point=self.path1[idx+50]
> IndexError: list index out of range

How can i deal with this?
Thank you very much

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