Skip to content

Trajectories shifted with respect to the map in visualization #7

@mgiberna

Description

@mgiberna

Hello, first of all thank you for your great work.
I am trying to run a global localization experiment on a dataset of mine, and I followed your instructions (https://github.com/PRBonn/ir-mcl/blob/main/PREPARE_DATA.md and https://github.com/PRBonn/ir-mcl/blob/dev/tools/INSTRUCTIONS.md) in order to prepare the data as requested. Specifically, given a ROS bag, the groud truth trajectories and a map (.pgm), I converted the BAG in a .json file using your tool, I converted the map in .npy format using a simple script, and finally I obtained the remaining files (b2l.txt and lidar_info.json).

Once I tried running the global localization, I can see that the ground-truth trajectory and odometry poses are shifted with respect to the map on the visualization interface:

IRMCL_visualization

Actually, I believe that the map frame origin has been placed in its center, while the trajectories still keep their origins as set during the data recording.
On the other side, everything is working correctly, being able to successfully localize the robot, i.e. following the ground-truth trajectory, as well as correctly compute the localization and heading errors. Therefore, I believe it is just a visualization problem, but I cannot figure out how to solve it.

So, is there a way to align the map with the trajectories' frames?

Thank you very much in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions