Tags:
create new tag
, view all tags
Two functions have also been included for use with visualizing node connectivity and the virtual topology of the network in comparison to the actual topology. Both functions must be called manually by the user after the main program (Wisenet with the virtual localization option) has been run at least once.

draw_links.py reads in the physical locations of each node (phys_loc_table.csv) and the one-hop neighbour information (VL_onehop_XX.csv). It plots points where each node physically exists and will draw connections between neighbours with a distance of one hop, creating a 2D map of the network reflecting its physical state.

draw_links3d.py also reads in the one-hop information in a similar fashion and, after determining pairs of one-hop neighbours, will draw links between the 3D virtual coordinates forming a 3D map of the network. The map is displayed to the screen and camera orientation can be controlled by the user through the mouse. Holding the left mouse button and moving horizontally will rotate around the x-plane and moving vertically will rotate the y-plane display. Holding the right mouse button and moving vertically will rotate around the z-plane.

In both functions, holding the middle mouse button (the scroll wheel) and moving vertically will allow the user to zoom in or zoom out.

In order for these to run, the package Open.GL (PyOpenGL) must be installed so that GLUT can be used for 3D drawing. It is also helpful to have NumPy, freeglut3 and libgle3.

-- XiaohongWu - 2012-01-24

Topic revision: r2 - 2012-01-24 - XiaohongWu
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback