plugindefs.h
Go to the documentation of this file.
00001 // Copyright (c) 2009-2010 Rosen Diankov
00002 //
00003 // Licensed under the Apache License, Version 2.0 (the "License");
00004 // you may not use this file except in compliance with the License.
00005 // You may obtain a copy of the License at
00006 //     http://www.apache.org/licenses/LICENSE-2.0
00007 //
00008 // Unless required by applicable law or agreed to in writing, software
00009 // distributed under the License is distributed on an "AS IS" BASIS,
00010 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00011 // See the License for the specific language governing permissions and
00012 // limitations under the License.
00013 //
00014 // \author Rosen Diankov
00015 #ifndef OPENRAVE_PLUGINDEFS_H
00016 #define OPENRAVE_PLUGINDEFS_H
00017 
00018 #include <rave/rave.h> // should be included first in order to get boost throwing openrave exceptions
00019 
00020 // include boost for vc++ only (to get typeof working)
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>    // ftime(), struct timeb
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
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends Defines


openrave_sensors
Author(s): Rosen Diankov (rosen.diankov@gmail.com)
autogenerated on Sat Mar 23 2013 18:07:40