rtt_rospack_service.cpp
Go to the documentation of this file.
1 /*
2  * (C) 2010, Ruben Smits, ruben.smits@mech.kuleuven.be
3  * Department of Mechanical Engineering,
4  * Katholieke Universiteit Leuven, Belgium.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions
8  * are met:
9  * 1. Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  * 2. Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the distribution.
14  * 3. Neither the name of the copyright holder nor the names of its contributors
15  * may be used to endorse or promote products derived from this software
16  * without specific prior written permission.
17  *
18  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
22  * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
23  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
24  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
28  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29  * POSSIBILITY OF SUCH DAMAGE.
30  */
31 
32 #include <rtt/RTT.hpp>
33 #include <rtt/plugin/Plugin.hpp>
36 
37 #include <ros/package.h>
38 
39 using namespace RTT;
40 using namespace std;
41 
44 
45  ros->addOperation("find", &ros::package::getPath).doc(
46  "Returns the fully-qualified path to a package, or an empty string if the package is not found");
47 }
48 
49 using namespace RTT;
50 extern "C" {
52  if (c != 0) return false;
54  return true;
55  }
56  std::string getRTTPluginName (){
57  return "rospack";
58  }
59  std::string getRTTTargetName (){
60  return OROCOS_TARGET_NAME;
61  }
62 }
std::string getRTTPluginName()
boost::shared_ptr< Service > shared_ptr
ROSLIB_DECL std::string getPath(const std::string &package_name)
void loadROSPackService()
std::string getRTTTargetName()
bool loadRTTPlugin(RTT::TaskContext *c)
static RTT_API Service::shared_ptr Instance()


rtt_rospack
Author(s): Ruben Smits
autogenerated on Mon May 10 2021 02:44:59