57 #include "rnr/rnrconfig.h" 58 #include "rnr/units.h" 158 #define KUON_VERSION(major, minor, revision) \ 159 ((((major)&0xff)<<24) | (((minor)&0xff)<<16) | ((revision)&0xffff)) 168 #define KUON_VER_MAJOR(ver) (((ver)>>24) &0xff) 177 #define KUON_VER_MINOR(ver) (((ver)>>16) &0xff) 186 #define KUON_VER_REV(ver) ((ver) & 0xffff) 204 #ifdef KUON_IMAGE_DIR 207 const char*
const KuonImageDir =
"/usr/local/share/Kuon/images";
217 const char*
const KuonIconDir =
"/usr/local/share/Kuon/images/icons";
225 const char*
const KuonEtcCfg = KUON_ETC_CFG;
227 const char*
const KuonEtcCfg =
"/etc/kuon/kuon.conf";
237 const char*
const KuonXslUrl =
238 "http://roadnarrows.com/xml/Kuon/1.0/kuon.xsl";
248 const char*
const KuonXsiUrl =
249 "http://roadnarrows.com/xml/Kuon/1.0/kuon.xsd";
256 #ifdef KUON_DEV_MOTOR_CTLR_0 260 const char*
const KuonDevMotorCtlr0 =
"/dev/kmot0";
267 #ifdef KUON_DEV_MOTOR_CTLR_1 271 const char*
const KuonDevMotorCtlr1 =
"/dev/kmot1";
278 #ifdef KUON_BAUDRATE_MOTOR_CTLR 282 const int KuonBaudRateMotorCtlr = 38400;
static const int KUON_ECODE_NO_RSRC
no resource available error
static const int KuonMotorIdLR
left rear
static const int KuonMotorIdLF
left front
static const int KUON_ECODE_COLLISION
robot link(s) in collision
const char *const KuonXsiUrl
xml schema instance url
const char *const KuonImageDir
image directory
static const int KUON_ALARM_NONE
no alarms
static const int KUON_OK
not an error, success
static const int KUON_ECODE_RANGE
value out-of-range
static const int KuonMotorIdRR
right rear
const char *const KuonDevMotorCtlr1
motor controller 1 device name
idle, no async task running
static const int KUON_ECODE_BUSY
resource busy error
static const int KUON_ECODE_FORMAT
bad format
KuonAsyncTaskState
Asynchronous task state.
static const int KUON_ALARM_VOLTAGE
under/over voltage
static const int KUON_ECODE_XML
XML error.
static const int KUON_ECODE_BAD_VAL
bad value general error
static const int KuonProdIdUnknown
unknown/undefined product id
static const int KUON_ECODE_NO_EXEC
cannot execute error
KuonTriState
<b><i>Kuon</i></b> tri-state type.
The <b><i>Kuon</i></b> namespace encapsulates all <b><i>Kuon</i></b> related constructs.
const char *const KuonProdModelNarrow
narrow model
static const int KUON_ECODE_INTERNAL
internal error (bug)
static const int KUON_ECODE_PERM
no permissions error
static const int KUON_ALARM_COMM
communication
static const int KUON_ECODE_NO_DEV
device not found error
can only be operated locally, not remotely
static const int KUON_ECODE_TIMEDOUT
operation timed out error
static const int KUON_ECODE_SYS
system (errno) error
KuonRobotMode
<b><i>Kuon</i></b> mode of operation.
static const int KUON_ECODE_TOO_BIG
value/list/size too big
static const int KUON_ECODE_BADEC
bad error code
static const int KuonMotorIdNone
no motor id
static const int KUON_ECODE_GEN
general, unspecified error
const int KuonBaudRateMotorCtlr
motor controllers baud rate
static const int KuonMotorDirUnknown
unknown
static const int KUON_ALARM_TEMP
under/over temperature
const char *const KuonXslUrl
xml configuration file
static const int KUON_ECODE_TOO_SMALL
value/list/size too small
static const int KUON_ECODE_MOT_CTLR
motor controller error
const char *const KuonDevMotorCtlr0
motor controller 0 device name
const char *const KuonProdModelStd
standard model
static const int KUON_ECODE_BATT
battery error
static const int KuonMotorCtlrIdNone
no motor controller id
static const int KUON_ECODE_ALARMED
robot is alarmed
static const int KuonProdIdNarrow
narrow Kuon product id
static const int KUON_ECODE_NUMOF
number of error codes
static const int KUON_ECODE_MOTOR
motor error
static const int KUON_ECODE_NO_FILE
file not found
static const int KUON_ECODE_ESTOP
robot emergency stopped
static const int KUON_ECODE_BOTSENSE
botsense error
static const int KuonMotorCtlrId0
motor controller id 0
static const int KUON_ECODE_INTR
operation interrupted
static const int KuonProdIdStd
standard Kuon product id
static const int KUON_ECODE_BAD_OP
invalid operation error
static const int KuonMotorIdRF
right front
static const int KuonMotorCtlrId1
motor controller id 1
static const int KuonMotorDirCcw
counter-clockwise
const char *const KuonIconDir
icon directory
const char *const KuonProdFamily
product family name
static const int KuonMotorDirCw
clockwise