omnet++ - How to use the takeScreenshot() method present in TraCICommandInterface.h? -


i trying simulation in omnet++ , have used veins , sumo in simulation, have got error:

model error: traci server reported error executing command 0xcc("view '#0' not known")..

i using header file tracicommandinterface.h , in using below mentioned class

class guiview { public: guiview(tracicommandinterface* traci, std::string viewid) : traci(traci), viewid(viewid) { connection = &traci->connection; } void setscheme(std::string name); void setzoom(double zoom); void setboundary(coord p1, coord p2); void takescreenshot(std::string filename = ""); protected: tracicommandinterface* traci; traciconnection* connection; std::string viewid; }; guiview guiview(std::string viewid) { return guiview(this, viewid); } 

i trying use takescreenshot() function in order first creating object of class using guiview guiview(std::string viewid). question viewid?

the viewid refers sumo window take screenshot of.

for example, this screenshot shows 5 views. visible in window titles names: here, called view #0 view #4.


Comments