23 if (walker !=
nullptr) {
26 nav->AddWalker(walker->GetId(), walker->GetLocation());
39 if (walker !=
nullptr) {
42 nav->RemoveWalker(walker->GetId());
50 return nav->GetRandomLocation();
59 if (walker !=
nullptr) {
60 if (!nav->SetWalkerTarget(walker->GetId(), destination)) {
61 log_warning(
"NAV: Failed to set request to go to ", destination.
x, destination.
y, destination.
z);
64 log_warning(
"NAV: Failed to set request to go to ", destination.
x, destination.
y, destination.
z,
"(parent does not exist)");
73 if (walker !=
nullptr) {
74 if (!nav->SetWalkerMaxSpeed(walker->GetId(), max_speed)) {
78 log_warning(
"NAV: failed to set max speed (parent does not exist)");
WalkerAIController(ActorInitializer init)
This file contains definitions of common data structures used in traffic manager. ...
EpisodeProxy & GetEpisode()
Used to initialize Actor classes.
void SetMaxSpeed(const float max_speed)
void GoToLocation(const carla::geom::Location &destination)
static void log_warning(Args &&... args)
SharedPtr< Actor > GetParent() const
Represents an actor in the simulation.
SharedPtrType Lock() const
Same as TryLock but never return nullptr.
boost::optional< geom::Location > GetRandomLocation()