creating a map from laser scan
i am going to make my own map code in python using the math of occupancy grid mapping (not the ready packages such as gmapping), and then i use the node for mapping the gazebo environment using turtlebot3. i will be appreciated if someone has the occupancy grid mapping python code, and how can i illustrate the map published via the node in rviz? thank you in advance.