40 unsigned int currentIndex { 0 };
42 std::vector<WalkerRoutePoint>
route;
56 void SetSimulator(std::weak_ptr<carla::client::detail::Simulator> simulator);
65 bool Update(
double delta);
68 bool SetWalkerRoute(
ActorId id);
72 bool SetWalkerNextPoint(
ActorId id);
88 void GetAllTrafficLightWaypoints();
92 std::unordered_map<ActorId, WalkerInfo>
_walkers;
95 std::weak_ptr<carla::client::detail::Simulator>
_simulator;
std::vector< WalkerRoutePoint > route
std::weak_ptr< carla::client::detail::Simulator > _simulator
boost::shared_ptr< T > SharedPtr
Use this SharedPtr (boost::shared_ptr) to keep compatibility with boost::python, but it would be nice...
WalkerRoutePoint(WalkerEvent ev, carla::geom::Location loc, unsigned char area)
This file contains definitions of common data structures used in traffic manager. ...
EventResult
result of an event
boost::variant2::variant< WalkerEventIgnore, WalkerEventWait, WalkerEventStopAndCheck > WalkerEvent
walker event variant
std::vector< std::pair< SharedPtr< carla::client::TrafficLight >, carla::geom::Location > > _traffic_lights
Navigation * GetNavigation()
return the navigation object
carla::geom::Location from
std::unordered_map< ActorId, WalkerInfo > _walkers
carla::geom::Location location
Inherit (privately) to suppress copy/move construction and assignment.
Manage the pedestrians navigation, using the Recast & Detour library for low level calculations...