Robert Haschke
3cf92442fb
Simplify generation of pybind11 modules
...
* Install module libs into CATKIN_GLOBAL_PYTHON_DESTINATION (assuming unique names).
This avoids the need to link them into the source space, because they are found also from devel space.
* Use pybind11's def_submodule() to create the `core` and `stages` submodules,
everything linked into the same lib
2021-03-31 00:19:51 +02:00
Robert Haschke
d9b7aa37a3
clang-format python wrapping code
2021-03-31 00:19:51 +02:00
cpetersmeier
14e06659d5
Towards inherited classes in Python
2021-03-31 00:19:51 +02:00
cpetersmeier
6ab50fcc40
PythonWrapper: Use collective includes
2021-03-19 18:39:47 +01:00
Robert Haschke
1f5c684909
Simplify wrapper code
2021-03-19 18:39:47 +01:00
Robert Haschke
d7d54d828f
Access to container's children
2021-03-19 18:39:47 +01:00
Robert Haschke
fd25a0626a
auto-format python code with black
2021-03-19 18:39:44 +01:00
Robert Haschke
b2adcf0247
Python3 compatibility
2020-11-30 13:34:33 +01:00
Robert Haschke
c97b462024
migration: boost::python -> pybind11
2020-11-30 13:34:33 +01:00
Robert Haschke
8433e460e4
Merge branch 'master' into wip-python-api
2020-11-26 12:05:03 +01:00
cpetersmeier
012a10be25
StagesWrapper: Python Function Bindings
...
Add python bindings for
- SimpleGrasp::setIKFrame
- Pick::setApproachMotion
- Pick::setLiftMotion
2020-11-26 11:47:20 +01:00
cpetersmeier
ede5fe396f
StagesWrapper: Add std::map setGoal overload.
...
Adding a further overload of the `setGoal()` function that is exposed to
the python api. This should provide an interface for passing in dicts as
joint name and -angle configurations.
2020-10-21 16:45:05 +02:00
Robert Haschke
49b2ff8ce5
Test Merger
2020-09-22 11:06:34 +02:00
Robert Haschke
745d6739bd
fix typo
2020-09-22 11:06:01 +02:00
Robert Haschke
97e0b437f2
Silence -Wdeprecated-declarations due to std::auto_ptr
2020-09-07 23:18:43 +02:00
Robert Haschke
7306878b9e
Merge branch master into wip-python-api
2020-09-07 23:18:20 +02:00
Robert Haschke
f88bd8f54d
RosMsgConverter: ensure that python and C++ types match
2020-01-11 07:56:47 +01:00
Robert Haschke
5293d2ed27
simplify method overloads
2020-01-11 07:56:47 +01:00
Robert Haschke
7d0daa6cd4
boost::python: provide generic converter for std::map
2020-01-11 07:55:31 +01:00
Robert Haschke
fd9462c27f
Merge branch master into wip-python-api
2019-07-26 11:11:41 +02:00
Robert Haschke
874994bdb5
test packages are required
2019-07-12 09:35:48 +02:00
Robert Haschke
dd80c675fa
cannot use cmake generator expressions in COMMENT
2019-02-21 01:03:03 +01:00
Robert Haschke
36b63f0e35
fixup wrapping of solvers
...
- wrap JointInterPolationPlanner
- remove properties: group, timeout
- add actual planner properties
2019-02-21 01:01:33 +01:00
Robert Haschke
95d05ea05c
expose PropagatingEitherWay::restrictDirection()
...
fixup! expose PropagatingEitherWay::restrictDirectio()
2019-02-21 00:57:17 +01:00
janEbert
c59e41042f
Add test for all stages' PropertyMaps
...
Iterate over all stages and their properties to see check for missing conversion functions.
2018-10-29 18:00:49 +01:00
Robert Haschke
bb5b29d5fd
disable python default constructors for some classes
...
these classes do not yet handle nullptr as their argument
2018-10-29 18:00:49 +01:00
janEbert
00d5b00ec4
Provide default constructors for all stages
2018-10-29 18:00:49 +01:00
Robert Haschke
df820738c8
cleanup converter for ros::Duration
2018-10-29 18:00:49 +01:00
janEbert
e79f0f3054
add converter for std::set<std::string>
2018-10-29 18:00:49 +01:00
janEbert
fab40f64ed
register enum Connect::MergeMode
2018-10-29 18:00:49 +01:00
Robert Haschke
2f8ded2a4e
fixup! generalize Property conversion between C++ and Python
2018-10-29 18:00:49 +01:00
Robert Haschke
ed44c2cb33
adapt API: MoveRelative::setGoal -> setDirection
2018-10-25 03:27:10 +02:00
Robert Haschke
ff6661e8ba
python wrappers for new functionality since last merge
2018-10-25 03:26:43 +02:00
Robert Haschke
3ad03cf719
generalize Property conversion between C++ and Python
...
register appropriate converters for boost::any
2018-10-18 10:00:45 +02:00
Robert Haschke
14d10a2d93
replace MessageSignature with simple ros-msg-name string
2018-10-18 10:00:45 +02:00
Robert Haschke
074a3b7f03
RosMsgConverter: do not allow custom message name
2018-10-18 10:00:45 +02:00
Robert Haschke
fdec258b2c
ROSMsgConverter -> RosMsgConverter
2018-10-18 10:00:45 +02:00
Robert Haschke
1b267768fa
cleanup type conversion
2018-10-18 10:00:45 +02:00
Robert Haschke
3786ce5a15
protect fromPython / toPython
2018-10-17 02:00:14 +02:00
Robert Haschke
5d78b10366
fix compiler warnings
2018-10-17 02:00:14 +02:00
Robert Haschke
5bae196b21
fixes for Bionic
...
boost::python 1.65 is more picky about exactly returning the placeholder type in __init__ functions.
2018-10-17 01:18:39 +02:00
Robert Haschke
c9e735ded3
fix API to match MoveTo / MoveRelative stages
2018-10-17 01:18:39 +02:00
Robert Haschke
fbbb39592b
allow PoseStamped as property
2018-10-17 01:18:39 +02:00
Martin Meier
47232dd92b
pass verbose InitStageException from C++ to python
...
reverts df43ba1d68bb5c628a8e8f13729e7cdda872f1f9
2018-10-17 01:18:39 +02:00
Robert Haschke
effa437a53
Solution.toMsg()
2018-10-17 01:18:39 +02:00
Robert Haschke
14bd867df8
expose MonitoringGenerator's setMonitoringStage()
2018-10-17 01:18:39 +02:00
Robert Haschke
ef1bbaa439
Task::init(): verbose exception output
2018-10-17 01:18:39 +02:00
Robert Haschke
ea4b1e0c21
Properties: exposeTo(), configureInitFrom()
2018-10-17 01:18:39 +02:00
Robert Haschke
c80755348c
moved python includes to global include folder too
...
catkin package expects all includes to be in one global location
2018-10-17 01:18:39 +02:00
Robert Haschke
b36d91cc02
import .core by default
2018-10-17 01:18:39 +02:00