A method for generating a map for augmented reality devices in an industrial facility comprising two or more subspaces (310, 320, 330), each sub space from the two or more sub spaces (310, 320, 330) comprising a plurality of anchors (311, 313, 316, 319, 350, 360, 363, 321, 323, 326, 341, 343, 339, 336, 333, 331), wherein the plurality of anchors of a corresponding sub space includes one or more anchors (350,360, 363, 319, 341, 343, 339) located in an area overlapping with another sub-space from the plurality of sub spaces (310, 320, 330), the method comprising: a. obtaining position information of a first subspace from the plurality of subspaces (310, 320, 330); b. determining a coordinate system for the first sub space based on the obtained position information and a plurality of anchors (319, 350, 360, 363, 316, 313, 311) of the first subspace; and c. calculating a relative position and an orientation of at least one neighboring subspace based on the determined coordinate system, for generating the map based on the position information of the first sub space and the relative position of the at least one neighboring subspace, wherein the at least one neighboring subspace includes one or more anchors (350, 360, 363) in an area overlapping the first subspace, calculating the relative position and the orientation of the at least one neighbouring subspace further comprises generating a graph associated with the two or more sub spaces (310, 320, 330), wherein the graph comprises a plurality of nodes (510, 520, 530, 540, 550, 560, 570, 575, 580, 590, 555) and edges, each node from the plurality of nodes (510, 520, 530, 540, 550, 560, 570, 575, 580, 590, 555) is associated with one of a sub space from the two or more sub spaces (310, 320, 330) and an anchor from a first set of anchors (319, 350, 360, 363, 341, 343, 339), wherein each anchor from the first set of anchors (319, 350, 360, 363, 341, 343, 339) is in at least one area overlapping a one sub space and another sub space from the two or more sub spaces (310, 320, 330), choosing a first sub space from the two or more sub spaces (310, 320, 330) as an initial sub space, and performing a depth-first search of the graph wherein performing the depth-first search includes calculating relative transforms of one or more sub spaces (320, 330) with respect to the first sub-space using one or more transform matrix multiplications. a. obtaining position information of a first subspace from the plurality of subspaces (310, 320, 330); b. determining a coordinate system for the first sub space based on the obtained position information and a plurality of anchors (319, 350, 360, 363, 316, 313, 311) of the first subspace; and c. calculating a relative position and an orientation of at least one neighboring subspace based on the determined coordinate system, for generating the map based on the position information of the first sub space and the relative position of the at least one neighboring subspace, wherein the at least one neighboring subspace includes one or more anchors (350, 360, 363) in an area overlapping the first subspace, generating a graph associated with the two or more sub spaces (310, 320, 330), wherein the graph comprises a plurality of nodes (510, 520, 530, 540, 550, 560, 570, 575, 580, 590, 555) and edges, each node from the plurality of nodes (510, 520, 530, 540, 550, 560, 570, 575, 580, 590, 555) is associated with one of a sub space from the two or more sub spaces (310, 320, 330) and an anchor from a first set of anchors (319, 350, 360, 363, 341, 343, 339), wherein each anchor from the first set of anchors (319, 350, 360, 363, 341, 343, 339) is in at least one area overlapping a one sub space and another sub space from the two or more sub spaces (310, 320, 330), choosing a first sub space from the two or more sub spaces (310, 320, 330) as an initial sub space, and performing a depth-first search of the graph wherein performing the depth-first search includes calculating relative transforms of one or more sub spaces (320, 330) with respect to the first sub-space using one or more transform matrix multiplications.