CARLA
载入中...
搜索中...
未找到
LibCarla
source
carla
ros2
publishers
CarlaGNSSPublisher.h
浏览该文件的文档.
1
// Copyright (c) 2022 Computer Vision Center (CVC) at the Universitat Autonoma de Barcelona (UAB).
2
// This work is licensed under the terms of the MIT license.
3
// For a copy, see <https://opensource.org/licenses/MIT>.
4
5
#pragma once
6
#define _GLIBCXX_USE_CXX11_ABI 0
7
8
#include <memory>
9
10
#include "
CarlaPublisher.h
"
11
12
namespace
carla
{
13
namespace
ros2 {
14
15
struct
CarlaGNSSPublisherImpl;
16
17
class
CarlaGNSSPublisher
:
public
CarlaPublisher
{
18
public
:
19
CarlaGNSSPublisher
(
const
char
* ros_name =
""
,
const
char
*
parent
=
""
);
20
~CarlaGNSSPublisher
();
21
CarlaGNSSPublisher
(
const
CarlaGNSSPublisher
&);
22
CarlaGNSSPublisher
&
operator=
(
const
CarlaGNSSPublisher
&);
23
CarlaGNSSPublisher
(
CarlaGNSSPublisher
&&);
24
CarlaGNSSPublisher
&
operator=
(
CarlaGNSSPublisher
&&);
25
26
bool
Init
();
27
bool
Publish
();
28
void
SetData
(int32_t seconds, uint32_t nanoseconds,
const
double
* data);
29
const
char
*
type
()
const override
{
return
"gnss"
; }
30
31
private
:
32
std::shared_ptr<CarlaGNSSPublisherImpl>
_impl
;
33
};
34
}
35
}
CarlaPublisher.h
carla::ros2::CarlaGNSSPublisher
Definition
CarlaGNSSPublisher.h:17
carla::ros2::CarlaGNSSPublisher::Init
bool Init()
Definition
CarlaGNSSPublisher.cpp:42
carla::ros2::CarlaGNSSPublisher::~CarlaGNSSPublisher
~CarlaGNSSPublisher()
Definition
CarlaGNSSPublisher.cpp:172
carla::ros2::CarlaGNSSPublisher::type
const char * type() const override
Definition
CarlaGNSSPublisher.h:29
carla::ros2::CarlaGNSSPublisher::SetData
void SetData(int32_t seconds, uint32_t nanoseconds, const double *data)
Definition
CarlaGNSSPublisher.cpp:151
carla::ros2::CarlaGNSSPublisher::_impl
std::shared_ptr< CarlaGNSSPublisherImpl > _impl
Definition
CarlaGNSSPublisher.h:32
carla::ros2::CarlaGNSSPublisher::CarlaGNSSPublisher
CarlaGNSSPublisher(const char *ros_name="", const char *parent="")
Definition
CarlaGNSSPublisher.cpp:166
carla::ros2::CarlaGNSSPublisher::operator=
CarlaGNSSPublisher & operator=(const CarlaGNSSPublisher &)
Definition
CarlaGNSSPublisher.cpp:196
carla::ros2::CarlaGNSSPublisher::Publish
bool Publish()
Definition
CarlaGNSSPublisher.cpp:89
carla::ros2::CarlaPublisher
Definition
CarlaPublisher.h:13
carla::ros2::CarlaPublisher::parent
const std::string & parent() const
Definition
CarlaPublisher.h:17
carla
This file contains definitions of common data structures used in traffic manager.
Definition
Carla.cpp:133
制作者
1.10.0