openraveros.cpp
Go to the documentation of this file.
00001 // -*- coding: utf-8 -*-
00002 // Copyright (c) 2012 Rosen Diankov <rosen.diankov@gmail.com>
00003 //
00004 // Licensed under the Apache License, Version 2.0 (the "License");
00005 // you may not use this file except in compliance with the License.
00006 // You may obtain a copy of the License at
00007 //     http://www.apache.org/licenses/LICENSE-2.0
00008 //
00009 // Unless required by applicable law or agreed to in writing, software
00010 // distributed under the License is distributed on an "AS IS" BASIS,
00011 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00012 // See the License for the specific language governing permissions and
00013 // limitations under the License.
00014 #include <openrave/openrave.h>
00015 #include <openrave/plugin.h>
00016 
00017 using namespace OpenRAVE;
00018 
00019 ModuleBasePtr CreateROSServer(EnvironmentBasePtr penv, std::istream& sinput);
00020 
00021 InterfaceBasePtr CreateInterfaceValidated(InterfaceType type, const std::string& interfacename, std::istream& sinput, EnvironmentBasePtr penv)
00022 {
00023     switch(type) {
00024     case PT_Module:
00025         if( interfacename == "rosserver" ) {
00026             return InterfaceBasePtr(CreateROSServer(penv,sinput));
00027         }
00028         break;
00029     default:
00030         break;
00031     }
00032     return InterfaceBasePtr();
00033 }
00034 
00035 void GetPluginAttributesValidated(PLUGININFO& info)
00036 {
00037     info.interfacenames[OpenRAVE::PT_Module].push_back("ROSServer");
00038 }
00039 
00040 OPENRAVE_PLUGIN_API void DestroyPlugin()
00041 {
00042 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


openraveros
Author(s): Rosen Diankov (rosen.diankov@gmail.com)
autogenerated on Sat Mar 23 2013 22:16:07