35 lines
741 B
C++
35 lines
741 B
C++
// Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma
|
|
// de Barcelona (UAB).
|
|
//
|
|
// This work is licensed under the terms of the MIT license.
|
|
// For a copy, see <https://opensource.org/licenses/MIT>.
|
|
|
|
#pragma once
|
|
|
|
#include "carla/client/Actor.h"
|
|
#include "carla/geom/Vector3D.h"
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
namespace carla {
|
|
namespace client {
|
|
|
|
class WalkerAIController : public Actor {
|
|
public:
|
|
|
|
explicit WalkerAIController(ActorInitializer init);
|
|
|
|
void Start();
|
|
|
|
void Stop();
|
|
|
|
boost::optional<geom::Location> GetRandomLocation();
|
|
|
|
void GoToLocation(const carla::geom::Location &destination);
|
|
|
|
void SetMaxSpeed(const float max_speed);
|
|
};
|
|
|
|
} // namespace client
|
|
} // namespace carla
|