CARLA
载入中...
搜索中...
未找到
Unreal
CarlaUE4
Plugins
Carla
Source
Carla
Actor
ActorROS2Handler.h
浏览该文件的文档.
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
};
ROS2.h
AActor
ActorROS2Handler
visitor class
Definition
ActorROS2Handler.h:15
ActorROS2Handler::operator()
void operator()(carla::ros2::VehicleControl &Source)
Definition
ActorROS2Handler.cpp:12
ActorROS2Handler::ActorROS2Handler
ActorROS2Handler()=delete
ActorROS2Handler::ActorROS2Handler
ActorROS2Handler(AActor *Actor, std::string RosName)
Definition
ActorROS2Handler.h:18
ActorROS2Handler::_Actor
AActor * _Actor
Definition
ActorROS2Handler.h:23
ActorROS2Handler::_RosName
std::string _RosName
Definition
ActorROS2Handler.h:24
disable-ue4-macros.h
enable-ue4-macros.h
carla::ros2::VehicleControl
Definition
ROS2CallbackData.h:23
制作者
1.10.0