-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathmc_rbdyn.pxd
More file actions
113 lines (75 loc) · 3.17 KB
/
Copy pathmc_rbdyn.pxd
File metadata and controls
113 lines (75 loc) · 3.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#
# Copyright 2015-2019 CNRS-UM LIRMM, CNRS-AIST JRL
#
cimport mc_rbdyn.c_mc_rbdyn as c_mc_rbdyn
from libcpp.vector cimport vector
from libcpp cimport bool as cppbool
cdef extern from "<memory>" namespace "std" nogil:
cdef cppclass shared_ptr[T]:
shared_ptr()
shared_ptr(T*)
T* get()
T& operator*()
cdef class Collision(object):
cdef c_mc_rbdyn.Collision impl
cdef Collision CollisionFromC(const c_mc_rbdyn.Collision&)
cdef class BodySensor(object):
cdef cppbool own_impl__
cdef const c_mc_rbdyn.BodySensor * impl
cdef BodySensor BodySensorFromCRef(const c_mc_rbdyn.BodySensor&)
cdef class Flexibility(object):
cdef c_mc_rbdyn.Flexibility impl
cdef Flexibility FlexibilityFromC(const c_mc_rbdyn.Flexibility&)
cdef class ForceSensor(object):
cdef cppbool own_impl__
cdef const c_mc_rbdyn.ForceSensor * impl
cdef ForceSensor ForceSensorFromCRef(const c_mc_rbdyn.ForceSensor&)
cdef class Springs(object):
cdef c_mc_rbdyn.Springs impl
cdef class Base(object):
cdef c_mc_rbdyn.Base impl
cdef Springs SpringsFromC(const c_mc_rbdyn.Springs&)
cdef public api class RobotModule(object)[object RobotModuleObject, type RobotModuleType]:
cdef c_mc_rbdyn.RobotModulePtr impl
cdef public api RobotModule RobotModuleFromC(c_mc_rbdyn.RobotModulePtr)
cdef public api class RobotModuleVector(object)[object RobotModuleVectorObject, type RobotModuleVectorType]:
cdef vector[c_mc_rbdyn.RobotModulePtr] v
cdef class Robots(object):
cdef shared_ptr[c_mc_rbdyn.Robots] impl
cdef Robots RobotsFromPtr(shared_ptr[c_mc_rbdyn.Robots])
cdef Robots RobotsFromRef(c_mc_rbdyn.Robots &)
# Robot cannot be copied and will never own their pointer
cdef class Robot(object):
cdef c_mc_rbdyn.Robot * impl
cdef Robot RobotFromC(const c_mc_rbdyn.Robot &)
# Surface are also not copiable
cdef class Surface(object):
cdef shared_ptr[c_mc_rbdyn.Surface] ptr
cdef c_mc_rbdyn.Surface * impl
cdef SurfaceFromC(const c_mc_rbdyn.Surface &)
cdef SurfaceFromPtr(shared_ptr[c_mc_rbdyn.Surface], cppbool keep_ptr=?)
cdef class PlanarSurface(Surface):
cdef c_mc_rbdyn.PlanarSurface * surf
cdef PlanarSurface PlanarSurfaceFromPtr(c_mc_rbdyn.PlanarSurface*)
cdef class GripperSurface(Surface):
cdef c_mc_rbdyn.GripperSurface * surf
cdef GripperSurface GripperSurfaceFromPtr(c_mc_rbdyn.GripperSurface*)
cdef class CylindricalSurface(Surface):
cdef c_mc_rbdyn.CylindricalSurface * surf
cdef CylindricalSurface CylindricalSurfaceFromPtr(c_mc_rbdyn.CylindricalSurface*)
cdef class Contact(object):
cdef shared_ptr[c_mc_rbdyn.Contact] ptr
cdef c_mc_rbdyn.Contact * impl
cdef cppbool own_impl__
cdef Contact ContactFromC(const c_mc_rbdyn.Contact &, cppbool copy=?)
cdef Contact ContactFromPtr(shared_ptr[c_mc_rbdyn.Contact], cppbool copy=?)
cdef class ContactVector(object):
cdef vector[c_mc_rbdyn.Contact] * v
cdef cppbool own_impl__
cdef ContactVector ContactVectorFromC(const vector[c_mc_rbdyn.Contact] &, cppbool copy=?)
cdef class GeosGeomGeometry(object):
cdef shared_ptr[c_mc_rbdyn.Geometry] impl
cdef GeosGeomGeometry GeosGeomGeometryFromSharedPtr(shared_ptr[c_mc_rbdyn.Geometry])
cdef class PolygonInterpolator(object):
cdef c_mc_rbdyn.PolygonInterpolator * impl
cdef cppbool own_impl__