Skip to content

Commit

Permalink
Export Entity Type bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
aaravpandya committed May 1, 2024
1 parent d09a632 commit 98393cd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,19 @@ namespace gpudrive
.value("AgentRemoved", CollisionBehaviour::AgentRemoved)
.value("Ignore", CollisionBehaviour::Ignore);

nb::enum_<EntityType>(m, "EntityType")
.value("_None", EntityType::None)
.value("RoadEdge", EntityType::RoadEdge)
.value("RoadLine", EntityType::RoadLine)
.value("RoadLane", EntityType::RoadLane)
.value("CrossWalk", EntityType::CrossWalk)
.value("SpeedBump", EntityType::SpeedBump)
.value("StopSign", EntityType::StopSign)
.value("Vehicle", EntityType::Vehicle)
.value("Pedestrian", EntityType::Pedestrian)
.value("Cyclist", EntityType::Cyclist)
.value("Padding", EntityType::Padding)
.value("NumTypes", EntityType::NumTypes);

// Bindings for Manager class
nb::class_<Manager>(m, "SimManager")
Expand Down

0 comments on commit 98393cd

Please sign in to comment.