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)");
Used to initialize Actor classes.
Represents an actor in the simulation.
void SetMaxSpeed(const float max_speed)
boost::optional< geom::Location > GetRandomLocation()
void GoToLocation(const carla::geom::Location &destination)
WalkerAIController(ActorInitializer init)
EpisodeProxy & GetEpisode()
SharedPtr< Actor > GetParent() const
SharedPtrType Lock() const
Same as TryLock but never return nullptr.
This file contains definitions of common data structures used in traffic manager.
static void log_warning(Args &&... args)