Skip to content

Commit 55adb4a

Browse files
committed
Add manpages for fakenect and fakenect-record
Signed-off-by: Nicolas Bourdaud <nicolas.bourdaud@gmail.com>
1 parent bf5c87e commit 55adb4a

File tree

4 files changed

+75
-0
lines changed

4 files changed

+75
-0
lines changed

cmake_modules/SetupDirectories.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ MESSAGE (STATUS "${PROJECT_NAME} will be installed to ${CMAKE_INSTALL_PREFIX}")
1010
# Installation prefix for include files
1111
STRING (TOLOWER ${PROJECT_NAME} projectNameLower)
1212
SET (PROJECT_INCLUDE_INSTALL_DIR "include/${projectNameLower}")
13+
SET (PROJECT_MANPAGE_INSTALL_DIR "share/man")
1314

1415
IF (PROJECT_PROC_64BIT)
1516
SET (LIB_SUFFIX "64" CACHE STRING "Suffix for library installation directory")

fakenect/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ CONFIGURE_FILE("fakenect.sh.in"
2424
install (PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/fakenect.sh
2525
DESTINATION bin
2626
RENAME fakenect)
27+
28+
install(FILES fakenect.1 fakenect-record.1
29+
DESTINATION ${PROJECT_MANPAGE_INSTALL_DIR}/man1)

fakenect/fakenect-record.1

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
.TH FAKENECT-RECORD 1 2012-01-29 "libfreenect" "libfreenect manual"
2+
.SH NAME
3+
fakenect-record - program to save dumps from kinect to file
4+
.SH SYNOPSIS
5+
.SY fakenect-record
6+
.OP \-h
7+
.OP \-ffmpeg
8+
.OP \-ffmpeg-opts \fIoptions\fP
9+
.I outputdir
10+
.br
11+
.SH DESCRIPTION
12+
.LP
13+
\fBfakenect-record\fP dumps the output of the kinect in \fIoutputdir\fP
14+
folder. It saves the acceleration, depth, and rgb data as individual files
15+
with names in the form "TYPE-CURRENTIME-TIMESTAMP" where:
16+
.IP " *" 3
17+
TYPE is either (a)ccel, (d)epth, or (r)gb
18+
.IP " *" 3
19+
TIMESTAMP corresponds to the timestamp associated with the observation (or
20+
in the case of accel, the last timestamp seen)
21+
.IP " *" 3
22+
CURRENTTIME corresponds to a floating point version of the time in seconds.
23+
.LP
24+
The purpose of storing the current time is so that delays can
25+
be recreated exactly as they occurred. For RGB and DEPTH the dump is just
26+
the entirety of the data provided in PPM and PGM formats respectively (just
27+
a 1 line header above the raw dump). For ACCEL, the dump is the
28+
"freenect_raw_tilt_state". Only the front part of the file name is used,
29+
with the rest left undefined (extension, extra info, etc).
30+
.LP
31+
A file called INDEX.txt is also output with all of the filenames local to
32+
that directory to simplify the format (e.g., no need to read the directory
33+
structure).
34+
.LP
35+
Once started, the program will continue to acquire data from the kinect.
36+
When you want to stop it, hit Ctrl-C and the signal will be caught, runloop
37+
stopped, and everything will be stored cleanly.
38+
.SH OPTIONS
39+
.TP
40+
.B \-ffmpeg
41+
If present, send the the video stream to ffmpeg
42+
.
43+
.TP
44+
.B \-ffmpeg-opts \fIoptions\fP
45+
When using ffmpeg, specify the options to be used with it. If unspecified,
46+
it will use the options "\-aspect 4:3 \-r 20 \-vcodec msmpeg4 \-b 30000k"
47+
.
48+
.TP
49+
.B \-h
50+
Display the command-line help
51+
.SH "SEE ALSO"
52+
.BR fakenect (1)
53+

fakenect/fakenect.1

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.TH FAKENECT 1 2012-01-29 "libfreenect" "libfreenect manual"
2+
.SH NAME
3+
fakenect - Run a program by faking the Kinect
4+
.SH SYNOPSIS
5+
.SY fakenect
6+
.I database
7+
.I application
8+
.I args
9+
.br
10+
.SH DESCRIPTION
11+
.LP
12+
\fBfakenect\fP runs \fIapplication\fP with the arguments \fIargs\fP using
13+
the data contained in the folder \fIdatabase\fP. These data should have been
14+
recorded using \fIfakenect-record\fP(1).
15+
.SH "SEE ALSO"
16+
.BR fakenect-record (1)
17+
18+

0 commit comments

Comments
 (0)