Error Using rclpy module on a non ROS2 machine
Hi, I am trying to communicate between a ROS2 machine(Linux VM) and a non ROS machine(Host Windows). I have configured the network connections. When I install ROS on the windows machine as well, and run a demo talker on Windows and a listener on Linux, they communicate. Now when I try to run the demo talker using rclpy, it doesnt.
In windows, from the terminal, I run the demo_nodes_py talker.py
and I get the error : Traceback (most recent call last):
File "listener.py", line 17, in <module>
import rclpy
ModuleNotFoundError: No module named 'rclpy'
Any idea how to use the rclpy API ? What am I doing wrong here ?
I don't understand: how is something a "non-ROS machine" if you install ROS2 on it?
Just to check if the communication works on 2 different ROS2 machines, i installed ROS2 also on Windows...so that works...but now I dont need to use ROS2 rather only its API (rclpy) @gvdhoorn
Not using ROS2 but only its API does not make sense. If you use
rclpy
, you are using ROS2.