is there any way to use a bmp file with PRM to find path planning route
Mostrar comentarios más antiguos
Is there a way to input a .bmp file with obstacles defined into the robotics.PRM functions to define path planning ?
I can't seem to create the axis configuration I want and the non-circular obstacles using the the robotics.OccupancyGrid function and have to save a figure as a .bmp file instead. But I can't seem to get anything sensible when I pass it through the PRM path planning function.
Respuestas (2)
Ajay Pattassery
el 10 de Feb. de 2020
1 voto
The .bmp file can be first converted into a binaryOccupancyMap. This map can be used as an input to the mobileRobotPRM function for finding all the possible paths.
The mobileRobotPRM function helps in creating the probabilistic roadmap path Planner. Refer here for more details.
7 comentarios
William Campbell
el 12 de Feb. de 2020
Ajay Pattassery
el 14 de Feb. de 2020
Editada: Ajay Pattassery
el 14 de Feb. de 2020
If your local coordinate system has starting point on the lower right of the image, it will be easier if you flip the binary Image along the row diamension. Assume A is the binary image matrix,
flip(A,2)
Or If you want to keep the staring position on the right hand side, you can reverse the x direction of the figure
set ( gca, 'xdir', 'reverse')
William Campbell
el 16 de Feb. de 2020
Ajay Pattassery
el 18 de Feb. de 2020
Hello William,
you could rotate 90 degrees anticlockwise using rot90
rot90 (image)
The BinaryOccupanyGrid with just map argument creates an occupancy grid with the same dimension as the image. Say the image is of 250x250, the occupancy grid matrix will be of 250x250. That is there will be one to one correspondence between the image pixel and the occupancy grid cell. Also, each pixel will correspond to 1m. That is the Binary Occupancy Grid of a 250x250 image span across an environment of 250-meter x 250-meters.
If you would like to have a different resolution for the map, define the same while creating the map
mapRes = robotics.BinaryOccupancyGrid(bwimage, 10)
Here bwimage is of dimension 250x250 and the map resolution is 10. Hence 10 pixels define 1 meter in the map. Or the resultant BianryOccupancy map will be of 25mx25m.
William Campbell
el 19 de Feb. de 2020
Ajay Pattassery
el 20 de Feb. de 2020
My Pleasure!
Fedi Chaarana
el 13 de Sept. de 2020
hallo
i would like to ask something similar since you seem to be well informed about this thema
i have a shapefile of a garden that i want to transform into an occupancy grid map
is there any way to do that ?
thanx
William Campbell
el 19 de Feb. de 2020
0 votos
Categorías
Más información sobre Motion Planning en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!