ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

When running the command the path to the keystore demo_keys is relative:

ros2 security create_permission demo_keys /talker policies/sample_policy.xml

My guess is that you changed directory and the relative path demo_keys/talker/permissions.xml is not valid anymore.

You should be in the same directory (~/demo_keys in tutorial) when you run all the following commands

ros2 security create_keystore demo_keys
ros2 security create_key demo_keys /talker
svn checkout https://github.com/ros2/sros2/trunk/sros2/test/policies
ros2 security create_permission demo_keys /talker policies/sample_policy.xml

When running the command the path to the keystore demo_keys is relative:

ros2 security create_permission demo_keys /talker policies/sample_policy.xml

My guess is that you changed directory and the relative path demo_keys/talker/permissions.xml is not valid anymore.

You should be in the same directory (~/demo_keys~/sros2_demo in tutorial) when you run all the following commands

ros2 security create_keystore demo_keys
ros2 security create_key demo_keys /talker
svn checkout https://github.com/ros2/sros2/trunk/sros2/test/policies
ros2 security create_permission demo_keys /talker policies/sample_policy.xml