Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Add the path to rclpy in your linter import paths. For my case it was /home/khairulm/ros2_foxy/install/rclpy/lib/python3.8/site-packages

Add the path to rclpy in your linter import paths. For my case it was /home/khairulm/ros2_foxy/install/rclpy/lib/python3.8/site-packages

Edit: For ros2 foxy, if you installed it using the Debian package (apt install ros-foxy-ros-base), the visual studio code linter already knows where to look for rclpy