Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sros2-tpm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ROS2 Security
ROS2 TPM
sros2-tpm
Commits
73968954
Commit
73968954
authored
7 years ago
by
Dirk Thomas
Committed by
Mikael Arguedas
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
use ros2 run (#11)
parent
e6bdb38b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+10
-10
10 additions, 10 deletions
README.md
with
10 additions
and
10 deletions
README.md
+
10
−
10
View file @
73968954
...
...
@@ -49,7 +49,7 @@ And now start testing!
In the terminal inside docker, run:
```
talker
_py
ros2 run demo_nodes_py
talker
```
This will start a python executable that publishes messages periodically.
...
...
@@ -58,7 +58,7 @@ Now let's open another terminal into the container by opening a new terminal, th
```
docker exec -ti <CONTAINER_NAME> /bin/bash
listener
ros2 run demo_nodes_cpp
listener
```
Hooray our nodes are authenticated and talking encrypted-talk!
...
...
@@ -167,32 +167,32 @@ Note: for convenience you may add these lines to your `~/.bashrc`.
Run the
`talker`
demo program for either Fast-RTPS:
```
bash
RMW_IMPLEMENTATION
=
rmw_fastrtps_cpp talker
RMW_IMPLEMENTATION
=
rmw_fastrtps_cpp
ros2 run demo_nodes_cpp
talker
```
Of RTI Connext:
```
bash
RMW_IMPLEMENTATION
=
rmw_connext_cpp talker
RMW_IMPLEMENTATION
=
rmw_connext_cpp
ros2 run demo_nodes_cpp
talker
```
In another terminal (after preparing the terminal as previously described), we will do the same thing with the
`listener`
program.
Again, for either Fast-RTPS:
```
bash
RMW_IMPLEMENTATION
=
rmw_fastrtps_cpp listener
RMW_IMPLEMENTATION
=
rmw_fastrtps_cpp
ros2 run demo_nodes_py
listener
```
Or RTI Connext:
```
bash
RMW_IMPLEMENTATION
=
rmw_connext_cpp listener
RMW_IMPLEMENTATION
=
rmw_connext_cpp
ros2 run demo_nodes_py
listener
```
At this point, your
`talker`
and
`listener`
nodes should be communicating securely, using authentication and encryption!
Hooray!
Note: You c
ould also run the Python version of these nodes:
`talker_py`
and
`listener_py`
Note: You c
an switch between the C++ and Python packages arbitrarily.
## Access Control (RTI Connext only)
...
...
@@ -217,13 +217,13 @@ ros2 security create_permission demo_keys listener demo_keys/policies.yaml
Then, in one terminal (after preparing the terminal as previously described), run the
`talker`
demo program:
```
RMW_IMPLEMENTATION=rmw_connext_cpp talker
RMW_IMPLEMENTATION=rmw_connext_cpp
ros2 run demo_nodes_cpp
talker
```
In another terminal (after preparing the terminal as previously described), we will do the same thing with the
`listener`
program:
```
RMW_IMPLEMENTATION=rmw_connext_cpp listener
RMW_IMPLEMENTATION=rmw_connext_cpp
ros2 run demo_nodes_py
listener
```
At this point, your
`talker`
and
`listener`
nodes should be communicating securely, using explicit access control lists!
...
...
@@ -261,7 +261,7 @@ First, on the machine running `talker`, we need to source the RTI variables, the
```
source ~/rti/rti_connext_dds-5.2.4/resource/scripts/rtisetenv_x64Linux3gcc4.8.2.bash'
source ~/sros2/install/setup.bash
RMW_IMPLEMENTATION=rmw_connext_cpp talker
RMW_IMPLEMENTATION=rmw_connext_cpp
ros2 run demo_nodes_cpp
talker
```
# Tips and Tricks
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment