Changeset 330 in flair-src for trunk/tools/VrpnLite/src/main.cpp
- Timestamp:
- Sep 25, 2019, 3:29:26 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/VrpnLite/src/main.cpp
r308 r330 22 22 23 23 string xml_file; 24 string clientAddress,serverAddress;25 int port;24 string vrpnServerAddress; 25 int gcsPort,vrpnLitePort; 26 26 27 27 void parseOptions(int argc, char **argv); … … 32 32 FrameworkManager *manager; 33 33 manager = new FrameworkManager("vrpnforwarder"); 34 manager->SetupConnection("127.0.0.1", port);34 manager->SetupConnection("127.0.0.1", gcsPort); 35 35 manager->SetupUserInterface(xml_file); 36 36 37 VrpnLite* vrpnlite=new VrpnLite( clientAddress,serverAddress);37 VrpnLite* vrpnlite=new VrpnLite(vrpnLitePort,vrpnServerAddress); 38 38 39 39 vrpnlite->Start(); … … 47 47 CmdLine cmd("Command description message", ' ', "0.1"); 48 48 49 ValueArg< string> clientaddressArg("c", "caddress","client address", true,50 "127.0.0.1:3884", "string");51 cmd.add( clientaddressArg);49 ValueArg<int> vrpnLitePortArg("v", "vport","vrpn lite port", true, 50 3884, "int"); 51 cmd.add(vrpnLitePortArg); 52 52 53 53 ValueArg<string> serveraddressArg("s", "saddress","server address", true, … … 55 55 cmd.add(serveraddressArg); 56 56 57 ValueArg<int> portArg("p", "port","local port used to connect to the ground station",57 ValueArg<int> gcsPortArg("p", "port","local port used to connect to the ground station", 58 58 false, 9000, "int"); 59 cmd.add( portArg);59 cmd.add(gcsPortArg); 60 60 61 61 … … 66 66 cmd.parse(argc, argv); 67 67 68 clientAddress = clientaddressArg.getValue();69 serverAddress = serveraddressArg.getValue();70 port = portArg.getValue();68 vrpnLitePort = vrpnLitePortArg.getValue(); 69 vrpnServerAddress = serveraddressArg.getValue(); 70 gcsPort = gcsPortArg.getValue(); 71 71 xml_file = xmlArg.getValue(); 72 72
Note:
See TracChangeset
for help on using the changeset viewer.