diff --git a/SROS2_Linux.md b/SROS2_Linux.md index f5afc452..7a0ecfbc 100644 --- a/SROS2_Linux.md +++ b/SROS2_Linux.md @@ -119,7 +119,7 @@ However, other nodes will not be able to communicate, e.g. the following invocat ```bash # This will fail because the node name does not have valid keys/certificates -ros2 run demo_nodes_cpp talker __node:=not_talker +ros2 run demo_nodes_cpp talker --ros-args -r __node:=not_talker ``` @@ -207,5 +207,5 @@ For example, the following attempt for the `listener` node to subscribe to a top ```bash # This will fail because the node is not permitted to subscribe to topics other than chatter. -ros2 run demo_nodes_py listener chatter:=not_chatter +ros2 run demo_nodes_py listener --ros-args -r chatter:=not_chatter ``` diff --git a/SROS2_MacOS.md b/SROS2_MacOS.md index 94d2d270..6fb600bb 100644 --- a/SROS2_MacOS.md +++ b/SROS2_MacOS.md @@ -129,7 +129,7 @@ However, other nodes will not be able to communicate, e.g. the following invocat ```bash # This will fail because the node name does not have valid keys/certificates -ros2 run demo_nodes_cpp talker __node:=not_talker +ros2 run demo_nodes_cpp talker --ros-args -r __node:=not_talker ``` @@ -175,5 +175,5 @@ For example, the following attempt for the `listener` node to subscribe to a top ```bash # This will fail because the node is not permitted to subscribe to topics other than chatter. -ros2 run demo_nodes_py listener chatter:=not_chatter +ros2 run demo_nodes_py listener --ros-args -r chatter:=not_chatter ``` diff --git a/SROS2_Windows.md b/SROS2_Windows.md index 26b60882..4da66e6b 100644 --- a/SROS2_Windows.md +++ b/SROS2_Windows.md @@ -128,7 +128,7 @@ However, other nodes will not be able to communicate, e.g. the following invocat ```bat REM This will fail because the node name does not have valid keys/certificates -ros2 run demo_nodes_cpp talker __node:=not_talker +ros2 run demo_nodes_cpp talker --ros-args -r __node:=not_talker ``` ### Access Control @@ -173,5 +173,5 @@ For example, the following attempt for the `listener` node to subscribe to a top ```bat REM This will fail because the node is not permitted to subscribe to topics other than chatter. -ros2 run demo_nodes_py listener chatter:=not_chatter +ros2 run demo_nodes_py listener --ros-args -r chatter:=not_chatter ```