CARLA
Toggle main menu visibility
Loading...
Searching...
No Matches
LibCarla
source
carla
ros2
publishers
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
9
#include "
carla/ros2/publishers/CarlaCameraPublisher.h
"
10
11
#include <string>
12
#include <utility>
13
14
namespace
carla
{
15
namespace
ros2
{
16
17
class
CarlaRGBCameraPublisher
:
public
CarlaCameraPublisher
{
18
public
:
19
CarlaRGBCameraPublisher
(std::string base_topic_name, std::string frame_id)
20
:
CarlaCameraPublisher
(
std
::move(base_topic_name),
std
::move(frame_id)) {}
21
22
protected
:
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.h
carla::ros2::CarlaCameraPublisher::CarlaCameraPublisher
CarlaCameraPublisher(std::string base_topic_name, std::string frame_id)
Definition
CarlaCameraPublisher.cpp:29
carla::ros2::CarlaRGBCameraPublisher::GetEncoding
std::string GetEncoding() const override
Definition
CarlaRGBCameraPublisher.h:24
carla::ros2::CarlaRGBCameraPublisher::CarlaRGBCameraPublisher
CarlaRGBCameraPublisher(std::string base_topic_name, std::string frame_id)
Definition
CarlaRGBCameraPublisher.h:19
carla::ros2::CarlaRGBCameraPublisher::GetChannels
uint8_t GetChannels() const override
Definition
CarlaRGBCameraPublisher.h:23
carla::ros2
Definition
AutowareSteeringCompensation.h:15
carla
This file contains definitions of common data structures used in traffic manager.
Definition
SignComponent.h:21
std
Definition
CarlaRecorderCollision.h:31
Generated by
1.18.0