Skip to content

Index out of bounds #8

@glhwork

Description

@glhwork

Thank you for sharing your algorithm!
Now I am trying to run the code in simulation and there are some problems I met,

  1. No graph.g2o file under my $HOME directory originally, but after I launch the graph_dopt.launch for the first time and then STOP (Ctrl+C), a graph.g2o file is generated under my $HOME directory and I have no idea where the graph data is from.
  2. An error occurs at line 239 in scripts/functions.py (i.e., 'FIM = np.float_(x.split(' ')[7:12])') saying 'cannot convert from string to float'. I discover that the last member of the list x.split(' ')[7:12] is a newline character('\n'), then I modify it to [7:11] to bypass this problem.
  3. After problem 2, another error occurs at line 45 in scripts/weighted_pose_graph_class.py saying 'index out of bounds' while assigning values to matrix A. Then I verify that the length of list I is 5, not 6.

I'm blocked by these problems for a while. I'm not sure whether the data generated (graph.g2o) is correct according to my steps. Or perhaps, I made a wrong modification of the code?
Many thanks if any suggestions!!

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