Ask Your Question

Revision history [back]

An import error is not a linter error. That is python not knowing where rcply.node is.

You need to source your ros installation. Depending on your ros install path, you can try the following:

$ source /opt/ros/foxy/setup.bash

Reference: https://docs.ros.org/en/foxy/Tutorials/Configuring-ROS2-Environment.html#source-the-setup-files

What is the command you are using to cause this error in the linter?

click to hide/show revision 2
No.2 Revision

An import error is not a linter error. That is python not knowing where rcply.node is.

You need to source your ros installation. Depending on your ros install path, you can try the following:

$ source /opt/ros/foxy/setup.bash

/opt/ros/foxy/setup.bash

Reference: https://docs.ros.org/en/foxy/Tutorials/Configuring-ROS2-Environment.html#source-the-setup-files

What is the command you are using to cause this error in the linter?