ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Hi Devasena,

I have the same problem. I am attempting to combine two maps, but always I get the same response: "Segmentation fault (core dumped)"

I have tried with .pgm and .png maps with different weights but the result is the same.

The commands that I have tried are:

bin/mapstitch -o map_result.pgm map_part1.pgm map_part2.pgm bin/mapstitch -o map_result.pgm -d 1.0 map_part1.pgm map_part2.pgm

bin/mapstitch -o map_result.pgm map_part1.png map_part2.png bin/mapstitch -o map_result.png map_part1.png map_part2.png [with different map sizes] ....

Have you obtained some good result?

Hi Devasena,

I have the same problem. I am attempting to combine two maps, but always I get the same response: "Segmentation fault (core dumped)"

I have tried with .pgm and .png maps with different weights but the result is the same.

The commands that I have tried are:

bin/mapstitch -o map_result.pgm map_part1.pgm map_part2.pgm bin/mapstitch -o map_result.pgm -d 1.0 map_part1.pgm map_part2.pgm

bin/mapstitch -o map_result.pgm map_part1.png map_part2.png bin/mapstitch -o map_result.png map_part1.png map_part2.png [with different map sizes] ....

Have you obtained some good result?



I have found the solution. The correct command to run the mapstitch (offline) is:

bin/mapstitch -o mapResult.pgm -d 3 map_1.pgm map_2.pgm

In this case, i want to merge map_1.pgm with map_2.pgm, and save the merged map in mapReult.pgm. The target distance to match the detected points is 3. You can choose your own distance for your needs.

If the desired distance is small for the current images, sometimes the program returns a Core Dumped error. This is not debugged in the code source.

I have added the corrections to manage the error in the source in GitHub.

If you want to see how the program has matched both images (see the features points in the images), you need to add -v (verbose) before the -o.

I hope that this help to the users.

Hi Devasena,

I have the same problem. I am attempting to combine two maps, but always I get the same response: "Segmentation fault (core dumped)"

I have tried with .pgm and .png maps with different weights but the result is the same.

The commands that I have tried are:

bin/mapstitch -o map_result.pgm map_part1.pgm map_part2.pgm bin/mapstitch -o map_result.pgm -d 1.0 map_part1.pgm map_part2.pgm

bin/mapstitch -o map_result.pgm map_part1.png map_part2.png bin/mapstitch -o map_result.png map_part1.png map_part2.png [with different map sizes] ....

Have you obtained some good result?



I have found the solution. solution. The correct command to run the mapstitch (offline) is:

bin/mapstitch -o mapResult.pgm -d 3 map_1.pgm map_2.pgm

In this case, i want to merge map_1.pgm with map_2.pgm, and save the merged map in mapReult.pgm. The target distance to match the detected points is 3. You can choose your own distance for your needs.

If the desired distance is small for the current images, sometimes the program returns a Core Dumped error. This is not debugged in the code source.

I have added the corrections to manage the error in the source in GitHub.

If you want to see how the program has matched both images (see the features points in the images), you need to add -v (verbose) before the -o.

I hope that this help to the users.