robot_localisation/grid.py
def index_to_pose(self, id):
        """
        Convert a numerical index to corresponding pose.

        E.g. index_to_pose(5) = (0, 1, North) where North is a Heading
        """
        return (int((id / 4) // self.shape[1]),  # row
                int((id / 4) % self.shape[1]),  # column
                Heading(id % 4))

        Convert a numerical index to corresponding pose.

        E.g. index_to_pose(5) = (0, 1, North) where North is a Heading
        
Convert a numerical index to corresponding pose.
Convert a numerical index to corresponding pose .
def index_to_pose(self, id):
        return (int((id / 4) // self.shape[1]),  
                int((id / 4) % self.shape[1]),  
                Heading(id % 4))
def index_to_pose ( self , id ) : return ( int ( ( id / 4 ) // self . shape [ 1 ] ) , int ( ( id / 4 ) % self . shape [ 1 ] ) , Heading ( id % 4 ) )
Convert a numerical index to corresponding pose.
Convert a numerical index to corresponding pose .
"""
        Convert a numerical index to corresponding pose.

        E.g. index_to_pose(5) = (0, 1, North) where North is a Heading
        """ # row # column
self
id