-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_cdff_envire.pxd
More file actions
182 lines (145 loc) · 5.37 KB
/
_cdff_envire.pxd
File metadata and controls
182 lines (145 loc) · 5.37 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
from libcpp.string cimport string
from libcpp cimport bool
from libc.stdint cimport int64_t
from libcpp.memory cimport shared_ptr as std_shared_ptr
# Type definitions
cdef extern from "boost/shared_ptr.hpp" namespace "boost":
cdef cppclass shared_ptr[T]:
shared_ptr()
shared_ptr(T*)
T* get()
cdef extern from "base/Time.hpp" namespace "base":
cdef cppclass Time:
Time()
int64_t microseconds
Time& assign "operator="(Time&)
bool operator<(Time)
bool operator>(Time)
bool operator==(Time)
bool operator!=(Time)
bool operator>=(Time)
bool operator<=(Time)
Time operator-(Time)
Time operator+(Time)
Time operator/(int)
Time operator*(double)
bool isNull()
string toString(Resolution, string)
cdef extern from "base/Time.hpp" namespace "base::Time":
cdef enum Resolution:
Seconds
Milliseconds
Microseconds
cdef extern from "base/Time.hpp" namespace "base::Time":
Time now()
cdef extern from "base/Eigen.hpp" namespace "base":
cdef cppclass Vector3d:
Vector3d()
Vector3d(double, double, double)
Vector3d(Vector3d&)
double* data()
int rows()
Vector3d& assign "operator="(Vector3d&)
bool operator==(Vector3d&)
bool operator!=(Vector3d&)
double& get "operator()"(int row)
double x()
double y()
double z()
double norm()
double squaredNorm()
cdef cppclass Quaterniond:
Quaterniond()
Quaterniond(double, double, double, double)
Quaterniond& assign "operator="(Quaterniond&)
double w()
double x()
double y()
double z()
Quaterniond conjugate()
Quaterniond inverse()
Quaterniond product "operator*"(Quaterniond&)
cdef extern from "base/TransformWithCovariance.hpp" namespace "base":
cdef cppclass TransformWithCovariance:
TransformWithCovariance()
TransformWithCovariance& assign "operator="(TransformWithCovariance&)
Vector3d translation
Quaterniond orientation
# EnviRe core
cdef extern from "envire_core/items/Transform.hpp" namespace "envire::core":
cdef cppclass Transform:
Transform()
Transform(Time)
Transform(Time, TransformWithCovariance)
Transform(TransformWithCovariance)
Transform(Vector3d, Quaterniond)
string toString()
Time time
TransformWithCovariance transform
cdef extern from "envire_core/items/ItemBase.hpp" namespace "envire::core":
cdef cppclass ItemBase:
#void setID(uuid)
#uuid getID()
string getIDString()
cdef extern from "envire_core/items/Item.hpp" namespace "envire::core":
cdef cppclass Item[_ItemData](ItemBase):
Item()
Item(_ItemData)
void setTime(Time)
Time getTime()
void setFrame(string)
string getFrame()
void setData(_ItemData)
_ItemData getData()
cdef extern from "envire_core/graph/EnvireGraph.hpp" namespace "envire::core":
cdef cppclass EnvireGraph:
cppclass ItemIterator[T]:
T operator*()
ItemIterator& next "operator++"()
ItemIterator& last "operator--"()
EnvireGraph()
EnvireGraph(const EnvireGraph&)
void addFrame(string) except +
void removeFrame(string) except +
bool containsFrame(string) except +
#void disconnectFrame(string)
bool containsEdge(string, string) except +
void addTransform(string, string, Transform) except +
void updateTransform(string, string, Transform) except +
Transform getTransform(string, string) except +
void removeTransform(string, string) except +
unsigned num_vertices()
unsigned num_edges()
void saveToFile(string)
void loadFromFile(string)
void clearFrame(string) except +
bool containsItems[T](string)
unsigned getItemCount[T](string)
unsigned getTotalItemCount(string)
#unsigned getItemCount(string)
void addItemToFrame[T](string, T) except +
void removeItemFromFrame[T](T) except +
ItemIterator[T] getItem[T](string, int) except +
cdef extern from "envire_helper.hpp":
cdef cppclass GenericItem:
GenericItem()
void initialize[_ItemData](_ItemData* content) except +
void setData[_ItemData](_ItemData* content)
void setTime[_ItemData](_ItemData* content, int64_t timestamp)
shared_ptr[Item[_ItemData]] getItem[_ItemData](_ItemData* content)
void addItemToFrame[_ItemData](
EnvireGraph& graph, const string& frame, _ItemData* contentPtr) except +
unsigned getItemCount[_ItemData](
EnvireGraph& graph, const string& frame, _ItemData* contentPtr) except +
cdef cppclass EnvireURDFModel:
void loadURDF(EnvireGraph& graph, const string& filename,
bool load_frames, bool load_joints,
bool load_visuals) except +
bool setJointAngle(const string &jointName, const float &value) except +
# EnviRe visualizer
cdef extern from "envire_visualizer/EnvireVisualizerInterface.hpp":
cdef cppclass EnvireVisualizerInterface:
EnvireVisualizerInterface()
void displayGraph(EnvireGraph graph, string base)
void redraw()
void show()