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.
This is an example how to expose native handles from a rmw implementation. It only exposes the
eprosima::fastrtps::Participant
but other handles could be supported in a similar fashion. The patch demonstrate how this is possible and that it can be achieved by each rmw implementation without requiring any changes in thermw
interface.When the function is being used with a different rmw implementation at runtime
get_participant
returnsNULL
.In order to try this feature I modified the
talker
in thedemo_nodes_cpp
package. The changes are straight forward. Only getting from the C++Node
to thermw_node_t
is not "very pretty":package.xml
CMakeLists.txt
talker.cpp