本文繼續(xù)翻譯 [Modules](http://rtv.github.io/Stage/modules.htm)。
World
Stage 仿真了一個由”模型“組成的”世界“,定義在"world file"中。
鏈接: World
World with Graphical User Interface
stage窗口包含菜單欄和模擬世界的視圖。
世界視圖顯示了模擬世界的一部分。 您可以放大和縮小視圖,并滾動它以查看更多的世界。 模擬的機器人裝置,障礙物等呈現(xiàn)為彩色多邊形。 世界視圖還可以顯示各種傳感器和執(zhí)行器模型的數(shù)據(jù)和配置的可視化。 “視圖”菜單具有控制呈現(xiàn)哪些數(shù)據(jù)和配置的選項。
API: Stg::WorldGui
window
(
size [ 400 300 ]
# camera options
center [ 0 0 ]
rotate [ 0 0 ]
scale 1.0
# perspective camera options
pcam_loc [ 0 -4 2 ]
pcam_angle [ 70 0 ]
# GUI options
show_data 0
show_flags 1
show_blocks 1
show_clock 1
show_footprints 0
show_grid 1
show_trailarrows 0
show_trailrise 0
show_trailfast 0
show_occupancy 0
show_tree 0
pcam_on 0
screenshots 0
)
libstageplugin - simulation driver for Player
libstageplugin是Player的一個插件,允許玩家客戶端訪問模擬機器人,就像它們是普通的播放器設備一樣。
鏈接: libstageplugin - simulation driver for Player