Giter Site home page Giter Site logo

openrave_catkin's Introduction

openrave_catkin

openrave_catkin is a utility package that simplifies packaging of OpenRAVE models, plugins, and databases assets in a Catkin workspace. This package defines a Catkin environment hook that adds these paths to your OPENRAVE_DATA, OPENRAVE_DATABASES, and OPENRAVE_PLUGINS environment variables.

CMake Integration

Additionally, this package defines the following CMake variables:

  • OpenRAVE_DEVEL_DIR: directory for OpenRAVE assets in the devel space
  • OpenRAVE_INSTALL_DIR: directory for OpenRAVE assets in the install space
  • OpenRAVE_DATA_DIR: subdirectory for models (e.g. .kinbody.xml, .dae)
  • OpenRAVE_PLUGINS_DIR: subdirectory for plugins
  • OpenRAVE_DATABASES_DIR: subdirectory for databases

Additionally, the variables exported by find_package(OpenRAVE) are available:

  • OpenRAVE_INCLUDE_DIRS
  • OpenRAVE_COMPILE_FLAGS
  • OpenRAVE_LIBRARY_DIRS
  • OpenRAVE_LIBRARIES
  • OpenRAVE_LINK_FLAGS

You can use these variables to install your models, plugins, and databases into your OpenRAVE path. For example, you could install the model data/herb.kinbody.xml from your Catkin package by adding these directives to your CMakeLists.txt file:

# TODO: Copy the model into the devel space.
install(FILES "data/herb.kinbody.xml"
  DESTINATION "${OpenRAVE_INSTALL_DIR}/${OpenRAVE_DATA_DIR}"
)

Building a plugin is more tedious because it requires specifying the correct compilation flags, linker flags, and output options. We provide a CMake macro openrave_plugin to simplify this:

Installation Paths

We define the following locations for OpenRAVE assets:

  • OPENRAVE_DATA: share/openrave-MAJOR.MINOR/data
  • OPENRAVE_DATABASES: share/openrave-MAJOR.MINOR/databases
  • OPENRAVE_PLUGINS: share/openrave-MAJOR.MINOR/plugins

In all cases, these paths are relative to the root of your of your current Catkin devel or install space. This naming convention will was selected to mirror the ${CMAKE_INSTALL_PREFIX}/share/openrave-MAJOR.MINOR directory used by OpenRAVE.

Multiple Versions of OpenRAVE

This package does not support switching between OpenRAVE versions because this use-case is not elegantly supported by Catkin. We would appreciate any thoughts on the matter in the form of an issue. However, note that installation paths used for OpenRAVE artifacts are namespaced by version number.

openrave_catkin's People

Contributors

cdellin avatar fsuarez6 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.