Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
mkimsri authored Sep 12, 2024
1 parent cc14109 commit 691eca7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docker/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ You can stop everything by typing Ctrl-C.
To try SROS2 (https://github.com/ros2/sros2/blob/foxy/SROS2_Linux.md), start a container for both talker and listener nodes::

docker run --env-file sros_env.list --rm -i -t radler/ros2:latest bash
docker ps # to retrieve the CONTAINER_ID
docker exec -it CONTAINER_ID bash # to get into the container's shell

Inside of the container, run listener and talker nodes with security feature on::

ros2 run demo_nodes_py listener --ros-args --enclave /talker_listener/listener
ros2 run demo_nodes_py talker --ros-args --enclave /talker_listener/talker
ros2 run pubsub listener --ros-args --enclave /talker_listener/listener
ros2 run pubsub talker --ros-args --enclave /talker_listener/talker

To run the above talker_listener demo on two containers, start one container c1::

Expand All @@ -45,8 +47,8 @@ Copy talker keys from the container c1 to the container c2::
Inside of the container c2, untar talker keys and run talker node::

tar zxvf talker.tgz
ros2 run demo_nodes_py talker --ros-args --enclave /talker_listener/talker
ros2 run pubsub talker --ros-args --enclave /talker_listener/talker

Inside of the container c1, run listener node::

ros2 run demo_nodes_py listener --ros-args --enclave /talker_listener/listener
ros2 run pubsub listener --ros-args --enclave /talker_listener/listener

0 comments on commit 691eca7

Please sign in to comment.