Fast Research Interface Library  Manual and Documentation
Enumerations | Functions | Variables
src/QNXAbstraction/QNXAbstraction.cpp File Reference

Implementation file containing OS-specific functions (QNX) More...

#include <OSAbstraction.h>
#include <stdio.h>
#include <time.h>
#include <string.h>
#include <stdlib.h>
#include <termios.h>
#include <unistd.h>

Go to the source code of this file.

Enumerations

enum  { RESET, RAW }

Functions

int DisableSingleCharacterInput ()
 

int EnableSingleCharacterInput (void)
unsigned char WaitForKBCharacter (bool *Abort)
 Waits for one single keyboard stroke.
unsigned char CheckForKBCharacter (void)
 Checks for one single keyboard stroke.
float GetSystemTimeInSeconds (const bool &Reset)
 Returns a time value in seconds.

Variables

static struct termios termattr save_termattr
static int ttysavefd = -1
static bool GetSystemTimeInSecondsCalledFirstTime = true
struct timespec StoredSystemTimeInSeconds
static enum { ... }  ttystate

Detailed Description

Implementation file containing OS-specific functions (QNX)




Stanford University
Department of Computer Science
Artificial Intelligence Laboratory
Gates Computer Science Building 1A
353 Serra Mall
Stanford, CA 94305-9010
USA

http://cs.stanford.edu/groups/manips

Date:
August 2010
Version:
0.1
Author:
Torsten Kroeger, tkr@s.nosp@m.tanf.nosp@m.ord.e.nosp@m.du
Note:
Copyright (C) 2010 Stanford University.

Definition in file QNXAbstraction.cpp.


Enumeration Type Documentation

anonymous enum
Enumerator:
RESET 
RAW 

Definition at line 67 of file QNXAbstraction.cpp.


Function Documentation

unsigned char CheckForKBCharacter ( void  )

Checks for one single keyboard stroke.

The function returns immediately.

Returns:
  • Value of the pressed key
  • 255 if no key was pressed
See also:
WaitForKBCharacter()

Definition at line 205 of file QNXAbstraction.cpp.


float GetSystemTimeInSeconds ( const bool &  Reset)

Returns a time value in seconds.

Operating system independent function to return the value of the system time in seconds.

Parameters:
ResetIf this flag is set, the value of this system time will be set to zero.
Returns:
The value of the system time in seconds.

Definition at line 230 of file QNXAbstraction.cpp.

unsigned char WaitForKBCharacter ( bool *  Abort)

Waits for one single keyboard stroke.

The function returns after the stroke or if Abort becomes set. If Abort is set at the call of the function, the function only checks once, if a key has been pressed.

Parameters:
AbortPointer to a boolean values, which lets the function terminate
Returns:
  • Value of the pressed key
  • 255 if no key was pressed
See also:
CheckForKBCharacter()

Definition at line 147 of file QNXAbstraction.cpp.


Variable Documentation

Definition at line 56 of file QNXAbstraction.cpp.

struct termios termattr save_termattr [static]

Definition at line 51 of file QNXAbstraction.cpp.

struct timespec StoredSystemTimeInSeconds

Definition at line 58 of file QNXAbstraction.cpp.

int ttysavefd = -1 [static]

Definition at line 54 of file QNXAbstraction.cpp.

enum { ... } ttystate [static]
This document was generated with Doxygen on Thu Apr 12 2012 11:18:54. User documentation of the Fast Research Interface Library for the KUKA Lightweight Robot IV by the Stanford Robotics Research Group. Copyright 2010–2012.