CARLA
Loading...
Searching...
No Matches
CarlaRGBCameraPublisher.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
11#include <string>
12#include <utility>
13
14namespace carla {
15namespace ros2 {
16
18public:
19 CarlaRGBCameraPublisher(std::string base_topic_name, std::string frame_id)
20 : CarlaCameraPublisher(std::move(base_topic_name), std::move(frame_id)) {}
21
22protected:
23 [[nodiscard]] uint8_t GetChannels() const override { return 4; }
24 [[nodiscard]] std::string GetEncoding() const override { return "bgra8"; }
25};
26
27} // namespace ros2
28} // namespace carla
CarlaCameraPublisher(std::string base_topic_name, std::string frame_id)
CarlaRGBCameraPublisher(std::string base_topic_name, std::string frame_id)
This file contains definitions of common data structures used in traffic manager.