Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef OPENRAVE_PLUGINDEFS_H
00016 #define OPENRAVE_PLUGINDEFS_H
00017
00018 #include <rave/rave.h>
00019
00020
00021 #ifdef _MSC_VER
00022 #include <boost/typeof/std/string.hpp>
00023 #include <boost/typeof/std/vector.hpp>
00024 #include <boost/typeof/std/list.hpp>
00025 #include <boost/typeof/std/map.hpp>
00026 #include <boost/typeof/std/string.hpp>
00027 #include <boost/typeof/std/set.hpp>
00028
00029 #define FOREACH(it, v) for(BOOST_TYPEOF(v) ::iterator it = (v).begin(); it != (v).end(); (it)++)
00030 #define FOREACH_NOINC(it, v) for(BOOST_TYPEOF(v) ::iterator it = (v).begin(); it != (v).end(); )
00031
00032 #define FOREACHC(it, v) for(BOOST_TYPEOF(v) ::const_iterator it = (v).begin(); it != (v).end(); (it)++)
00033 #define FOREACHC_NOINC(it, v) for(BOOST_TYPEOF(v) ::const_iterator it = (v).begin(); it != (v).end(); )
00034 #define RAVE_REGISTER_BOOST
00035 #else
00036
00037 #include <string>
00038 #include <vector>
00039 #include <list>
00040 #include <map>
00041 #include <string>
00042 #include <set>
00043
00044 #define FOREACH(it, v) for(typeof((v).begin())it = (v).begin(); it != (v).end(); (it)++)
00045 #define FOREACH_NOINC(it, v) for(typeof((v).begin())it = (v).begin(); it != (v).end(); )
00046
00047 #define FOREACHC FOREACH
00048 #define FOREACHC_NOINC FOREACH_NOINC
00049
00050 #endif
00051
00052 #include <stdint.h>
00053 #include <fstream>
00054 #include <iostream>
00055
00056 #include <boost/assert.hpp>
00057 #include <boost/bind.hpp>
00058 #include <boost/format.hpp>
00059 #include <boost/array.hpp>
00060
00061 using namespace std;
00062
00063 #include <sys/timeb.h>
00064
00065 #ifndef _WIN32
00066 #include <sys/time.h>
00067 #define Sleep(milli) usleep(1000*milli)
00068 #else
00069 #define WIN32_LEAN_AND_MEAN
00070 #include <winsock2.h>
00071 #endif
00072
00073 #define FORIT(it, v) for(it = (v).begin(); it != (v).end(); (it)++)
00074 using namespace OpenRAVE;
00075
00076 #include <ros/node_handle.h>
00077 #include <ros/master.h>
00078 #include <ros/time.h>
00079
00080 #include <boost/shared_ptr.hpp>
00081 #include <boost/weak_ptr.hpp>
00082 #include <boost/thread/mutex.hpp>
00083 #include <boost/thread/thread.hpp>
00084 #include <boost/enable_shared_from_this.hpp>
00085
00086 struct null_deleter
00087 {
00088 void operator()(void const *) const {
00089 }
00090 };
00091
00092 using namespace ros;
00093
00094 #endif