Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sros2 support for rclnodejs #794

Open
AnushaPulichintha opened this issue Jun 2, 2021 · 3 comments
Open

sros2 support for rclnodejs #794

AnushaPulichintha opened this issue Jun 2, 2021 · 3 comments

Comments

@AnushaPulichintha
Copy link

Hi,
We are using sros2 for secure communication for our ros2 nodes. Recently we added ros node using rclnodejs library which communicates with our ros2 nodes.

I tried to add the sros2 for the ros node running using rclnodejs library but it did not work.

Does rclnodejs library support sros2?

Thanks in advance

@minggangw
Copy link
Member

We haven't tested with sros2 enabled before, I checked out the usage of sros2 and it seems that the encryption should be supported by the middle ware layer, would you please try (I haven't tried it myself, just guess we should pass the args to the rcl)

rclnodejs.init(rclnodejs.Context.defaultContext(), ['--ros-args', '--enclave']);

@AnushaPulichintha
Copy link
Author

No, it did not work. Normally for ros2 we set some environment variables. I also set same variables for nodejs application.

export ROS_SECURITY_KEYSTORE=~/<ros2ws_dir>/keys
export ROS_SECURITY_ENABLE=true
export ROS_SECURITY_STRATEGY=Enforce
export RMW_IMPLEMENTATION=rmw_fastrtps_cpp
export ROS_DOMAIN_ID=5

do you know I should pass any of those varaibles to init() method?

@minggangw
Copy link
Member

I'm not clear about the exact params needed for this case, I will have a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants