Skip to content

Commit e1bb5ad

Browse files
GoldenZephyrnathanhhughes
authored andcommitted
Add python bindings for TraversabilityState (#74)
1 parent 7d32c63 commit e1bb5ad

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

python/bindings/src/attributes.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,12 @@ void init_attributes(py::module_& m) {
186186
.def_readwrite("max", &BoundaryInfo::max)
187187
.def_readwrite("states", &BoundaryInfo::states);
188188

189+
py::enum_<TraversabilityState>(m, "TraversabilityState")
190+
.value("UNKNOWN", TraversabilityState::UNKNOWN)
191+
.value("TRAVERSABLE", TraversabilityState::TRAVERSABLE)
192+
.value("INTRAVERSABLE", TraversabilityState::INTRAVERSABLE)
193+
.value("TRAVERSED", TraversabilityState::TRAVERSED);
194+
189195
py::class_<TraversabilityNodeAttributes, NodeAttributes>(m, "TraversabilityNodeAttributes")
190196
.def(py::init<>())
191197
.def_readwrite("boundary", &TraversabilityNodeAttributes::boundary)

0 commit comments

Comments
 (0)