CARLA
Loading...
Searching...
No Matches
Namespaces | Typedefs | Functions
LocalizationUtils.h File Reference
#include "carla/client/Actor.h"
#include "carla/client/ActorList.h"
#include "carla/client/Vehicle.h"
#include "carla/client/World.h"
#include "carla/geom/Location.h"
#include "carla/road/RoadTypes.h"
#include "carla/rpc/ActorId.h"
#include "carla/trafficmanager/Constants.h"
#include "carla/trafficmanager/SimpleWaypoint.h"
#include "carla/trafficmanager/TrackTraffic.h"

Go to the source code of this file.

Namespaces

namespace  carla
 This file contains definitions of common data structures used in traffic manager.
 
namespace  carla::traffic_manager
 

Typedefs

using carla::traffic_manager::Actor = carla::SharedPtr< cc::Actor >
 
using carla::traffic_manager::ActorIdSet = std::unordered_set< ActorId >
 
using carla::traffic_manager::TargetWPInfo = std::pair< SimpleWaypointPtr, uint64_t >
 Method to return the wayPoints from the waypoint Buffer by using target point distance.
 

Functions

float carla::traffic_manager::DeviationCrossProduct (const cg::Location &reference_location, const cg::Vector3D &heading_vector, const cg::Location &target_location)
 Returns the cross product (z component value) between the vehicle's heading vector and the vector along the direction to the next target waypoint on the horizon.
 
float carla::traffic_manager::DeviationDotProduct (const cg::Location &reference_location, const cg::Vector3D &heading_vector, const cg::Location &target_location)
 Returns the dot product between the vehicle's heading vector and the vector along the direction to the next target waypoint on the horizon.
 
TargetWPInfo carla::traffic_manager::GetTargetWaypoint (const Buffer &waypoint_buffer, const float &target_point_distance)
 
void carla::traffic_manager::PopWaypoint (ActorId actor_id, TrackTraffic &track_traffic, Buffer &buffer, bool front_or_back)
 
void carla::traffic_manager::PushWaypoint (ActorId actor_id, TrackTraffic &track_traffic, Buffer &buffer, SimpleWaypointPtr &waypoint)