-
Notifications
You must be signed in to change notification settings - Fork 28
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
Add example deployment with Data Sharing via LoanedMessage #31
Comments
some experimental check... using docker container.
tomoyafujita@~/DVT >docker run -it --network host -v /dev/shm:/dev/shm tomoyafujita/ros:rolling
root@tomoyafujita:~# ls -lt /dev/shm/
total 0
root@tomoyafujita:~# ros2 daemon status
The daemon is not running
root@tomoyafujita:/# ros2 run demo_nodes_cpp talker_loaned_message
[INFO] [1703119123.500535244] [loaned_message_talker]: Publishing: '1.000000'
[INFO] [1703119123.500835352] [rclcpp]: Currently used middleware can't loan messages. Local allocator will be used.
[INFO] [1703119123.500871185] [loaned_message_talker]: Publishing: 'Hello World: 1'
[INFO] [1703119124.500472323] [loaned_message_talker]: Publishing: '2.000000'
[INFO] [1703119124.500608551] [loaned_message_talker]: Publishing: 'Hello World: 2'
...
tomoyafujita@~/DVT >docker run -it --network host -v /dev/shm:/dev/shm tomoyafujita/ros:rolling
root@tomoyafujita:/# ros2 node list
root@tomoyafujita:/# ros2 topic list
/chatter
/chatter_pod
/parameter_events
/rosout interesting ths case, we cannot see the nodes but topic list. i think eProsima/Fast-DDS#3753 related to this behavior, see more details for https://fast-dds.docs.eprosima.com/en/latest/fastdds/discovery/simple.html#simple-discovery-settings Note: root@da343f3b6b7d:/# fastdds shm clean
shm.clean:
0 ports in use
0 segments in use
3 zombie ports cleaned
2 zombie segments cleaned |
closing in favor of #33 |
I had this question during ROSCon 2023 presentation.
I believe that this is one of the use case to show how we can use the data sharing zero copy even with container and Kubernetes.
Certain constraints that we need to assign the containers in the same pod as localhost, but for the explanation this makes sense to add the example here.
The text was updated successfully, but these errors were encountered: