Skip to content

Commit

Permalink
rename all bindings files with pydrake prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeits committed Jan 31, 2017
1 parent 54dc273 commit 1516f43
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 30 deletions.
18 changes: 9 additions & 9 deletions drake/bindings/pybind11/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ else()
endif()

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-shadow")
pybind11_add_module(_rbtree rbtree.cc)
target_link_libraries(_rbtree PRIVATE drakeRBM drakeMultibodyParsers Eigen3::Eigen)
install(TARGETS _rbtree DESTINATION ${PYDRAKE_INSTALL_DIR})
pybind11_add_module(_pydrake_rbtree pydrake_rbtree.cc)
target_link_libraries(_pydrake_rbtree PRIVATE drakeRBM drakeMultibodyParsers Eigen3::Eigen)
install(TARGETS _pydrake_rbtree DESTINATION ${PYDRAKE_INSTALL_DIR})

pybind11_add_module(_autodiffutils autodiffutils.cc)
target_link_libraries(_autodiffutils PRIVATE drakeRBM drakeMultibodyParsers Eigen3::Eigen)
install(TARGETS _autodiffutils DESTINATION ${PYDRAKE_INSTALL_DIR})
pybind11_add_module(_pydrake_autodiffutils pydrake_autodiffutils.cc)
target_link_libraries(_pydrake_autodiffutils PRIVATE drakeRBM drakeMultibodyParsers Eigen3::Eigen)
install(TARGETS _pydrake_autodiffutils DESTINATION ${PYDRAKE_INSTALL_DIR})

pybind11_add_module(_ik ik.cc)
target_link_libraries(_ik PRIVATE drakeIK Eigen3::Eigen)
install(TARGETS _ik DESTINATION ${PYDRAKE_INSTALL_DIR}/solvers)
pybind11_add_module(_pydrake_ik pydrake_ik.cc)
target_link_libraries(_pydrake_ik PRIVATE drakeIK Eigen3::Eigen)
install(TARGETS _pydrake_ik DESTINATION ${PYDRAKE_INSTALL_DIR}/solvers)
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <pybind11/eigen.h>
#include <pybind11/stl.h>

#include "drake/bindings/pybind11/autodiff_types.h"
#include "drake/bindings/pybind11/pydrake_autodiff_types.h"


namespace py = pybind11;
Expand All @@ -15,8 +15,8 @@ AutoDiffXd eval(const Eigen::AutoDiffScalar<Derived>& x) {
return AutoDiffXd(x.value(), x.derivatives());
}

PYBIND11_PLUGIN(_autodiffutils) {
py::module m("_autodiffutils", "Bindings for Eigen AutoDiff Scalars");
PYBIND11_PLUGIN(_pydrake_autodiffutils) {
py::module m("_pydrake_autodiffutils", "Bindings for Eigen AutoDiff Scalars");

py::class_<AutoDiffXd>(m, "AutoDiffXd")
.def("__init__",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

namespace py = pybind11;

PYBIND11_PLUGIN(_ik) {
py::module m("_ik", "RigidBodyTree inverse kinematics");
PYBIND11_PLUGIN(_pydrake_ik) {
py::module m("_pydrake_ik", "RigidBodyTree inverse kinematics");

py::class_<RigidBodyConstraint>(m, "RigidBodyConstraint");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
#include "drake/multibody/rigid_body_tree.h"
#include "drake/multibody/parsers/urdf_parser.h"

#include "drake/bindings/pybind11/autodiff_types.h"
#include "drake/bindings/pybind11/pydrake_autodiff_types.h"

namespace py = pybind11;

PYBIND11_PLUGIN(_rbtree) {
py::module m("_rbtree", "Bindings for the RigidBodyTree class");
PYBIND11_PLUGIN(_pydrake_rbtree) {
py::module m("_pydrake_rbtree", "Bindings for the RigidBodyTree class");

py::class_<RigidBodyTree<double>>(m, "RigidBodyTree")
.def(py::init<>())
Expand Down
2 changes: 1 addition & 1 deletion drake/bindings/python/pydrake/autodiffutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import numpy as np

from ._autodiffutils import *
from ._pydrake_autodiffutils import *


def wrap(wrapper_type, x):
Expand Down
2 changes: 1 addition & 1 deletion drake/bindings/python/pydrake/rbtree.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import numpy as np

from ._rbtree import *
from ._pydrake_rbtree import *
from . import autodiffutils as ad


Expand Down
22 changes: 11 additions & 11 deletions drake/bindings/python/pydrake/solvers/ik.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
from __future__ import absolute_import
import numpy as np

from ._ik import (IKResults,
IKoptions,
InverseKin,
InverseKinTraj,
InverseKinPointwise,
PostureConstraint,
WorldEulerConstraint,
WorldQuatConstraint,
WorldGazeDirConstraint)
from ._pydrake_ik import (IKResults,
IKoptions,
InverseKin,
InverseKinTraj,
InverseKinPointwise,
PostureConstraint,
WorldEulerConstraint,
WorldQuatConstraint,
WorldGazeDirConstraint)

from ._ik import WorldPositionConstraint as _WorldPositionConstraint
from ._ik import WorldPositionInFrameConstraint as \
from ._pydrake_ik import WorldPositionConstraint as _WorldPositionConstraint
from ._pydrake_ik import WorldPositionInFrameConstraint as \
_WorldPositionInFrameConstraint


Expand Down

0 comments on commit 1516f43

Please sign in to comment.