Commit 73cd6ed6 authored by Sven Gestegård Robertz's avatar Sven Gestegård Robertz
Browse files

added readme

parent 42e65214
http_server.c: a simple example of socket communication, interfacing
to the Axis capture API and pthread programming.
A brief overview of the files:
camera.c : An interface towards the (fake or real) camera
fakecapture.c : Fake motion capture for use on the PC while testing
http_server.c : A http server getting images from the camera. Allows
testing of the capture code from a web browser.
Makefile : makefile for cross-compiling for the Axis camera
Makefile.fake : makefile for building the fake versions for testing
motion_client.c : a minimal example of a client connecting to the
motion server. Provided for illustration of the protocol.
motion_server.c : A proxy server written to decouple the push notification
interface of the Axis camera from the student code, by
providing a pull interface.
server_common.c : common routines and config
About the Makefile
Makefile is the file to use for cross-compiling to the Axis camera.
It is written to work in the computer labs, where the tools and
libraries are found under /usr/local/cs/rtp/ in the directories
under tools.
If compiling elsewhere, if you have the same directory structure as
in /usr/local/cs/rtp, you can use the variable COMMON_DIR to the
location of the compiler and libs.
On host, start the two server processes
> ./fake_server
> ./motion_server_host
The servers have a simple user interface.
For instance, if you type s (and press enter) it will print some status
information. See the code for details.
To close down the servers cleanly, type q (and press enter) in the
For this reason, it is recommended to run the servers in separate
Then, you can browse to localhost:9999 to get an image
and to localhost:9091 to get motion information
The motion client (which polls a motion server) is run
(with the default parameters of polling localhost every second) as
> ./motion_client
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment