CARLA
Unreal
CarlaUE4
Plugins
Carla
Source
Carla
Actor
ActorROS2Handler.h
Go to the documentation of this file.
1
// Copyright (c) 2023 Computer Vision Center (CVC) at the Universitat Autonoma
2
// de Barcelona (UAB).
3
//
4
// This work is licensed under the terms of the MIT license.
5
// For a copy, see <https://opensource.org/licenses/MIT>.
6
7
#pragma once
8
9
#include <
compiler/disable-ue4-macros.h
>
10
#include "
carla/ros2/ROS2.h
"
11
#include <
compiler/enable-ue4-macros.h
>
12
13
/// visitor class
14
class
ActorROS2Handler
15
{
16
public
:
17
ActorROS2Handler
() =
delete
;
18
ActorROS2Handler
(
AActor
*
Actor
, std::string RosName) :
_Actor
(Actor),
_RosName
(RosName) {};
19
20
void
operator()
(
carla::ros2::VehicleControl
&Source);
21
22
private
:
23
AActor
*
_Actor
{
nullptr
};
24
std::string
_RosName
;
25
};
ActorROS2Handler
visitor class
Definition:
ActorROS2Handler.h:14
ActorROS2Handler::ActorROS2Handler
ActorROS2Handler(AActor *Actor, std::string RosName)
Definition:
ActorROS2Handler.h:18
ActorROS2Handler::_Actor
AActor * _Actor
Definition:
ActorROS2Handler.h:23
carla::ros2::VehicleControl
Definition:
ROS2CallbackData.h:22
ActorROS2Handler::_RosName
std::string _RosName
Definition:
ActorROS2Handler.h:24
carla::traffic_manager::Actor
carla::SharedPtr< cc::Actor > Actor
Definition:
LocalizationUtils.h:26
AActor
ActorROS2Handler::operator()
void operator()(carla::ros2::VehicleControl &Source)
Definition:
ActorROS2Handler.cpp:12
enable-ue4-macros.h
disable-ue4-macros.h
ROS2.h
ActorROS2Handler::ActorROS2Handler
ActorROS2Handler()=delete
Generated by
1.8.13