Copy this file into the directory where your
source code is located and name the file Makefile.
To complile the code in the file named lab10.cpp
type
make lab10
This should create an executable file named lab10.
Calgary is a linux box and can only create new windows on other linux boxes. So, be sure that you are ssh-ing from a Linux machine, not from a MS Windows machine.
The simulator is located in the directory and file named
/usr/local/Aria/bin/SRIsim
When this program starts, by default, it connects to TCP communication port 8101.
When you start the program be sure to change the port number.
Only one client program should connect to the simulator.
And, a communication port
can only be used by one simulator. Because it is likely that
someone else might be running a copy of the simulator on calgary,
you need to pick your own distinct port number that will be used
by your copy of the simulator server and your client program.
Pick a port number between 8000 and 8200, but don't use the
default port number of 8101.
To run the simulator on port 8080, type
/usr/local/Aria/bin/SRIsim -p 8080 &
If you ever forget the port number that you picked for your
copy of the simulator program, it is listed on the window's title.
Once you start the simulator, select "Load -> Params" and pick amigo. Then select "Load -> World" to load a virtual world.