fawkes Namespace Reference

Fawkes library namespace. More...


Classes

class  BatteryInterface
 BatteryInterface Fawkes BlackBoard Interface. More...
class  FacerInterface
 FacerInterface Fawkes BlackBoard Interface. More...
class  FacialExpressionInterface
 FacialExpressionInterface Fawkes BlackBoard Interface. More...
class  GameStateInterface
 GameStateInterface Fawkes BlackBoard Interface. More...
class  HumanoidMotionInterface
 HumanoidMotionInterface Fawkes BlackBoard Interface. More...
class  JoystickInterface
 JoystickInterface Fawkes BlackBoard Interface. More...
class  KatanaInterface
 KatanaInterface Fawkes BlackBoard Interface. More...
class  KickerInterface
 KickerInterface Fawkes BlackBoard Interface. More...
class  Laser360Interface
 Laser360Interface Fawkes BlackBoard Interface. More...
class  Laser720Interface
 Laser720Interface Fawkes BlackBoard Interface. More...
class  LedInterface
 LedInterface Fawkes BlackBoard Interface. More...
class  LocalizerControlInterface
 LocalizerControlInterface Fawkes BlackBoard Interface. More...
class  MotorInterface
 MotorInterface Fawkes BlackBoard Interface. More...
class  NavigatorInterface
 NavigatorInterface Fawkes BlackBoard Interface. More...
class  ObjectPositionInterface
 ObjectPositionInterface Fawkes BlackBoard Interface. More...
class  PanTiltInterface
 PanTiltInterface Fawkes BlackBoard Interface. More...
class  Position2DTrackInterface
 Position2DTrackInterface Fawkes BlackBoard Interface. More...
class  SkillerDebugInterface
 SkillerDebugInterface Fawkes BlackBoard Interface. More...
class  SkillerInterface
 SkillerInterface Fawkes BlackBoard Interface. More...
class  SoccerPenaltyInterface
 SoccerPenaltyInterface Fawkes BlackBoard Interface. More...
class  SpeechRecognitionInterface
 SpeechRecognitionInterface Fawkes BlackBoard Interface. More...
class  SpeechSynthInterface
 SpeechSynthInterface Fawkes BlackBoard Interface. More...
class  SwitchInterface
 SwitchInterface Fawkes BlackBoard Interface. More...
class  TestInterface
 TestInterface Fawkes BlackBoard Interface. More...
class  VisualDisplay2DInterface
 VisualDisplay2DInterface Fawkes BlackBoard Interface. More...
class  BlackBoardAspect
 Thread aspect to access to BlackBoard. More...
class  BlockedTimingExecutor
 Blocked timing executor. More...
class  BlockedTimingAspect
 Thread aspect to use blocked timing The Fawkes main application provides basic means to synchronize all running thread with respect to several given hooks (see WakeupHook). More...
class  ClockAspect
 Thread aspect that allows to obtain the current time from the clock. More...
class  ConfigurableAspect
 Thread aspect to access configuration data. More...
class  FawkesNetworkAspect
 Thread aspect to participate in the Fawkes Network protocol. More...
class  AspectIniFin
 Fawkes Aspect Initializer/Finalizer. More...
class  LoggerEmployer
 Logger employer The LoggerEmployer shall pipe all log messages of the system to added loggers. More...
class  LoggerAspect
 Thread aspect that allows to provide a logger to Fawkes. More...
class  LoggingAspect
 Thread aspect to log output. More...
class  MainLoopEmployer
 Main loop employer The MainLoopEmployer calls the main loop for execution. More...
class  MainLoopAspect
 Thread aspect that allows to replace the main loop of the main application of Fawkes. More...
class  NetworkAspect
 Thread aspect for network communication. More...
class  PluginDirectorAspect
 Thread aspect to access the PluginManager. More...
class  ThreadProducerAspect
 Aspect for thread producing threads. More...
class  TimeSourceAspect
 Thread aspect that allows to provide a time source to the Fawkes clock. More...
class  VisionAspect
 Thread aspect to use in FireVision apps. More...
class  VisionMasterAspect
 Vision Master Aspect. More...
class  BlackBoard
 The BlackBoard. More...
class  BlackBoardMemMgrInvalidPointerException
 A NULL pointer was supplied where not allowed. More...
class  BBInconsistentMemoryException
 Thrown when BlackBoard memory has been corupted This exception is thrown by the memory manager if the memory has been corrupted, for example if there are bytes that belong to neither a free chunk nor a allocated chunk. More...
class  BBNotMasterException
 Thrown if BlackBoard is not master and master operation has been requested. More...
class  BBMemMgrCannotOpenException
 Thrown if shared memory could not be opened. More...
class  BlackBoardInterfaceNotFoundException
 Thrown if no definition of interface or interface generator found. More...
class  BlackBoardInterfaceVersionMismatchException
 Thrown if versions do not match. More...
class  BlackBoardWriterActiveException
 Thrown if a writer is already active on an interface that writing has been requested for. More...
class  BlackBoardNoMasterAliveException
 Thrown if BlackBoard is opened as non-master with no master alive. More...
class  BlackBoardNoWritingInstanceException
 Thrown if no writer interface is alive. More...
class  BlackBoardInterfaceListener
 BlackBoard interface listener. More...
class  BlackBoardInterfaceObserver
 BlackBoard interface observer. More...
class  BlackBoardInstanceFactory
 BlackBoard instance factory. More...
class  BlackBoardInterfaceManager
 BlackBoard interface manager. More...
struct  interface_header_t
 This struct is used as header for interfaces in memory chunks. More...
struct  chunk_list_t
 Chunk lists as stored in BlackBoard shared memory segment. More...
class  BlackBoardMemoryManager
 BlackBoard memory manager. More...
class  BlackBoardMessageManager
 BlackBoard message manager. More...
class  BlackBoardNotifier
 BlackBoard notifier. More...
class  LocalBlackBoard
 Local BlackBoard. More...
class  BlackBoardNetworkHandler
 BlackBoard Network Handler. More...
class  BlackBoardInterfaceListContent
 BlackBoard interface list content. More...
class  BlackBoardNetHandlerInterfaceListener
 Interface listener for network handler. More...
class  BlackBoardInterfaceProxy
 Interface proxy for remote BlackBoard. More...
struct  bb_ilist_msg_t
 Message to transport a list of interfaces. More...
struct  bb_iopen_msg_t
 Message to identify an interface on open. More...
struct  bb_iinfo_msg_t
 Message for interface info. More...
struct  bb_iserial_msg_t
 Message to identify an interface instance. More...
struct  bb_ieventserial_msg_t
 Message to identify an two interface instances. More...
struct  bb_iopensucc_msg_t
 Interface open success The serial denotes a unique instance of an interface within the (remote) BlackBoard. More...
struct  bb_iopenfail_msg_t
 Message to send update data. More...
struct  bb_idata_msg_t
 Interface data message. More...
struct  bb_imessage_msg_t
 Interface message. More...
class  RemoteBlackBoard
 Remote BlackBoard. More...
class  BlackBoardSharedMemoryHeader
 BlackBoard Shared Memory Header. More...
class  BlackBoardSharedMemoryLister
 BlackBoard shared memory lister. More...
class  ConfigurationChangeHandler
 Interface for configuration change handling. More...
class  ConfigurationException
 Generic configuration exception. More...
class  ConfigEntryNotFoundException
 Thrown if a config entry could not be found. More...
class  ConfigTypeMismatchException
 Thrown if there a type problem was detected for example if you tried to query a float with get_int(). More...
class  CouldNotOpenConfigException
 Thrown if config could not be opened. More...
class  Configuration
 Interface for configuration handling. More...
class  ConfigNetworkHandler
 Fawkes Configuration Network Handler. More...
class  ConfigListContent
 Config list content. More...
struct  config_descriptor_t
 Basic config descriptor. More...
struct  config_getval_msg_t
 Get value message. More...
struct  config_invval_msg_t
 Invalid value request message. More...
struct  config_erase_value_msg_t
 Erase value request. More...
struct  config_value_erased_msg_t
 Value erased message. More...
struct  config_float_value_msg_t
 Float value message. More...
struct  config_uint_value_msg_t
 Unsigned int value message. More...
struct  config_int_value_msg_t
 Integer value message. More...
struct  config_bool_value_msg_t
 Boolean value message. More...
struct  config_string_value_msg_t
 String value message. More...
struct  config_comment_msg_t
 Comment message. More...
struct  config_tag_msg_t
 Tag message. More...
struct  config_list_msg_t
 Config list message. More...
struct  config_list_entity_header_t
 Config list entity header. More...
struct  config_list_float_entity_t
 Config list float entity. More...
