-
Notifications
You must be signed in to change notification settings - Fork 29
refactor(rtps)!: consolidate to a single rtps component + thorough docs (mermaid)
#712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
8f5e9db
refactor(rtps)!: consolidate to a single `rtps` component + thorough …
finger563 d4d55c6
docs(rtps): add documentation link + fix menuconfig reference
finger563 b570d68
fix(esp32-p4): migrate example RTPS usage to the new facade API
finger563 83267ca
fix(esp32-p4): reduce scope of 'published' (cppcheck variableScope)
finger563 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,65 @@ | ||
| idf_component_register( | ||
| INCLUDE_DIRS "include" | ||
| SRC_DIRS "src" | ||
| REQUIRES base_component cdr task socket) | ||
| SRCS | ||
| "src/rtps_participant.cpp" | ||
| "src/communication/EsppTransport.cpp" | ||
| "src/discovery/ParticipantProxyData.cpp" | ||
| "src/discovery/SEDPAgent.cpp" | ||
| "src/discovery/SPDPAgent.cpp" | ||
| "src/discovery/TopicData.cpp" | ||
| "src/entities/Domain.cpp" | ||
| "src/entities/Participant.cpp" | ||
| "src/entities/Reader.cpp" | ||
| "src/entities/StatefulReader.cpp" | ||
| "src/entities/StatefulWriter.cpp" | ||
| "src/entities/StatelessReader.cpp" | ||
| "src/entities/StatelessWriter.cpp" | ||
| "src/entities/Writer.cpp" | ||
| "src/messages/MessageReceiver.cpp" | ||
| "src/messages/MessageTypes.cpp" | ||
| "src/utils/Diagnostics.cpp" | ||
| INCLUDE_DIRS | ||
| "include" | ||
| REQUIRES | ||
| base_component cdr task thread_pool socket | ||
| ) | ||
|
|
||
| # Select the RTPS static-limits profile from Kconfig (see Kconfig in this | ||
| # component). The "embedded" profile is the default and is byte-identical to the | ||
| # historical behavior: it defines no RTPS_CONFIG_HEADER, so config.hpp selects | ||
| # rtps/config_esp32.hpp via ESP_PLATFORM. The relaxed "host" / "host_large" | ||
| # profiles override the profile header. These are capacity-only caps and do not | ||
| # change any bytes on the wire. | ||
| if(CONFIG_RTPS_LIMITS_PROFILE_HOST) | ||
| target_compile_definitions(${COMPONENT_LIB} PUBLIC RTPS_CONFIG_HEADER="rtps/config_desktop.hpp") | ||
| elseif(CONFIG_RTPS_LIMITS_PROFILE_HOST_LARGE) | ||
| target_compile_definitions(${COMPONENT_LIB} PUBLIC RTPS_CONFIG_HEADER="rtps/config_host_large.hpp") | ||
| endif() | ||
|
|
||
| # Storage policy is orthogonal to the limits profile above: dynamic (heap, | ||
| # grow-on-full) storage is an explicit ESP opt-in (default static) so a relaxed | ||
| # limits profile never silently switches the MCU to heap-backed history. The | ||
| # limits headers no longer define RTPS_STORAGE_DYNAMIC themselves; it is set here | ||
| # on ESP and defaulted on in config.hpp for host/PC builds. | ||
| if(CONFIG_RTPS_STORAGE_DYNAMIC) | ||
| target_compile_definitions(${COMPONENT_LIB} PUBLIC RTPS_STORAGE_DYNAMIC) | ||
| endif() | ||
|
|
||
| # Best-effort DATA_FRAG fragmentation is opt-in on ESP targets (Kconfig, default | ||
| # off) so the MCU pays nothing for it by default. When enabled, define | ||
| # RTPS_ENABLE_FRAGMENTATION (compiles the fragment send/reassembly paths) and the | ||
| # reassembly cap RTPS_MAX_SAMPLE_SIZE (256 KB on the embedded profile). The | ||
| # facade's max payload size rises to this when fragmentation is enabled. | ||
| if(CONFIG_RTPS_ENABLE_FRAGMENTATION) | ||
| target_compile_definitions(${COMPONENT_LIB} PUBLIC | ||
| RTPS_ENABLE_FRAGMENTATION RTPS_MAX_SAMPLE_SIZE=262144) | ||
| endif() | ||
|
|
||
| # The RPC layer (services + actions) is compiled in by default; the facade | ||
| # header defines RTPS_WITH_RPC unless RTPS_NO_RPC is set. When the Kconfig option | ||
| # is turned OFF, define RTPS_NO_RPC so the whole services/actions surface (and its | ||
| # std::thread/std::future use) is excluded, saving flash. ESP-only (this file is | ||
| # the ESP-IDF component build); host builds always keep RPC on. | ||
| if(NOT CONFIG_RTPS_ENABLE_RPC) | ||
| target_compile_definitions(${COMPONENT_LIB} PUBLIC RTPS_NO_RPC) | ||
| endif() | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.