CARLA
载入中...
搜索中...
未找到
LibCarla
source
carla
ros2
publishers
CarlaSemanticLidarPublisher.h
浏览该文件的文档.
1
// Copyright (c) 2022 Computer Vision Center (CVC) at the Universitat Autonoma de Barcelona (UAB).
2
// This work is licensed under the terms of the MIT license.
3
// For a copy, see <https://opensource.org/licenses/MIT>.
4
5
#pragma once
6
#define _GLIBCXX_USE_CXX11_ABI 0
7
8
#include <memory>
9
#include <vector>
10
11
#include "
CarlaPublisher.h
"
12
13
namespace
carla
{
14
namespace
ros2 {
15
16
struct
CarlaSemanticLidarPublisherImpl;
17
18
class
CarlaSemanticLidarPublisher
:
public
CarlaPublisher
{
19
public
:
20
CarlaSemanticLidarPublisher
(
const
char
* ros_name =
""
,
const
char
*
parent
=
""
);
21
~CarlaSemanticLidarPublisher
();
22
CarlaSemanticLidarPublisher
(
const
CarlaSemanticLidarPublisher
&);
23
CarlaSemanticLidarPublisher
&
operator=
(
const
CarlaSemanticLidarPublisher
&);
24
CarlaSemanticLidarPublisher
(
CarlaSemanticLidarPublisher
&&);
25
CarlaSemanticLidarPublisher
&
operator=
(
CarlaSemanticLidarPublisher
&&);
26
27
bool
Init
();
28
bool
Publish
();
29
void
SetData
(int32_t seconds, uint32_t nanoseconds,
size_t
elements,
size_t
height,
size_t
width,
float
* data);
30
const
char
*
type
()
const override
{
return
"semantic lidar"
; }
31
32
private
:
33
void
SetData
(int32_t seconds, uint32_t nanoseconds,
size_t
height,
size_t
width, std::vector<uint8_t>&& data);
34
35
private
:
36
std::shared_ptr<CarlaSemanticLidarPublisherImpl>
_impl
;
37
};
38
}
39
}
CarlaPublisher.h
carla::ros2::CarlaPublisher
Definition
CarlaPublisher.h:13
carla::ros2::CarlaPublisher::parent
const std::string & parent() const
Definition
CarlaPublisher.h:17
carla::ros2::CarlaSemanticLidarPublisher
Definition
CarlaSemanticLidarPublisher.h:18
carla::ros2::CarlaSemanticLidarPublisher::_impl
std::shared_ptr< CarlaSemanticLidarPublisherImpl > _impl
Definition
CarlaSemanticLidarPublisher.h:36
carla::ros2::CarlaSemanticLidarPublisher::type
const char * type() const override
Definition
CarlaSemanticLidarPublisher.h:30
carla::ros2::CarlaSemanticLidarPublisher::SetData
void SetData(int32_t seconds, uint32_t nanoseconds, size_t elements, size_t height, size_t width, float *data)
Definition
CarlaSemanticLidarPublisher.cpp:151
carla::ros2::CarlaSemanticLidarPublisher::Init
bool Init()
Definition
CarlaSemanticLidarPublisher.cpp:43
carla::ros2::CarlaSemanticLidarPublisher::CarlaSemanticLidarPublisher
CarlaSemanticLidarPublisher(const char *ros_name="", const char *parent="")
Definition
CarlaSemanticLidarPublisher.cpp:217
carla::ros2::CarlaSemanticLidarPublisher::operator=
CarlaSemanticLidarPublisher & operator=(const CarlaSemanticLidarPublisher &)
Definition
CarlaSemanticLidarPublisher.cpp:247
carla::ros2::CarlaSemanticLidarPublisher::Publish
bool Publish()
Definition
CarlaSemanticLidarPublisher.cpp:89
carla::ros2::CarlaSemanticLidarPublisher::~CarlaSemanticLidarPublisher
~CarlaSemanticLidarPublisher()
Definition
CarlaSemanticLidarPublisher.cpp:223
carla
This file contains definitions of common data structures used in traffic manager.
Definition
Carla.cpp:133
制作者
1.10.0