CARLA
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
carla::ros2::CarlaDVSImagePublisher Class Referencefinal

#include <CarlaDVSCameraPublisher.h>

+ Inheritance diagram for carla::ros2::CarlaDVSImagePublisher:

Public Member Functions

 CarlaDVSImagePublisher (std::string base_topic_name, std::string frame_id)
 
bool WriteImageFromEvents (std::int32_t seconds, std::uint32_t nanoseconds, std::uint32_t height, std::uint32_t width, const std::uint8_t *events, std::size_t event_count, std::size_t event_stride)
 
- Public Member Functions inherited from carla::ros2::CarlaCameraPublisher
 CarlaCameraPublisher (CarlaCameraPublisher &&) noexcept=default
 
 CarlaCameraPublisher (const CarlaCameraPublisher &)=delete
 
 CarlaCameraPublisher (std::string base_topic_name, std::string frame_id)
 
CarlaCameraPublisher & operator= (CarlaCameraPublisher &&) noexcept=default
 
CarlaCameraPublisher & operator= (const CarlaCameraPublisher &)=delete
 
bool Publish () override
 
bool WriteCameraInfo (int32_t seconds, uint32_t nanoseconds, uint32_t x_offset, uint32_t y_offset, uint32_t height, uint32_t width, float fov, bool do_rectify)
 
bool WriteImage (int32_t seconds, uint32_t nanoseconds, uint32_t height, uint32_t width, const uint8_t *data)
 
 ~CarlaCameraPublisher () override
 
- Public Member Functions inherited from carla::ros2::BasePublisher
 BasePublisher ()=default
 
 BasePublisher (BasePublisher &&)=delete
 
 BasePublisher (const BasePublisher &)=delete
 
 BasePublisher (std::string base_topic_name)
 
 BasePublisher (std::string base_topic_name, std::string frame_id)
 
 BasePublisher (void *actor, std::string base_topic_name, std::string frame_id)
 
void * GetActor () const noexcept
 
const std::string & GetBaseTopicName () const noexcept
 
const std::string & GetFrameId () const noexcept
 
BasePublisher & operator= (BasePublisher &&)=delete
 
BasePublisher & operator= (const BasePublisher &)=delete
 
virtual ~BasePublisher ()=default
 

Protected Member Functions

std::uint8_t GetChannels () const override
 
std::string GetEncoding () const override
 
- Protected Member Functions inherited from carla::ros2::CarlaCameraPublisher
virtual std::vector< uint8_t > ComputeImage (uint32_t height, uint32_t width, const uint8_t *data) const
 

Additional Inherited Members

- Protected Attributes inherited from carla::ros2::BasePublisher
void * _actor {nullptr}
 
std::string _base_topic_name
 
std::string _frame_id
 

Detailed Description

Definition at line 26 of file CarlaDVSCameraPublisher.h.

Constructor & Destructor Documentation

◆ CarlaDVSImagePublisher()

carla::ros2::CarlaDVSImagePublisher::CarlaDVSImagePublisher ( std::string  base_topic_name,
std::string  frame_id 
)
inline

Definition at line 28 of file CarlaDVSCameraPublisher.h.

Member Function Documentation

◆ GetChannels()

std::uint8_t carla::ros2::CarlaDVSImagePublisher::GetChannels ( ) const
inlineoverrideprotectedvirtual

Implements carla::ros2::CarlaCameraPublisher.

Definition at line 43 of file CarlaDVSCameraPublisher.h.

◆ GetEncoding()

std::string carla::ros2::CarlaDVSImagePublisher::GetEncoding ( ) const
inlineoverrideprotectedvirtual

Implements carla::ros2::CarlaCameraPublisher.

Definition at line 44 of file CarlaDVSCameraPublisher.h.

◆ WriteImageFromEvents()

bool carla::ros2::CarlaDVSImagePublisher::WriteImageFromEvents ( std::int32_t  seconds,
std::uint32_t  nanoseconds,
std::uint32_t  height,
std::uint32_t  width,
const std::uint8_t *  events,
std::size_t  event_count,
std::size_t  event_stride 
)

The documentation for this class was generated from the following files: