Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

LocomotionEvent.cc File Reference


Detailed Description

Implements LocomotionEvent, which gives updates regarding the current movement of the robot through the world.

Author:
ejt (Creator)
Author
ejt
Name
tekkotsu-2_4_1
Revision
1.4
State
Exp
Date
2005/06/29 22:03:35

Definition in file LocomotionEvent.cc.

#include "LocomotionEvent.h"
#include <sstream>
#include <libxml/tree.h>
#include <iostream>

Include dependency graph for LocomotionEvent.cc:

Go to the source code of this file.

Defines

#define SAVE_PARAM(name)
 a little local macro to make saving fields easier


Define Documentation

#define SAVE_PARAM name   ) 
 

Value:

{ \
xmlNode* cur=xmlNewChild(node,NULL,(const xmlChar*)"param",NULL); \
if(cur==NULL) \
throw bad_format(node,"Error: LocomotionEvent xml error on saving param"); \
xmlSetProp(cur,(const xmlChar*)"name",(const xmlChar*)#name); \
char valbuf[20]; \
snprintf(valbuf,20,"%g",name); \
xmlSetProp(cur,(const xmlChar*)"value",(const xmlChar*)valbuf); }
a little local macro to make saving fields easier

Definition at line 97 of file LocomotionEvent.cc.

Referenced by VisionObjectEvent::SaveXML(), and LocomotionEvent::SaveXML().


Tekkotsu v2.4.1
Generated Tue Aug 16 16:33:48 2005 by Doxygen 1.4.4