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

How to provide enclave argument when running with launch file

asked 2021-03-05 08:12:46 -0500

quinz gravatar image

I'm trying to enable SROS2 on our existing ROS2 nodes, which use launch files.

I have created a keystore and keys for the node and now I'm wondering how to pass a pointer to these when launching the node.

Basically I suppose I want to find a launch file equivalent for this cli sample command:

ros2 run demo_nodes_cpp talker --ros-args --enclave /talker_listener/talker

Our existing launch file is rather simple and looks like this:

<launch>
  <node name="control_node" pkg="ros2node_ctrl" exec="ros2node_ctrl" namespace='$(env NODE_DEVICE>
    <param name="udp_remote_port" value="xxxxx"/>
    <param name="target_ip" value="xxx.xxx.xxx.xxx"/>
  </node>
</launch>

I tried adding a parameter with name "enclave" in the launch file but didn't seem to work.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-03-19 08:34:02 -0500

quinz gravatar image

Managed to solve this by adding --ros-args as "args" in the <node>:

<node name="control_node" pkg="ros2node_ctrl" exec="ros2node_ctrl" args="--ros-args --enclave $(env NODE_ENCLAVE)" namespace='$(env NODE_DEVICE)'>
edit flag offensive delete link more

Comments

@quinz you should mark this as answere so others can see that the question was answered

wienans gravatar image wienans  ( 2022-12-12 07:53:38 -0500 )edit

Good point @wienans. Done :)

quinz gravatar image quinz  ( 2022-12-12 07:57:28 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2021-03-05 08:12:46 -0500

Seen: 224 times

Last updated: Mar 19 '21