Frequently asked questions about Blocks World:
What are the things that I need to work on Blocks World
First of all make sure that you have a valid sod/abacus account
You need to write your version of the code in LISP programming language
- Get the blocks.l program
- Modify the blocks.l program according to the requirements of the assignment.
- Get the routines dump-vrml.l and load them into your program (load "dump-vrml.")
- Issue the script command to capture your run and run your program.
- As part of your run call the routines to dump out the current state of the
- Exit the lisp program and exit the script program ((bye) and exit).
- The file typescript now has information about the state of the world
when the (dump-vrml) command was issued.
- Run the to-vrml.sh command (./to-vrml.sh) to produce a temp.wrl file.
- To view this file, you will have to go to a Windows machine.
- Bring up the Netscape 4.? broswer and go to the file.
You need to use the ftp form for the URL.
You need to have the cosmoplayer plug-in on the local machine. Most of
the cluster machines have cosmoplayer plug-in already installed, so you
don't need to worry about this. But if your are working from your home
or any other computer make sure that you download the cosmoplayer plug-in
from the link given below:
After downloading the plug-in it is very important that
read the instructions on how to install
DO NOT try to download the plug-in on the x-windows/sod/cluster
What are the two versions of the Blocks World Program?
Command Line Version
Web based version
How do I work on my assignment with the command line version?
Copy the perl script comandver.pl
to a file in your sod/abacus account. Make sure that you have your "typescript"
file in the same directory. Run the perl program from the prompt by typing
"perl filename". The perl script takes the output from the file named "typescript"
and generates the VRML world into a file named "temp.wrl". You can view
the "temp.wrl" file in one of the cluster windows machines (Most of the
cluster machines have cosmoplayer plug-in already installed).
Open netscape browser and give the following URL:
(if using sod account)
(If using abacus account)
where username = your own user name
for eg: ftp://firstname.lastname@example.org/home/juell/
Then choose the appropriate directory in which you have the "temp.wrl"
and then click on it to see the world.
You don't have to specifically give cb02. This signifies that you are
connected to the 02 machine in the sod cluster. You can give any one of
the machines from 01 to 12.
You cannot view the VRML world on the x-windows/sod machines as they
do not have the VRML plug-in and neither can you install it.
How do I work on my assignment with the Web-Based version?
The other version of this tool is a web-based version. In this the
user can submit his output on-line and the CGI script takes this output
and generates the VRML world in the same way as the perl script does it.
FTP your typescript file from your sod/abacus account into the local machine.
Click on the link given below to open up the web based interface:
Submit the typescript (output) file by clicking on browse button and
then click on submit button. View the VRML file by clicking on the Show_VRML
Return to Home Page