File: ompl_py_morse.h

package info (click to toggle)
ompl 0.14.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 35,100 kB
  • ctags: 8,743
  • sloc: cpp: 50,246; python: 3,631; php: 190; sh: 90; makefile: 57
file content (23 lines) | stat: -rw-r--r-- 479 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef PY_BINDINGS_OMPL_PY_MORSE_
#define PY_BINDINGS_OMPL_PY_MORSE_

#include "ompl/base/ScopedState.h"
#include "ompl/extensions/morse/MorseStateSpace.h"
#include "py_boost_function.hpp"

#define DeclareStateType(T) \
    inline int __dummy##T() \
    { \
        return sizeof(ompl::base::ScopedState<T##StateSpace>) + \
        sizeof(ompl::base::T##StateSpace::StateType); \
    }

namespace ompl
{
    namespace base
    {
        DeclareStateType(Morse);
    }
}

#endif