pinocchio
4.1.0
A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
Toggle main menu visibility
Loading...
Searching...
No Matches
constant.hpp
1
//
2
// Copyright (c) 2018 CNRS
3
//
4
5
#pragma once
6
7
#include <boost/python.hpp>
8
#include <boost/python/scope.hpp>
9
10
namespace
boost
11
{
12
namespace
python
13
{
14
23
template
<
typename
T>
24
void
def_constant(
const
char
* name,
const
T & value)
25
{
26
namespace
bp = boost::python;
27
bp::scope().attr(name) = value;
28
}
29
30
}
// namespace python
31
}
// namespace boost
include
pinocchio
bindings
python
utils
constant.hpp
Generated by
1.17.0