#include <WalkerNavigation.h>
◆ WalkerNavigation()
carla::client::detail::WalkerNavigation::WalkerNavigation |
( |
std::weak_ptr< Simulator > | simulator | ) |
|
|
explicit |
◆ AddWalker()
◆ CheckIfWalkerExist()
void carla::client::detail::WalkerNavigation::CheckIfWalkerExist |
( |
std::vector< WalkerHandle > | walkers, |
|
|
const EpisodeState & | state ) |
|
private |
◆ GetRandomLocation()
boost::optional< geom::Location > carla::client::detail::WalkerNavigation::GetRandomLocation |
( |
| ) |
|
|
inline |
◆ RegisterWalker()
void carla::client::detail::WalkerNavigation::RegisterWalker |
( |
ActorId | walker_id, |
|
|
ActorId | controller_id ) |
|
inline |
◆ RemoveWalker()
void carla::client::detail::WalkerNavigation::RemoveWalker |
( |
ActorId | walker_id | ) |
|
|
inline |
◆ SetPedestriansCrossFactor()
void carla::client::detail::WalkerNavigation::SetPedestriansCrossFactor |
( |
float | percentage | ) |
|
|
inline |
◆ SetPedestriansSeed()
void carla::client::detail::WalkerNavigation::SetPedestriansSeed |
( |
unsigned int | seed | ) |
|
|
inline |
◆ SetWalkerMaxSpeed()
bool carla::client::detail::WalkerNavigation::SetWalkerMaxSpeed |
( |
ActorId | id, |
|
|
float | max_speed ) |
|
inline |
◆ SetWalkerTarget()
◆ Tick()
void carla::client::detail::WalkerNavigation::Tick |
( |
std::shared_ptr< Episode > | episode | ) |
|
在文件 WalkerNavigation.cpp 第 33 行定义.
引用了 _nav, _simulator, _walkers, CheckIfWalkerExist(), carla::nav::Navigation::GetWalkerSpeed(), carla::nav::Navigation::GetWalkerTransform(), carla::nav::Navigation::IsWalkerAlive(), carla::nav::Navigation::RemoveAgent(), UnregisterWalker(), carla::nav::Navigation::UpdateCrowd() , 以及 UpdateVehiclesInCrowd().
◆ UnregisterWalker()
void carla::client::detail::WalkerNavigation::UnregisterWalker |
( |
ActorId | walker_id, |
|
|
ActorId | controller_id ) |
|
inline |
◆ UpdateVehiclesInCrowd()
void carla::client::detail::WalkerNavigation::UpdateVehiclesInCrowd |
( |
std::shared_ptr< Episode > | episode, |
|
|
bool | show_debug = false ) |
|
private |
add/update/delete all vehicles in crowd
在文件 WalkerNavigation.cpp 第 104 行定义.
引用了 _nav, _simulator, carla::rpc::DebugShape::color, carla::nav::Navigation::GetCrowd(), carla::nav::VehicleCollisionInfo::id, carla::rpc::DebugShape::life_time, carla::rpc::DebugShape::persistent_lines, carla::rpc::DebugShape::primitive, carla::client::ActorSnapshot::transform, carla::nav::Navigation::UpdateVehicles(), carla::geom::Vector3D::x, carla::geom::Vector3D::y , 以及 carla::geom::Vector3D::z.
被这些函数引用 Tick().
◆ _nav
在文件 WalkerNavigation.h 第 97 行定义.
被这些函数引用 AddWalker(), CheckIfWalkerExist(), GetRandomLocation(), RemoveWalker(), SetPedestriansCrossFactor(), SetPedestriansSeed(), SetWalkerMaxSpeed(), SetWalkerTarget(), Tick(), UpdateVehiclesInCrowd() , 以及 WalkerNavigation().
◆ _next_check_index
unsigned long carla::client::detail::WalkerNavigation::_next_check_index |
|
private |
◆ _simulator
std::weak_ptr<Simulator> carla::client::detail::WalkerNavigation::_simulator |
|
private |
◆ _walkers
该类的文档由以下文件生成: