|
CARLA
|
Inheritance diagram for MockPublisherMiddleware:Public Member Functions | |
| std::string | GetTopicName () const override |
| bool | Init (const std::string &topic_name) override |
| Initialize the underlying middleware entities. | |
| bool | IsAlive () const override |
| bool | Publish (void *message_data) override |
| Serialize and write a message to the network. | |
Public Member Functions inherited from carla::ros2::IPublisherMiddleware | |
| virtual bool | Init (const std::string &topic_name, const QosProfile &qos) |
| Initialize with an explicit per-topic QoS profile (see QosProfile.h). | |
| virtual | ~IPublisherMiddleware ()=default |
Public Attributes | |
| bool | alive {true} |
| bool | init_called {false} |
| bool | init_return_value {true} |
| void * | last_published_data {nullptr} |
| std::string | last_topic_name |
| bool | publish_called {false} |
| bool | publish_return_value {true} |
Definition at line 1069 of file test_ros2_middleware.cpp.
|
inlineoverridevirtual |
Implements carla::ros2::IPublisherMiddleware.
Definition at line 1093 of file test_ros2_middleware.cpp.
References last_topic_name.
|
inlineoverridevirtual |
Initialize the underlying middleware entities.
| topic_name | Full topic name including "rt/" prefix. |
Implements carla::ros2::IPublisherMiddleware.
Definition at line 1080 of file test_ros2_middleware.cpp.
References init_called, init_return_value, and last_topic_name.
|
inlineoverridevirtual |
Implements carla::ros2::IPublisherMiddleware.
Definition at line 1092 of file test_ros2_middleware.cpp.
References alive.
|
inlineoverridevirtual |
Serialize and write a message to the network.
| message_data | Pointer to the message object (type-erased, cast internally). |
Implements carla::ros2::IPublisherMiddleware.
Definition at line 1086 of file test_ros2_middleware.cpp.
References last_published_data, publish_called, and publish_return_value.
| bool MockPublisherMiddleware::alive {true} |
Definition at line 1073 of file test_ros2_middleware.cpp.
Referenced by IsAlive().
| bool MockPublisherMiddleware::init_called {false} |
Definition at line 1075 of file test_ros2_middleware.cpp.
Referenced by Init().
| bool MockPublisherMiddleware::init_return_value {true} |
Definition at line 1071 of file test_ros2_middleware.cpp.
Referenced by Init().
| void* MockPublisherMiddleware::last_published_data {nullptr} |
Definition at line 1078 of file test_ros2_middleware.cpp.
Referenced by Publish().
| std::string MockPublisherMiddleware::last_topic_name |
Definition at line 1077 of file test_ros2_middleware.cpp.
Referenced by GetTopicName(), and Init().
| bool MockPublisherMiddleware::publish_called {false} |
Definition at line 1076 of file test_ros2_middleware.cpp.
Referenced by Publish().
| bool MockPublisherMiddleware::publish_return_value {true} |
Definition at line 1072 of file test_ros2_middleware.cpp.
Referenced by Publish().