struct  config_list_uint_entity_t
 Config list unsigned int entity. More...
struct  config_list_int_entity_t
 Config list int entity. More...
struct  config_list_bool_entity_t
 Config list bool entity. More...
struct  config_list_string_entity_t
 Config list string entity. More...
struct  config_list_comment_entity_t
 Config list comment entity. More...
class  CannotEnableMirroringException
 Thrown if enabling mirror mode failed. More...
class  NetworkConfiguration
 Remote configuration via Fawkes net. More...
class  SQLiteConfiguration
 Configuration storage using SQLite. More...
class  Exception
 Base class for exceptions in Fawkes. More...
class  NullPointerException
 A NULL pointer was supplied where not allowed. More...
class  DivisionByZeroException
 Division by zero. More...
class  TypeMismatchException
 Type mismatch. More...
class  UnknownTypeException
 Unknown type. More...
class  DestructionInProgressException
 Delete in progress. More...
class  NotLockedException
 Operation on unlocked object. More...
class  NonPointerTypeExpectedException
 Non-pointer type expected. More...
class  MissingParameterException
 Expected parameter is missing. More...
class  IllegalArgumentException
 Expected parameter is missing. More...
class  OutOfBoundsException
 Index out of bounds. More...
class  AccessViolationException
 Access violates policy. More...
class  SyntaxErrorException
 Syntax error. More...
class  NotImplementedException
 Called method has not been implemented. More...
class  OutOfMemoryException
 System ran out of memory and desired operation could not be fulfilled. More...
class  InterruptedException
 The current system call has been interrupted (for instance by a signal). More...
class  TimeoutException
 The current system call has timed out before completion. More...
class  CouldNotOpenFileException
 File could not be opened. More...
class  FileReadException
 File could not be read. More...
class  FileWriteException
 Could not write to file. More...
class  Plugin
 Plugin interface class. More...
class  Barrier
 A barrier is a synchronization tool which blocks until a given number of threads have reached the barrier. More...
class  InterruptibleBarrier
 A barrier is a synchronization tool which blocks until a given number of threads have reached the barrier. More...
class  Mutex
 Mutex mutual exclusion lock. More...
class  MutexLocker
 Mutex locking helper. More...
class  ReadWriteLock
 Read/write lock to allow multiple readers but only a single writer on the resource at a time. More...
class  RefCountRWLock
 Read/write lock with reference counting. More...
class  Spinlock
 Spin lock. More...
class  Thread
 Thread class encapsulation of pthreads. More...
class  ThreadCollector
 Thread collector. More...
class  CannotFinalizeThreadException
 Thread cannot be finalized. More...
class  ThreadFinalizer
 Thread finalizer interface. More...
class  CannotInitializeThreadException
 Thread cannot be initialized. More...
class  ThreadInitializer
 Thread initializer interface. More...
class  ThreadListSealedException
 Thread list sealed exception. More...
class  ThreadListNotSealedException
 Thread list not sealed exception. More...
class  ThreadList
 List of threads. More...
class  ThreadNotificationListener
 Thread notification listener interface. More...
class  WaitCondition
 Wait until a given condition holds. More...
class  LockHashMap
 Hash map with a lock. More...
class  LockHashSet
 Hash set with a lock. More...
class  LockList
 List with a lock. More...
class  LockMap
 Map with a lock. More...
class  LockQueue
 Queue with a lock. More...
class  LockSet
 Set with a lock. More...
class  RefCount
 Reference counting base class. More...
class  RefPtr
 RefPtr<> is a reference-counting shared smartpointer. More...
class  RWLockList
 List with a read/write lock. More...
class  RWLockMap
 Hash map with a lock. More...
class  RWLockQueue
 Queue with a read/write lock. More...
class  Bezier
class  BezierDrawer
 Drawer for Bezier objects. More...
class  DrawingManipulator
 Allows to control some aspects of the rendering of objects. More...
class  GeomDrawer
 Abstract base class for all drawer classes. More...
class  GeomDrawingArea
class  HomPointDrawer
 Drawer for HomPoint objects. More...
class  HomVectorDrawer
 Drawer for HomVector objects. More...
class  LineSegmentDrawer
 Drawer for LineSegment objects. More...
class  SplineDrawer
 Drawer for Spline objects. More...
class  HomCoord
 Base class for homogeneous primitives (vector and point). More...
class  HomPoint
 A homogeneous point. More...
class  HomPolar
 A homogeneous representation of a polar coordinate. More...
class  HomPose
 A homogeneous pose combines a position with an orienation in space. More...
class  HomPose2d
 A 2-dimensional pose, i.e. More...
class  HomTransform
 This class describes a homogeneous transformation. More...
class  HomVector
 A homogeneous vector. More...
class  Line
 Well, what can one say about a straight line? More...
class  LineSegment
class  Matrix
 A general matrix class. More...
class  Printable
class  Spline
class  Transformable
class  Vector
 A simple column vector. More...
class  AvahiDispatcher
 Avahi dispatcher. More...
class  ConnectionDispatcher
 Watches network client events and dispatches them as signals. More...
class  InterfaceDispatcher
 Interface listener with dispatcher. More...
class  LogView
 Log View widget. More...
class  PluginTreeView
 A TreeView class to list available plugins und trigger their loading/unloading. More...
class  AllemaniACsAtHomeCairoRobotDrawer
 Draw AllemaniACs AtHome robot. More...
class  CairoRobotDrawer
 Robot drawing interface. More...
class  ServiceChooserDialog
 Service chooser dialog. More...
class  ServiceModel
 Abstract base class for widgets that allow to view the detected services of a certain type. More...
class  ServiceSelectorCBE
 This widget consists of a Gtk::ComboBoxEntry and a Gtk::Button. More...
class  Throbber
 Simple Gtk Throbber/Spinner. More...
class  TwoLinesCellRenderer
 Gtk cell renderer for two lines of text in a cell. More...
class  InterfaceFieldIterator
 Interface field iterator. More...
class  InterfaceFieldPointer
 Direct pointer to an interface field. More...
class  InterfaceWriteDeniedException
 This exception is thrown if a write has been attempted on a read-only interface. More...
class  InterfaceMessageEnqueueException
 This exception is thrown if a write has been attempted on a read-only interface. More...
class  InterfaceInvalidMessageException
 This exception is thrown if a message has been queued in the interface which is not recognized by the interface. More...
class  InterfaceInvalidException
 This exception is thrown if an interface is invalid and it is attempted to call read()/write(). More...
class  Interface
 Base class for all Fawkes BlackBoard interfaces. More...
class  InterfaceInfo
 Interface info. More...
class  InterfaceInfoList
 Interface information list. More...
class  InterfaceMediator
 Interface mediator interface. More...
class  MessageMediator
 Message mediator interface. More...
class  Message
 Base class for all messages passed through interfaces in Fawkes BlackBoard. More...
class  MessageAlreadyQueuedException
 Message already enqueued exception. More...
class  MessageQueue
 Message queue used in interfaces. More...
struct  interface_fieldinfo_t
 Interface field info list. More...
class  LuaContext
 Lua C++ wrapper. More...
class  LuaContextWatcher
 Lua context watcher. More...
class  LuaRuntimeException
 Lua runtime exception. More...
class  LuaErrorException
 Lua error exception. More...
class  LuaInterfaceImporter
 Lua interface importer. More...
class  LuaTriggerManager
 Lua Trigger Manager. More...
class  AvahiResolverHandler
 Avahi resolver handler interface. More...
class  AvahiThread
 Avahi main thread. More...
class  FawkesNetworkClientSendThread
 Fawkes network client send thread. More...
class  FawkesNetworkClientRecvThread
 Fawkes network client receive thread. More...
class  HandlerAlreadyRegisteredException
 Client handler has already been registered. More...
class  FawkesNetworkClient
 Simple Fawkes network client. More...
class  FawkesNetworkClientHandler
 Message handler for FawkesNetworkClient. More...
class  FawkesNetworkHandler
 Network handler abstract base class. More...
class  FawkesNetworkHub
 Fawkes Network Hub. More...
struct  fawkes_message_header_t
 Fawkes network message header. More...
struct  fawkes_message_t
 Message as stored in local queues. More...
struct  fawkes_transfer_header_t
 Fawkes transfer header. More...
class  FawkesNetworkMessageTooBigException
 The given message size exceeds the limit. More...
class  FawkesNetworkMessage
 Representation of a message that is sent over the network. More...
class  FawkesNetworkMessageContent
 Fawkes network message content. More...
class  FawkesNetworkMessageQueue
 A LockQueue of FawkesNetworkMessage to hold messages in inbound and outbound queues. More...
