CARLA
Loading...
Searching...
No Matches
LibCarla
source
carla
ros2
publishers
CarlaSemanticLidarPublisher.h
Go to the documentation of this file.
1
// Copyright (c) 2026 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 "
carla/ros2/publishers/CarlaPointCloudPublisher.h
"
10
11
namespace
carla
{
12
namespace
ros2 {
13
14
class
CarlaSemanticLidarPublisher
:
public
CarlaPointCloudPublisher
{
15
public
:
16
CarlaSemanticLidarPublisher
(std::string base_topic_name, std::string frame_id,
bool
exact_topic =
false
)
17
:
CarlaPointCloudPublisher
(
std
::move(base_topic_name),
std
::move(frame_id), exact_topic) {}
18
19
private
:
20
[[nodiscard]] std::size_t
GetPointSize
()
const override
;
21
[[nodiscard]]
const
PointFieldDescriptor
*
GetFieldDescriptors
()
const override
;
22
[[nodiscard]] std::size_t
GetFieldDescriptorCount
()
const override
;
23
[[nodiscard]] std::vector<std::uint8_t>
ComputePointCloud
(
24
std::uint32_t height, std::uint32_t width,
const
std::uint8_t *data)
const override
;
25
};
26
27
}
// namespace ros2
28
}
// namespace carla
CarlaPointCloudPublisher.h
carla::ros2::CarlaPointCloudPublisher
Definition
CarlaPointCloudPublisher.h:37
carla::ros2::CarlaSemanticLidarPublisher
Definition
CarlaSemanticLidarPublisher.h:14
carla::ros2::CarlaSemanticLidarPublisher::GetFieldDescriptorCount
std::size_t GetFieldDescriptorCount() const override
Definition
CarlaSemanticLidarPublisher.cpp:45
carla::ros2::CarlaSemanticLidarPublisher::GetFieldDescriptors
const PointFieldDescriptor * GetFieldDescriptors() const override
Definition
CarlaSemanticLidarPublisher.cpp:41
carla::ros2::CarlaSemanticLidarPublisher::CarlaSemanticLidarPublisher
CarlaSemanticLidarPublisher(std::string base_topic_name, std::string frame_id, bool exact_topic=false)
Definition
CarlaSemanticLidarPublisher.h:16
carla::ros2::CarlaSemanticLidarPublisher::GetPointSize
std::size_t GetPointSize() const override
Definition
CarlaSemanticLidarPublisher.cpp:37
carla::ros2::CarlaSemanticLidarPublisher::ComputePointCloud
std::vector< std::uint8_t > ComputePointCloud(std::uint32_t height, std::uint32_t width, const std::uint8_t *data) const override
Definition
CarlaSemanticLidarPublisher.cpp:49
carla
This file contains definitions of common data structures used in traffic manager.
Definition
SignComponent.h:21
std
Definition
CarlaRecorderCollision.h:31
carla::ros2::PointFieldDescriptor
Definition
PointCloudFieldsLayout.h:33
Generated by
1.9.8