CARLA
Loading...
Searching...
No Matches
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
10
11namespace carla {
12namespace ros2 {
13
15public:
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
19private:
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
const PointFieldDescriptor * GetFieldDescriptors() const override
CarlaSemanticLidarPublisher(std::string base_topic_name, std::string frame_id, bool exact_topic=false)
std::vector< std::uint8_t > ComputePointCloud(std::uint32_t height, std::uint32_t width, const std::uint8_t *data) const override
This file contains definitions of common data structures used in traffic manager.