class  FawkesNetworkServerClientSendThread
 Sending thread for a Fawkes client connected to the server. More...
class  FawkesNetworkServerClientThread
 Fawkes Network Client Thread for server. More...
class  FawkesNetworkServerThread
 Fawkes Network Thread. More...
class  FawkesNetworkTransceiver
 Fawkes Network Transceiver. More...
class  ServiceBrowseHandler
 Interface for class that process browse results. More...
class  DummyServiceBrowser
 Dummy Service browser. More...
class  DummyServicePublisher
 Dummy service publisher interface. More...
class  NetworkService
 Representation of a service announced or found via service discovery (i.e. More...
class  ServiceBrowser
 Service browser. More...
class  ServicePublisher
 Service publisher interface. More...
class  DatagramSocket
 Datagram socket. More...
class  BroadcastDatagramSocket
 Broadcast datagram socket. More...
class  MulticastDatagramSocket
 Multicast datagram socket. More...
class  SocketException
 Socket exception. More...
class  Socket
 Socket base class. More...
class  StreamSocket
 TCP stream socket over IP. More...
class  NetworkAcceptorThread
 Network Acceptor Thread. More...
struct  dynamic_list_t
 Dynamic list type. More...
class  DynamicBuffer
 Dynamically growing buffer. More...
class  ConnectionDiedException
 Thrown if the connection died during an operation. More...
class  NetworkIncomingConnectionHandler
 Interface for handling incoming connections. More...
class  NetworkLogger
 Interface for logging to network clients. More...
class  NetworkLoggerMessageContent
 Message sent over the network with a log message. More...
class  NetworkNameResolver
 Network name and address resolver. More...
class  NetworkNameResolverThread
 Worker thread for NetworkNameResolver. More...
class  StringContent
 Content for a variable length string. More...
class  MessageDecryptionException
 Message decryption failed. More...
class  WorldInfoMessageDecryptor
 WorldInfo message decryptor. More...
class  MessageEncryptionException
 Message encryption failed. More...
class  WorldInfoMessageEncryptor
 WorldInfo message encryptor. More...
class  WorldInfoHandler
 World info handler. More...
struct  worldinfo_message_header_t
 Per-message header. More...
struct  worldinfo_header_t
 World info header. More...
struct  worldinfo_pose_message_t
 Robot pose message. More...
struct  worldinfo_velocity_message_t
 Robot velocity message. More...
struct  worldinfo_relballpos_message_t
 Relative ball position message. More...
struct  worldinfo_globballpos_message_t
 Global ball position message. More...
struct  worldinfo_relballvelo_message_t
 Relative ball velocity message. More...
struct  worldinfo_globballvelo_message_t
 Global ball velocity message. More...
struct  worldinfo_opppose_message_t
 Opponent message. More...
struct  worldinfo_oppdisappeared_message_t
 Opponent disappeared. More...
struct  worldinfo_fat_message_t
 Fat worldinfo message. More...
struct  worldinfo_gamestate_message_t
 Game state message. More...
struct  worldinfo_penalty_message_t
 Penalty message. More...
class  WorldInfoException
 Thrown on critical errors in world info handling. More...
class  WorldInfoTransceiver
 Class to send and receive world information. More...
class  PluginManagerListener
 PluginManager listener. More...
class  PluginLoadException
 This exception is thrown if the requested plugin could not be loaded. More...
class  PluginUnloadException
 This exception is thrown if the requested plugin could not be unloaded. More...
class  PluginLoader
 This class manages plugins. More...
class  PluginManager
 Fawkes Plugin Manager. More...
class  PluginNetworkHandler
 Fawkes Plugin Network Handler. More...
class  PluginListMessage
 Plugin list message. More...
struct  plugin_load_msg_t
 Load plugin message. More...
struct  plugin_unload_msg_t
 Unload plugin message. More...
struct  plugin_loaded_msg_t
 Plugin loaded message. More...
struct  plugin_load_failed_msg_t
 Plugin load failed. More...
struct  plugin_unload_failed_msg_t
 Plugin unload failed. More...
struct  plugin_unloaded_msg_t
 Plugin unloaded message. More...
struct  plugin_list_msg_t
 Plugin list message. More...
class  DependencyViolationException
 Dependency violation exception. More...
class  OneToManyDependency
 One-to-Many dependency constraint. More...
class  UniquenessViolationException
 Uniqueness violation exception. More...
class  UniquenessConstraint
 Uniqueness constraint. More...
class  IPCMessageQueue
 IPC message queue. More...
class  MessageTooBigException
 Message did not fit into buffer. More...
class  SemInvalidException
 Semaphore or semaphore set invalid. More...
class  SemCannotLockException
 Cannot lock semaphore. More...
class  SemCannotUnlockException
 Cannot unlock semaphore. More...
class  SemCannotSetValException
 Cannot set value on semaphore. More...
class  SemaphoreSet
 IPC semaphore set. More...
class  SharedMemoryHeader
 Interface for shared memory header. More...
class  SharedMemory
 Shared memory segment. More...
class  ShmCouldNotAttachException
 Could not attach to shared memory segment. More...
class  ShmNoHeaderException
 No shared memory header set before attach(). More...
class  ShmInconsistentSegmentSizeException
 Memory size does not match. More...
class  ShmDoesNotExistException
 Shared memory segment does not exist. More...
class  ShmCouldNotAttachAddrDepException
 The shared memory is set adress-dependend but could not be opened at the appropriate address. More...
class  ShmAddrOutOfBoundsException
 The address points out of the shared memory. More...
class  ShmPtrOutOfBoundsException
 The pointer does not point inside the shared memory. More...
class  SharedMemoryLister
 Format list output for shared memory segments. More...
class  KalmanFilter1D
 One-dimensional Kalman filter implementation for single-precision floats. More...
class  CacheLogger
 Logging Cache. More...
class  ComponentLogger
 Component logger. More...
class  ConsoleLogger
 Interface for logging to stderr on console. More...
class  UnknownLoggerTypeException
 Unknown logger type exception. More...
class  LoggerFactory
 Logger factory. More...
class  FileLogger
 Interface for logging to a specified file. More...
class  LibLogger
 Library logger. More...
class  Logger
 Interface for logging. More...
class  MultiLogger
 Log through multiple loggers. More...
class  BinomialCoefficient
 Contains method to compute the binomial coefficient. More...
class  Interpolator
 Value interpolator. More...
class  LinearInterpolator
 Linear value interpolator. More...
class  SinusoidalInterpolator
 Sinusoidal value interpolator. More...
struct  point_t
 Point with cartesian coordinates as unsigned integers. More...
struct  cart_coord_2d_t
 Cartesian coordinates. More...
struct  polar_coord_2d_t
 Polar coordinates. More...
struct  extent_2d_t
 Rectangular extent with unsigne integers. More...
struct  rectangle_t
 Rectangle (unsigned integers). More...
struct  field_pos_t
 Position on the field. More...
struct  field_line_struct
 Describes a field line. More...
struct  arc_struct
 Defines an arc (or circle). More...
struct  point_6D_struct
 Defines a point with 6-degrees of freedom. More...
class  MemAutoFree
 Automatically free memory on destruction. More...
class  StringEquality
 String equality checker. More...
class  StringLess
 String less than test. More...
class  StringConversions
 Utility class that holds string methods. More...
class  AStar
 This is an implementation of the A* search algorithm. More...
class  AStarState
 This is the abstract(!) class for an A* State. More...
class  UnknownArgumentException
 Thrown if unknown argument was supplied. More...
class  MissingArgumentException
 Thrown if required argument was missing. More...
class  ArgumentParser
 Parse command line arguments. More...
class  ModuleOpenException
 Opening a module failed. More...
class  Module
 Interface representing a dynamically loaded software module. More...
class  ModuleDL
 A Module implementation for the dl dynamic loader library that comes with glibc, applicable for Linux Systems. More...
class  ModuleManager
 Manager interface to load and unload modules, keeps track of loaded modules and does not reload modules if they are already loaded. More...
class  ModuleManagerFactory
 Class with just one static method to retrieve a module manager for the specified type. More...
class  ModuleManagerTemplate
 Manager to load and unload modules, keeps track of loaded modules and does not reload modules if they are already loaded This implementation is a simple template that takes the Module implementation class name as its template parameter. More...
class  FamListener
 File Alteration Monitor Listener. More...
class  FileAlterationMonitor
 Monitors files for changes. More...
class  FamThread
 FileAlterationMonitor thread wrapper. More...
class  UnableToOpenFileException
 Opening a file failed for some reason. More...
class  File
 File utility methods. More...
class  HostInfo
 Host information. More...
class  PathParser
 Path parser. More...
class  SignalHandler
 Interface for signal handling. More...
class  SignalManager
 System signal manager. More...
class  Clock
 This is supposed to be the central clock in Fawkes. More...
class  SimulatorTimeSource
 Simulation time source. More...
class  Time
 A class for handling time. More...
class  TimeSource
 TimeSource interface. More...
class  TimeTracker
 Time tracking utility. More...
class  TimeWait
 Time wait utility. More...
class  Watch
 This is a stop-watch. More...
class  WebErrorPageReply
 Static error page reply. More...
class  DynamicFileWebReply
 Dynamic raw file transfer reply. More...
class  WebPageFooterGenerator
 Interface for HTML footer generator. More...
class  WebPageHeaderGenerator
 Interface for HTML header generator. More...
class  WebPageReply
 Basic page reply. More...
class  WebRedirectReply
 Redirect reply for webview. More...
class  WebReply
 Basic web reply. More...
class  DynamicWebReply
 Dynamic web reply. More...
class  StaticWebReply
 Static web reply. More...
class  WebRequestDispatcher
 Web request dispatcher. More...
class  WebRequestProcessor
 Abstract web request processor. More...
class  WebServer
 Encapsulation of the libmicrohttpd webserver. More...
class  WorldInfoDataContainer
 Data container to store and exchange worldinfo data. More...

Typedefs

typedef const char *(*) PluginDescriptionFunc ()
 Plugin description function for the shared library.
typedef const char *(*) PluginDependenciesFunc ()
 Plugin depdendency function for the shared library.
typedef void(*) InterfaceDestroyFunc (Interface *interface)
 Interface destructor function for the shared library.
typedef Interface *(*) InterfaceFactoryFunc (void)
 Interface generator function for the shared library Do not use directly.
typedef fawkes::field_line_struct field_line_t
 Describes a field line.
typedef fawkes::arc_struct arc_t
 Defines an arc (or circle).
typedef fawkes::point_6D_struct point_6D_t
 Defines a point with 6-degrees of freedom.

Enumerations

enum  blackboard_msgid_t {
  MSG_BB_LIST_ALL, MSG_BB_INTERFACE_LIST, MSG_BB_OPEN_FOR_READING, MSG_BB_OPEN_FOR_WRITING,
  MSG_BB_OPEN_SUCCESS, MSG_BB_OPEN_FAILURE, MSG_BB_CLOSE, MSG_BB_WRITE,
  MSG_BB_INTERFACE_MESSAGE, MSG_BB_DATA_CHANGED, MSG_BB_READER_ADDED, MSG_BB_READER_REMOVED,
  MSG_BB_WRITER_ADDED, MSG_BB_WRITER_REMOVED, MSG_BB_INTERFACE_CREATED, MSG_BB_INTERFACE_DESTROYED
}
 BlackBoard network message types. More...
enum  blackboard_neterror_t { BB_ERR_UNKNOWN_ERR, BB_ERR_UNKNOWN_TYPE, BB_ERR_HASH_MISMATCH, BB_ERR_WRITER_EXISTS }
 Error codes. More...
enum  interface_fieldtype_t {
  IFT_BOOL, IFT_INT8, IFT_UINT8, IFT_INT16,
  IFT_UINT16, IFT_INT32, IFT_UINT32, IFT_INT64,
  IFT_UINT64, IFT_FLOAT, IFT_STRING, IFT_BYTE,
  IFT_ENUM
}
 Interface field type. More...
enum  worldinfo_msl_gamestate_t {
  GS_FROZEN = 0, GS_PLAY = 1, GS_KICK_OFF = 2, GS_DROP_BALL = 3,
  GS_PENALTY = 4, GS_CORNER_KICK = 5, GS_THROW_IN = 6, GS_FREE_KICK = 7,
  GS_GOAL_KICK = 8, GS_HALF_TIME = 9
}
 Game states for RoboCup MSL. More...
enum  worldinfo_spl_gamestate_t {
  GS_SPL_INITIAL = 0, GS_SPL_READY = 1, GS_SPL_SET = 2, GS_SPL_PLAY = 3,
  GS_SPL_FINISHED = 4
}
 Game states for RoboCup SPL. More...
enum  worldinfo_gamestate_team_t { TEAM_NONE = 0, TEAM_CYAN = 1, TEAM_MAGENTA = 2, TEAM_BOTH = 3 }
 Team. More...
enum  worldinfo_gamestate_goalcolor_t { GOAL_BLUE = 0, GOAL_YELLOW = 1 }
 Goal color. More...
enum  worldinfo_gamestate_half_t { HALF_FIRST = 0, HALF_SECOND = 1 }
 Game time half. More...
enum  worldinfo_penalty_t {
  PENALTY_NONE = 0, PENALTY_BALL_HOLDING = 1, PENALTY_GOALIE_PUSHING = 2, PENALTY_PLAYER_PUSHING = 3,
  PENALTY_ILLEGAL_DEFENDER = 4, PENALTY_ILLEGAL_DEFENSE = 5, PENALTY_OBSTRUCTION = 6, PENALTY_REQ_FOR_PICKUP = 7,
  PENALTY_LEAVING = 8, PENALTY_DAMAGE = 9, PENALTY_MANUAL = 10
}
 Robot penalty code. More...
enum  worldinfo_msgid_t {
  WORLDINFO_MSGTYPE_POSE = 1, WORLDINFO_MSGTYPE_VELO = 2, WORLDINFO_MSGTYPE_RELBALL = 3, WORLDINFO_MSGTYPE_RELBALLVELO = 4,
  WORLDINFO_MSGTYPE_OPP_POSE = 5, WORLDINFO_MSGTYPE_OPP_DISAPP = 6, WORLDINFO_MSGTYPE_FAT_WORLDINFO = 7, WORLDINFO_MSGTYPE_GAMESTATE = 8,
  WORLDINFO_MSGTYPE_PENALTY = 9, WORLDINFO_MSGTYPE_GLOBBALL = 10, WORLDINFO_MSGTYPE_GLOBBALLVELO = 11
}
 WorldInfo message IDs. More...
enum  plugin_message_type_t {
  MSG_PLUGIN_LOAD = 1, MSG_PLUGIN_LOADED = 2, MSG_PLUGIN_LOAD_FAILED = 3, MSG_PLUGIN_UNLOAD = 4,
  MSG_PLUGIN_UNLOADED = 5, MSG_PLUGIN_UNLOAD_FAILED = 6, MSG_PLUGIN_LIST_AVAIL = 7, MSG_PLUGIN_AVAIL_LIST = 8,
  MSG_PLUGIN_AVAIL_LIST_FAILED = 9, MSG_PLUGIN_LIST_LOADED = 10, MSG_PLUGIN_LOADED_LIST = 11, MSG_PLUGIN_LOADED_LIST_FAILED = 12,
  MSG_PLUGIN_SUBSCRIBE_WATCH = 13, MSG_PLUGIN_UNSUBSCRIBE_WATCH = 14
}
 Plugin message type. More...

Functions

static void dump_table (FILE *f,::sqlite3 *tdb, const char *table_name)
 Dump table.
DrawingManipulatorset_line_width (float w)
 Creates a drawing manipulator which sets the given line width.
DrawingManipulatorset_color (float r, float g, float b)
 Creates a drawing manipulator which sets the given color.
DrawingManipulatorset_color (DrawingManipulator::Color c)
 Creates a drawing manipulator which sets the given color.
DrawingManipulatorset_point_size (float s)
 Creates a drawing manipulator which sets the given point size.
std::ostream & operator<< (std::ostream &stream, const Vector &v)
 Appends the components of the Vector to the ostream.
const char * worldinfo_msl_gamestate_tostring (worldinfo_msl_gamestate_t gamestate)
 Convert MSL gamestate to a string.
const char * worldinfo_spl_gamestate_tostring (worldinfo_spl_gamestate_t gamestate)
 Convert MSL gamestate to a string.
const char * worldinfo_gamestate_team_tostring (worldinfo_gamestate_team_t team)
 Convert gamestate team to a string.
const char * worldinfo_gamestate_goalcolor_tostring (worldinfo_gamestate_goalcolor_t goal_color)
 Convert goal color to a string.
const char * worldinfo_gamestate_half_tostring (worldinfo_gamestate_half_t half)
 Convert half time to a string.
const char * worldinfo_penalty_tostring (worldinfo_penalty_t penalty)
 Convert penalty to a string.
float deg2rad (float deg)
 Convert an angle given in degrees to radians.
float rad2deg (float rad)
 Convert an angle given in radians to degrees.
float distance (float x1, float y1, float x2, float y2)
 Get distance between two 2D cartesian coordinates.
float normalize_mirror_rad (float angle_rad)
 Normalize angle in radian between -PI and PI.
float normalize_rad (float angle_rad)
 Normalize angle in radian between 0 and 2*PI.
float normalize_bigmirror_rad (float angle_rad)
 Normalizes angle in radian between -3*PI and 3*PI.
float angle_distance (float angle_rad1, float angle_rad2)
 Determines the distance between two angle provided as radians.
void cart2polar2d (float cart_x, float cart_y, float *polar_phi, float *polar_dist)
 Convert a 2D polar coordinate to a 2D cartesian coordinate.
void polar2cart2d (float polar_phi, float polar_dist, float *cart_x, float *cart_y)
 Convert a 2D polar coordinate to a 2D cartesian coordinate.
float gauss (const float diff, const float sigma=1.0)
 The normal distribution.
float intersection_integral_oftwo_gaussians (float mu1, float sigma1, float mu2, float sigma2, float step)
 Computes the intersection integral of two gaussians given.
int unhex (char c)
 Transform hex to value.
void hex_unescape (char *s)
 Remove URL hex escapes from s in place.
std::string filetype_file (const char *filename)
 Get filetype of file.
std::string mimetype_file (const char *filename)
 Get mime-type of file.
static void set_nonblock_flag ()
 Set non-blocking flag on STDIN.
static void clear_nonblock_flag ()
 Clear non-blocking flag on STDIN.
char getkey ()
 Get value of a single key-press non-blocking.
float time_diff_sec (const timeval &a, const timeval &b)
 Calculate time difference of two time structs.
float time_diff_sec (const long int a_sec, const long int a_usec, const long int b_sec, const long int b_usec)
 Calculate time difference of two time structs.
long int time_diff_usec (const timeval &a, const timeval &b)
 Get difference between two time structs in microseconds.
static int dynamic_reply_data_cb (void *reply, uint64_t pos, char *buf, int max)
 Callback based chunk-wise data.
static void dynamic_reply_free_cb (void *reply)
 Callback to free dynamic web reply.

Variables

static const char * c_black = "\033[0;30m"
 Print black on console.
static std::string cblack = c_black
 Print black on console.
static const char * c_darkgray = "\033[1;30m"
 Print dark gray on console.
static std::string cdarkgray = c_darkgray
 Print dark gray on console.
static const char * c_red = "\033[0;31m"
 Print red on console.
static std::string cred = c_red
 Print red on console.
static const char * c_lightred = "\033[1;31m"
 Print light red on console.
static std::string clightred = c_lightred
 Print light red on console.
static const char * c_green = "\033[0;32m"
 Print green on console.
static std::string cgreen = c_green
 Print green on console.
static const char * c_lightgreen = "\033[1;32m"
 Print light green on console.
static std::string clightgreen = c_lightgreen
 Print light green on console.
static const char * c_brown = "\033[0;33m"
 Print brown on console.
static std::string cbrown = c_brown
 Print brown on console.
static const char * c_yellow = "\033[1;33m"
 Print yellow on console.
static std::string cyellow = c_yellow
 Print yellow on console.
static const char * c_blue = "\033[0;34m"
 Print blue on console.
static std::string cblue = c_blue
 Print blue on console.
static const char * c_lightblue = "\033[1;34m"
 Print light blue on console.
static std::string clightblue = c_lightblue
 Print light blue on console.
static const char * c_purple = "\033[0;35m"
 Print purple on console.
static std::string cpurple = c_purple
 Print purple on console.
static const char * c_lightpurple = "\033[1;35m"
 Print light purple on console.
static std::string clightpurple = c_lightpurple
 Print light purple on console.
static const char * c_cyan = "\033[0;36m"
 Print cyan on console.
static std::string ccyan = c_cyan
 Print cyan on console.
static const char * c_lightcyan = "\033[1;36m"
 Print light cyan on console.
static std::string clightcyan = c_lightcyan
 Print light cyan on console.
static const char * c_lightgray = "\033[0;37m"
 Print light gray on console.
static std::string clightgray = c_lightgray
 Print light gray on console.
static const char * c_white = "\033[1;37m"
 Print white on console.
static std::string cwhite = c_white
 Print white on console.
static const char * c_normal = "\033[0;39m"
 Print normal on console, without colors, depends on console settings.
static std::string cnormal = c_normal
 Print normal on console, without colors, depends on console settings.


Detailed Description

Fawkes library namespace.

This namespace is used for the Fawkes base libraries. As a rule of thumb everything that is in src/libs belongs to this namespace.


Typedef Documentation

typedef const char*(* ) fawkes::PluginDescriptionFunc()

Plugin description function for the shared library.

Returns:
short string describing the plugin.

Definition at line 82 of file plugin.h.

typedef const char*(* ) fawkes::PluginDependenciesFunc()

Plugin depdendency function for the shared library.

Returns:
short string with a comma separated list of plugins that this plugin depends on.

Definition at line 88 of file plugin.h.

typedef void(* ) fawkes::InterfaceDestroyFunc(Interface *interface)

Interface destructor function for the shared library.

Do not use directly. Use EXPORT_INTERFACE macro.

Parameters:
interface Interface to destroy

Definition at line 284 of file interface.h.

typedef Interface*(* ) fawkes::InterfaceFactoryFunc(void)

Interface generator function for the shared library Do not use directly.

Use EXPORT_INTERFACE macro.

Definition at line 289 of file interface.h.

typedef struct fawkes::field_line_struct fawkes::field_line_t

Describes a field line.

typedef struct fawkes::arc_struct fawkes::arc_t

Defines an arc (or circle).

typedef struct fawkes::point_6D_struct fawkes::point_6D_t

Defines a point with 6-degrees of freedom.


Enumeration Type Documentation

enum fawkes::blackboard_msgid_t

BlackBoard network message types.

Definition at line 36 of file messages.h.

enum fawkes::blackboard_neterror_t

Error codes.

Enumerator:
BB_ERR_UNKNOWN_ERR  Unknown error occured.

Check log.

BB_ERR_UNKNOWN_TYPE  Requested interface type is unknown.
BB_ERR_HASH_MISMATCH  The hashes of the interfaces do not match.

Make sure that both sides are using the exact same version of the interface.

BB_ERR_WRITER_EXISTS  You tried to open an interface for writing but there is already a writing instance for this interface.

Definition at line 56 of file messages.h.

enum fawkes::interface_fieldtype_t

Interface field type.

Enumerator:
IFT_BOOL  boolean field
IFT_INT8  8 bit integer field
IFT_UINT8  8 bit unsigned integer field
IFT_INT16  16 bit integer field
IFT_UINT16  16 bit unsigned integer field
IFT_INT32  32 bit integer field
IFT_UINT32  32 bit unsigned integer field
IFT_INT64  64 bit integer field
IFT_UINT64  64 bit unsigned integer field
IFT_FLOAT  float field
IFT_STRING  string field
IFT_BYTE  byte field, alias for uint8
IFT_ENUM  field with interface specific enum type

Definition at line 33 of file types.h.

enum fawkes::worldinfo_msl_gamestate_t

Game states for RoboCup MSL.

Enumerator:
GS_FROZEN  Frozen, nothing moves.
GS_PLAY  Play, normal play.
GS_KICK_OFF  Kick off.
GS_DROP_BALL  Referee drops ball, both teams can wrestle for the ball.
GS_PENALTY  Penalty kick.
GS_CORNER_KICK  Corner kick.
GS_THROW_IN  Throw in.
GS_FREE_KICK  Free kick.
GS_GOAL_KICK  Goal kick.
GS_HALF_TIME  Half time.

Definition at line 30 of file enums.h.

enum fawkes::worldinfo_spl_gamestate_t

Game states for RoboCup SPL.

Enumerator:
GS_SPL_INITIAL  Initial setup phase.
GS_SPL_READY  Move to kick-off positions.
GS_SPL_SET  Wait for kick-off.
GS_SPL_PLAY  Play!
GS_SPL_FINISHED  Corner kick.

Definition at line 44 of file enums.h.

enum fawkes::worldinfo_gamestate_team_t

Team.

Enumerator:
TEAM_NONE  No team, not team-specific.
TEAM_CYAN  Cyan team.
TEAM_MAGENTA  Magenta team.
TEAM_BOTH  Both teams.

Definition at line 54 of file enums.h.

enum fawkes::worldinfo_gamestate_goalcolor_t

Goal color.

Enumerator:
GOAL_BLUE  Blue goal.
GOAL_YELLOW  Yellow goal.

Definition at line 63 of file enums.h.

enum fawkes::worldinfo_gamestate_half_t

Game time half.

Enumerator:
HALF_FIRST  First half.
HALF_SECOND  Second half.

Definition at line 70 of file enums.h.

enum fawkes::worldinfo_penalty_t

Robot penalty code.

Enumerator:
PENALTY_NONE  No penalty.
PENALTY_BALL_HOLDING  Robot hold the ball.
PENALTY_GOALIE_PUSHING  Robot pushed the goalie.
PENALTY_PLAYER_PUSHING  Robot pushed a player.
PENALTY_ILLEGAL_DEFENDER  Robot is an illegal defender.
PENALTY_ILLEGAL_DEFENSE  Illegal defense.
PENALTY_OBSTRUCTION  Robot obstructs path way.
PENALTY_REQ_FOR_PICKUP  Robot was requested for pick up.
PENALTY_LEAVING  Robot has to leave.
PENALTY_DAMAGE  Robot is damaged.
PENALTY_MANUAL  Manually penalized.

Definition at line 76 of file enums.h.

enum fawkes::worldinfo_msgid_t

WorldInfo message IDs.

Enumerator:
WORLDINFO_MSGTYPE_POSE  Sending robot's pose.
WORLDINFO_MSGTYPE_VELO  Sending robot's velocity.
WORLDINFO_MSGTYPE_RELBALL  Observed relative ball position.
WORLDINFO_MSGTYPE_RELBALLVELO  Observed relative ball velocity.
WORLDINFO_MSGTYPE_OPP_POSE  Observed opponent pose.
WORLDINFO_MSGTYPE_OPP_DISAPP  Observed opponent disappered.
WORLDINFO_MSGTYPE_FAT_WORLDINFO  Fat message containing all the information,.

Deprecated:
WORLDINFO_MSGTYPE_GAMESTATE  Gamestate info.
WORLDINFO_MSGTYPE_PENALTY  Penalty info.
WORLDINFO_MSGTYPE_GLOBBALL  Global ball position.
WORLDINFO_MSGTYPE_GLOBBALLVELO  Global ball velocity.

Definition at line 35 of file messages.h.

enum fawkes::plugin_message_type_t

Plugin message type.

Enumerator:
MSG_PLUGIN_LOAD  request plugin load (plugin_load_msg_t)
MSG_PLUGIN_LOADED  plugin loaded (plugin_loaded_msg_t)
MSG_PLUGIN_LOAD_FAILED  plugin load failed (plugin_load_failed_msg_t)
MSG_PLUGIN_UNLOAD  request plugin unload (plugin_unload_msg_t)
MSG_PLUGIN_UNLOADED  plugin unloaded (plugin_unloaded_msg_t)
MSG_PLUGIN_UNLOAD_FAILED  plugin unload failed (plugin_unload_failed_msg_t)
MSG_PLUGIN_LIST_AVAIL  request list of available plugins
MSG_PLUGIN_AVAIL_LIST  list of available plugins (plugin_list_msg_t)
MSG_PLUGIN_AVAIL_LIST_FAILED  listing available plugins failed
MSG_PLUGIN_LIST_LOADED  request lif of loaded plugins
MSG_PLUGIN_LOADED_LIST  list of loaded plugins (plugin_list_msg_t)
MSG_PLUGIN_LOADED_LIST_FAILED  listing loaded plugins failed
MSG_PLUGIN_SUBSCRIBE_WATCH  Subscribe for watching load/unload events.
MSG_PLUGIN_UNSUBSCRIBE_WATCH  Unsubscribe from watching load/unload events.

Definition at line 32 of file messages.h.


Function Documentation

static void fawkes::dump_table ( FILE *  f,
::sqlite3 *  tdb,
const char *  table_name 
) [static]

Dump table.

Dumps a table to the given file.

Parameters:
f file to write to
tdb SQLite3 database to read from
table_name Name of the table to dump

Definition at line 356 of file sqlite.cpp.

DrawingManipulator * fawkes::set_line_width ( float  w  ) 

Creates a drawing manipulator which sets the given line width.

Parameters:
w the line width
Returns:
pointer to the newly created drawing manipulator

Definition at line 215 of file drawing_manipulator.cpp.

References fawkes::DrawingManipulator::set_line_width().

DrawingManipulator * fawkes::set_color ( float  r,
float  g,
float  b 
)

Creates a drawing manipulator which sets the given color.

Parameters:
r the R value of the color
g the G value of the color
b the B value of the color
Returns:
pointer to the newly created drawing manipulator

Definition at line 228 of file drawing_manipulator.cpp.

References fawkes::DrawingManipulator::set_color().

DrawingManipulator * fawkes::set_color ( DrawingManipulator::Color  c  ) 

Creates a drawing manipulator which sets the given color.

Parameters:
c one of the colors defined in the DrawingManipulator class
Returns:
pointer to the newly created drawing manipulator

Definition at line 239 of file drawing_manipulator.cpp.

References fawkes::DrawingManipulator::set_color().

DrawingManipulator * fawkes::set_point_size ( float  s  ) 

Creates a drawing manipulator which sets the given point size.

Parameters:
s the point size
Returns:
pointer to the newly created drawing manipulator

Definition at line 250 of file drawing_manipulator.cpp.

References fawkes::DrawingManipulator::set_point_size().

std::ostream& fawkes::operator<< ( std::ostream &  stream,
const Vector &  v 
)

Appends the components of the Vector to the ostream.

Parameters:
stream the input stream
v the vector to be appended
Returns:
the resulting stream

Definition at line 513 of file vector.cpp.

References fawkes::Vector::get(), and fawkes::Vector::m_size.

const char * fawkes::worldinfo_msl_gamestate_tostring ( worldinfo_msl_gamestate_t  gamestate  ) 

Convert MSL gamestate to a string.

Parameters:
gamestate game state to translate into a string
Returns:
string representation of the given state.

Definition at line 35 of file enums.cpp.

References GS_CORNER_KICK, GS_DROP_BALL, GS_FREE_KICK, GS_FROZEN, GS_GOAL_KICK, GS_HALF_TIME, GS_KICK_OFF, GS_PENALTY, GS_PLAY, and GS_THROW_IN.

Referenced by fawkes::WorldInfoDataContainer::get_game_state_string().

const char * fawkes::worldinfo_spl_gamestate_tostring ( worldinfo_spl_gamestate_t  gamestate  ) 

Convert MSL gamestate to a string.

Parameters:
gamestate game state to translate into a string
Returns:
string representation of the given state.

Definition at line 57 of file enums.cpp.

References GS_SPL_FINISHED, GS_SPL_INITIAL, GS_SPL_PLAY, GS_SPL_READY, and GS_SPL_SET.

const char * fawkes::worldinfo_gamestate_team_tostring ( worldinfo_gamestate_team_t  team  ) 

Convert gamestate team to a string.

Parameters:
team game state team to translate into a string
Returns:
string representation of the given team.

Definition at line 75 of file enums.cpp.

References TEAM_BOTH, TEAM_CYAN, TEAM_MAGENTA, and TEAM_NONE.

Referenced by fawkes::WorldInfoDataContainer::get_game_state_string(), fawkes::WorldInfoDataContainer::get_own_team_color_string(), RefBoxStateBBWriter::set_gamestate(), RefBoxStateSender::set_gamestate(), RefBoxCommThread::set_gamestate(), RefBoxStateBBWriter::set_team_goal(), RefBoxStateSender::set_team_goal(), and RefBoxCommThread::set_team_goal().

const char * fawkes::worldinfo_gamestate_goalcolor_tostring ( worldinfo_gamestate_goalcolor_t  goal_color  ) 

Convert goal color to a string.

Parameters:
goal_color goal color
Returns:
string representation of the given goal color.

Definition at line 92 of file enums.cpp.

References GOAL_BLUE, and GOAL_YELLOW.

Referenced by fawkes::WorldInfoDataContainer::get_own_goal_color_string(), RefBoxStateBBWriter::set_team_goal(), RefBoxStateSender::set_team_goal(), and RefBoxCommThread::set_team_goal().

const char * fawkes::worldinfo_gamestate_half_tostring ( worldinfo_gamestate_half_t  half  ) 

Convert half time to a string.

Parameters:
half half time
Returns:
string representation of the given half time.

Definition at line 108 of file enums.cpp.

References HALF_FIRST, and HALF_SECOND.

Referenced by fawkes::WorldInfoDataContainer::get_half_string(), RefBoxStateBBWriter::set_half(), RefBoxStateSender::set_half(), and RefBoxCommThread::set_half().

const char * fawkes::worldinfo_penalty_tostring ( worldinfo_penalty_t  penalty  ) 

Convert penalty to a string.

Parameters:
penalty penalty to translate into a string
Returns:
string representation of the penalty

Definition at line 123 of file enums.cpp.

References PENALTY_BALL_HOLDING, PENALTY_DAMAGE, PENALTY_GOALIE_PUSHING, PENALTY_ILLEGAL_DEFENDER, PENALTY_ILLEGAL_DEFENSE, PENALTY_LEAVING, PENALTY_MANUAL, PENALTY_NONE, PENALTY_OBSTRUCTION, PENALTY_PLAYER_PUSHING, and PENALTY_REQ_FOR_PICKUP.

float fawkes::deg2rad ( float  deg  )  [inline]

Convert an angle given in degrees to radians.

Parameters:
deg original value in degrees
Returns:
converted value in radians

Definition at line 37 of file angle.h.

Referenced by firevision::BallTrigoRelativePos::BallTrigoRelativePos(), firevision::BoxRelative::BoxRelative(), firevision::LineShape::calcPoints(), firevision::CameraTracker::CameraTracker(), firevision::CornerHorizon::CornerHorizon(), LaserDrawingArea::draw_beams(), LaserDrawingArea::draw_segments(), firevision::FrontBallRelativePos::FrontBallRelativePos(), RobotisRX28::get_max_supported_speed(), firevision::TriclopsStereoProcessor::get_world_xyz(), firevision::TriclopsStereoProcessor::getall_world_xyz(), LaserHtSensorProcThread::loop(), firevision::ScanlineStar::ScanlineStar(), firevision::FrontBallRelativePos::set_horizontal_angle(), firevision::BoxRelative::set_horizontal_angle(), firevision::FrontBallRelativePos::set_vertical_angle(), and firevision::BoxRelative::set_vertical_angle().

float fawkes::rad2deg ( float  rad  )  [inline]

Convert an angle given in radians to degrees.

Parameters:
rad original value in radians
Returns:
converted value in degrees

Definition at line 48 of file angle.h.

Referenced by MirrorCalibTool::get_next(), LaserHtSensorProcThread::loop(), firevision::RhtLinesModel::parseImage(), firevision::HtLinesModel::parseImage(), MirrorCalibTool::step(), and PlayerLaserMapper::sync_player_to_fawkes().

float fawkes::distance ( float  x1,
float  y1,
float  x2,
float  y2 
) [inline]

Get distance between two 2D cartesian coordinates.

Parameters:
x1 X coordinate of first point
y1 Y coordinate of first point
x2 X coordinate of second point
y2 Y coordinate of second point
Returns:
distance between points

Definition at line 62 of file angle.h.

Referenced by WorldModelObjPosAverageFuser::fuse().

float fawkes::normalize_mirror_rad ( float  angle_rad  )  [inline]

Normalize angle in radian between -PI and PI.

The given angle in radians is taken as an angle on the unit circle. It is then normalized into the range -PI and PI, such that it is the exact same angle on the unit circle but in the usual angle range.

Parameters:
angle_rad original value
Returns:
normalized angle

Definition at line 75 of file angle.h.

Referenced by firevision::CameraTracker::calc(), firevision::CornerHorizon::calculate(), firevision::SEGenerator::linear(), and normalize_bigmirror_rad().

float fawkes::normalize_rad ( float  angle_rad  )  [inline]

Normalize angle in radian between 0 and 2*PI.

The given angle in radians is taken as an angle on the unit circle. It is then normalized into the range 0 and 2*PI, such that it is the exact same angle on the unit circle but in the usual angle range.

Parameters:
angle_rad original value
Returns:
normalized angle

Definition at line 92 of file angle.h.

Referenced by LaserDrawingArea::draw_beams().

float fawkes::normalize_bigmirror_rad ( float  angle_rad  )  [inline]

Normalizes angle in radian between -3*PI and 3*PI.

If the angle is above 2*PI or below 2*PI the angle will be clipped. The largest full amount of (-)2*PI is subtracted, such that only the amount within the range [-2*PI, 2*PI] remains. Then (-)2*PI is added again.

Parameters:
angle_rad original value
Returns:
normalized angle

Definition at line 110 of file angle.h.

References normalize_mirror_rad().

float fawkes::angle_distance ( float  angle_rad1,
float  angle_rad2 
) [inline]

Determines the distance between two angle provided as radians.

Quadrants of the angles are considered to determine really the minimal angle difference.

Parameters:
angle_rad1 first angle in radian
angle_rad2 first angle in radian
Returns:
distance between the two angles

Definition at line 128 of file angle.h.

void fawkes::cart2polar2d ( float  cart_x,
float  cart_y,
float *  polar_phi,
float *  polar_dist 
) [inline]

Convert a 2D polar coordinate to a 2D cartesian coordinate.

Parameters:
polar_phi Phi of the polar coordinate
polar_dist distnace of the polar coordinate
cart_x upon return contains X of the cartesian coordinate
cart_y upon return contains Y of the cartesian coordinate

Definition at line 39 of file coord.h.

void fawkes::polar2cart2d ( float  polar_phi,
float  polar_dist,
float *  cart_x,
float *  cart_y 
) [inline]

Convert a 2D polar coordinate to a 2D cartesian coordinate.

Parameters:
polar_phi Phi of the polar coordinate
polar_dist distnace of the polar coordinate
cart_x upon return contains X of the cartesian coordinate
cart_y upon return contains Y of the cartesian coordinate

Definition at line 54 of file coord.h.

Referenced by LaserHtSensorProcThread::loop().

float fawkes::gauss ( const float  diff,
const float  sigma = 1.0 
) [inline]

The normal distribution.

Parameters:
diff the differance: (x - mu) for the mean mu and the randomvariable x
sigma the variance
Returns:
probability in normal distribution

Definition at line 40 of file probdist.h.

References gauss().

Referenced by gauss(), and intersection_integral_oftwo_gaussians().

float fawkes::intersection_integral_oftwo_gaussians ( float  mu1,
float  sigma1,
float  mu2,
float  sigma2,
float  step 
) [inline]

Computes the intersection integral of two gaussians given.

Parameters:
mu1 mean of first gaussian
sigma1 variance of first gaussian
mu2 mean of second gaussian
sigma2 variance of second gaussian
step discretization steps for the integral computation
Returns:
computed integral

Definition at line 56 of file probdist.h.

References gauss(), and intersection_integral_oftwo_gaussians().

Referenced by intersection_integral_oftwo_gaussians().

int fawkes::unhex ( char  c  ) 

Transform hex to value.

Parameters:
c character
Returns:
value of hex code as number

Definition at line 34 of file string_urlescape.h.

Referenced by hex_unescape().

void fawkes::hex_unescape ( char *  s  ) 

Remove URL hex escapes from s in place.

Parameters:
s string to manipulate

Definition at line 45 of file string_urlescape.h.

References unhex().

Referenced by fawkes::WebRequestDispatcher::process_request().

std::string fawkes::filetype_file ( const char *  filename  ) 

Get filetype of file.

Returns a long decriptive string of the filetype, similar to the file console utility.

Parameters:
filename path to the file whose type should be determined
Returns:
descriptive string

Definition at line 38 of file filetype.cpp.

Referenced by firevision::fv_filetype_file().

std::string fawkes::mimetype_file ( const char *  filename  ) 

Get mime-type of file.

This function gives a brief mime-type for the given file.

Parameters:
filename path to the file whose type should be determined
Returns:
descriptive string
Parameters:
filename 

Definition at line 66 of file filetype.cpp.

Referenced by fawkes::DynamicFileWebReply::DynamicFileWebReply().

static void fawkes::set_nonblock_flag (  )  [static]

Set non-blocking flag on STDIN.

Sets the 0_NONBLOCK Flag to 1, so that the read command in the getkey()-method wont block the programm till a input is made (see also libc manual, pages 105 and 117).

Definition at line 32 of file getkey.cpp.

Referenced by getkey().

static void fawkes::clear_nonblock_flag (  )  [static]

Clear non-blocking flag on STDIN.

Definition at line 44 of file getkey.cpp.

Referenced by getkey().

char fawkes::getkey (  ) 

Get value of a single key-press non-blocking.

This method checks if a new keypress has happened and returns the value in this case. Otherwise it returns 0. The method does not block.

Returns:
key pressed or 0

Definition at line 60 of file getkey.cpp.

References clear_nonblock_flag(), and set_nonblock_flag().

float fawkes::time_diff_sec ( const timeval &  a,
const timeval &  b 
) [inline]

Calculate time difference of two time structs.

The calculated time is t = a - b, where t is a represented as the number of seconds in a single precision float.

Parameters:
a time to subtract from
b time to subtract
Returns:
a - b

Definition at line 39 of file time.h.

Referenced by firevision::VelocityFromRelative::calc(), fawkes::Socket::connect(), fawkes::Time::operator-(), fawkes::Socket::read(), fawkes::Socket::send(), firevision::VelocityFromGlobal::setRobotPosition(), firevision::VelocityGlobalFromRelative::setRobotPosition(), fawkes::Clock::sys_elapsed(), and fawkes::Socket::write().

float fawkes::time_diff_sec ( const long int  a_sec,
const long int  a_usec,
const long int  b_sec,
const long int  b_usec 
) [inline]

Calculate time difference of two time structs.

The calculated time is t = a - b, where t is a represented as the number of seconds in a single precision float.

Parameters:
a_sec seconds of time to subtract from
a_usec microseconds of time to subtract from
b_sec seconds of time to subtract
b_usec microseconds of time to subtract
Returns:
a_sec - b_sec + (a_usec - b_usec) / 1000000.f

Definition at line 57 of file time.h.

long int fawkes::time_diff_usec ( const timeval &  a,
const timeval &  b 
) [inline]

Get difference between two time structs in microseconds.

The calculated time is t = a - b

Parameters:
a time to subtract from
b time to subtract
Returns:
difference between a and b in microseconds

Definition at line 73 of file time.h.

Referenced by fawkes::TimeWait::wait(), and fawkes::TimeWait::wait_systime().

static int fawkes::dynamic_reply_data_cb ( void *  reply,
uint64_t  pos,
char *  buf,
int  max 
) [static]

Callback based chunk-wise data.

Supplies data chunk based.

Parameters:
reply instance of DynamicWebReply
pos position in stream
buf buffer to put data in
max maximum number of bytes that can be put in buf
Returns:
suitable libmicrohttpd return code

Definition at line 102 of file request_dispatcher.cpp.

References fawkes::DynamicWebReply::next_chunk().

Referenced by fawkes::WebRequestDispatcher::process_request().

static void fawkes::dynamic_reply_free_cb ( void *  reply  )  [static]

Callback to free dynamic web reply.

Parameters:
reply Instance of DynamicWebReply to free.

Definition at line 114 of file request_dispatcher.cpp.

Referenced by fawkes::WebRequestDispatcher::process_request().


Variable Documentation

const char* fawkes::c_black = "\033[0;30m" [static]

Print black on console.

Definition at line 33 of file console_colors.h.

std::string fawkes::cblack = c_black [static]

Print black on console.

Definition at line 35 of file console_colors.h.

const char* fawkes::c_darkgray = "\033[1;30m" [static]

Print dark gray on console.

Definition at line 38 of file console_colors.h.

Referenced by fawkes::ConsoleLogger::log_debug(), fawkes::ConsoleLogger::tlog_debug(), fawkes::ConsoleLogger::vlog_debug(), and fawkes::ConsoleLogger::vtlog_debug().

std::string fawkes::cdarkgray = c_darkgray [static]

Print dark gray on console.

Definition at line 40 of file console_colors.h.

Referenced by fawkes::BlackBoardSharedMemoryLister::print_header(), and fawkes::BlackBoardSharedMemoryLister::print_no_orphaned_segments().

const char* fawkes::c_red = "\033[0;31m" [static]

Print red on console.

Definition at line 43 of file console_colors.h.

Referenced by fawkes::ConsoleLogger::log_error(), fawkes::ConsoleLogger::tlog_error(), fawkes::ConsoleLogger::vlog_error(), and fawkes::ConsoleLogger::vtlog_error().

std::string fawkes::cred = c_red [static]

Print red on console.

Definition at line 45 of file console_colors.h.

const char* fawkes::c_lightred = "\033[1;31m" [static]

Print light red on console.

Definition at line 48 of file console_colors.h.

std::string fawkes::clightred = c_lightred [static]

Print light red on console.

Definition at line 50 of file console_colors.h.

const char* fawkes::c_green = "\033[0;32m" [static]

Print green on console.

Definition at line 53 of file console_colors.h.

std::string fawkes::cgreen = c_green [static]

Print green on console.

Definition at line 55 of file console_colors.h.

Referenced by firevision::SurfClassifier::classify().

const char* fawkes::c_lightgreen = "\033[1;32m" [static]

Print light green on console.

Definition at line 58 of file console_colors.h.

std::string fawkes::clightgreen = c_lightgreen [static]

Print light green on console.

Definition at line 60 of file console_colors.h.

const char* fawkes::c_brown = "\033[0;33m" [static]

Print brown on console.

Definition at line 63 of file console_colors.h.

Referenced by fawkes::ConsoleLogger::log_warn(), fawkes::ConsoleLogger::tlog_warn(), fawkes::ConsoleLogger::vlog_warn(), and fawkes::ConsoleLogger::vtlog_warn().

std::string fawkes::cbrown = c_brown [static]

Print brown on console.

Definition at line 65 of file console_colors.h.

const char* fawkes::c_yellow = "\033[1;33m" [static]

Print yellow on console.

Definition at line 68 of file console_colors.h.

std::string fawkes::cyellow = c_yellow [static]

Print yellow on console.

Definition at line 70 of file console_colors.h.

const char* fawkes::c_blue = "\033[0;34m" [static]

Print blue on console.

Definition at line 73 of file console_colors.h.

std::string fawkes::cblue = c_blue [static]

Print blue on console.

Definition at line 75 of file console_colors.h.

Referenced by firevision::SurfClassifier::classify(), and fawkes::BlackBoardSharedMemoryLister::print_header().

const char* fawkes::c_lightblue = "\033[1;34m" [static]

Print light blue on console.

Definition at line 78 of file console_colors.h.

std::string fawkes::clightblue = c_lightblue [static]

Print light blue on console.

Definition at line 80 of file console_colors.h.

const char* fawkes::c_purple = "\033[0;35m" [static]

Print purple on console.

Definition at line 83 of file console_colors.h.

std::string fawkes::cpurple = c_purple [static]

Print purple on console.

Definition at line 85 of file console_colors.h.

const char* fawkes::c_lightpurple = "\033[1;35m" [static]

Print light purple on console.

Definition at line 88 of file console_colors.h.

std::string fawkes::clightpurple = c_lightpurple [static]

Print light purple on console.

Definition at line 90 of file console_colors.h.

const char* fawkes::c_cyan = "\033[0;36m" [static]

Print cyan on console.

Definition at line 93 of file console_colors.h.

std::string fawkes::ccyan = c_cyan [static]

Print cyan on console.

Definition at line 95 of file console_colors.h.

const char* fawkes::c_lightcyan = "\033[1;36m" [static]

Print light cyan on console.

Definition at line 98 of file console_colors.h.

std::string fawkes::clightcyan = c_lightcyan [static]

Print light cyan on console.

Definition at line 100 of file console_colors.h.

const char* fawkes::c_lightgray = "\033[0;37m" [static]

Print light gray on console.

Definition at line 103 of file console_colors.h.

std::string fawkes::clightgray = c_lightgray [static]

Print light gray on console.

Definition at line 105 of file console_colors.h.

const char* fawkes::c_white = "\033[1;37m" [static]

Print white on console.

Definition at line 108 of file console_colors.h.

std::string fawkes::cwhite = c_white [static]

Print white on console.

Definition at line 110 of file console_colors.h.

const char* fawkes::c_normal = "\033[0;39m" [static]

Print normal on console, without colors, depends on console settings.

Definition at line 113 of file console_colors.h.

Referenced by fawkes::ConsoleLogger::log_debug(), fawkes::ConsoleLogger::log_error(), fawkes::ConsoleLogger::log_info(), fawkes::ConsoleLogger::log_warn(), fawkes::ConsoleLogger::tlog_debug(), fawkes::ConsoleLogger::tlog_error(), fawkes::ConsoleLogger::tlog_info(), fawkes::ConsoleLogger::tlog_warn(), fawkes::ConsoleLogger::vlog_debug(), fawkes::ConsoleLogger::vlog_error(), fawkes::ConsoleLogger::vlog_warn(), fawkes::ConsoleLogger::vtlog_debug(), fawkes::ConsoleLogger::vtlog_error(), and fawkes::ConsoleLogger::vtlog_warn().

std::string fawkes::cnormal = c_normal [static]

Print normal on console, without colors, depends on console settings.

Definition at line 115 of file console_colors.h.

Referenced by firevision::SurfClassifier::classify(), fawkes::BlackBoardSharedMemoryLister::print_header(), and fawkes::BlackBoardSharedMemoryLister::print_no_orphaned_segments().


Generated on Tue Feb 22 13:31:34 2011 for Fawkes API by  doxygen 1.4.7