CARLA
Loading...
Searching...
No Matches
ActiveMiddleware.cpp
Go to the documentation of this file.
1// Copyright (c) 2026 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
7
8namespace carla {
9namespace ros2 {
10
12 const auto resolution = MiddlewareFactory::ResolveMiddleware(requested);
13 if (resolution.success) {
14 MiddlewareFactory::SetMiddleware(resolution.middleware);
15 }
16 return resolution.success;
17}
18
22
27
28} // namespace ros2
29} // namespace carla
static ResolvedDomainId ResolveEffective()
Resolve the effective domain id and its source from the configured value, the ROS_DOMAIN_ID environme...
static void SetDomainId(int id)
Configure the ROS 2 domain id for all subsequent transport contexts.
static void SetMiddleware(Middleware middleware)
Select the middleware for all subsequent publisher/subscriber creation.
static std::string GetAvailableMiddlewareString()
Return a readable list of middleware implementations compiled into this binary.
static MiddlewareResolution ResolveMiddleware(Middleware requested)
Resolve the requested middleware strictly — no fallback to other middleware.
std::string GetAvailableMiddleware()
Middleware
Enumeration of available middleware implementations.
Definition Middleware.h:15
bool SetActiveMiddleware(Middleware requested)
DDS-free bridge for selecting the active middleware across the shared-library boundary.
ResolvedDomainId SetActiveDomainId(int domain_id)
Store the domain id in the shared library's MiddlewareConfig and return the effective domain id resol...
This file contains definitions of common data structures used in traffic manager.
The resolved domain id together with the source it came from.